From: shipmints Date: Thu, 30 Jan 2025 12:20:34 +0000 (-0500) Subject: * lisp/tab-bar.el (tab-bar-select-tab): Fix wc-bl/wc-bbl when nil X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=42b6c6ea8a9204a5bdb1d034bb4c438f9f863d76;p=emacs.git * lisp/tab-bar.el (tab-bar-select-tab): Fix wc-bl/wc-bbl when nil Remove the nil-check conditionals around 'wc-bl' and 'wc-bbl' that reset frame parameters 'buffer-list' and 'buried-buffer-list'. This ensures originating nil values correctly propagate (bug#75935). (cherry picked from commit a5965217fc1d7b56df60f8e798edd48ae52c8624) --- diff --git a/lisp/tab-bar.el b/lisp/tab-bar.el index 567cdfbc210..ee22be5ae67 100644 --- a/lisp/tab-bar.el +++ b/lisp/tab-bar.el @@ -1653,8 +1653,8 @@ Negative TAB-NUMBER counts tabs from the end of the tab bar." (marker-buffer wc-point)) (goto-char wc-point)) - (when wc-bl (set-frame-parameter nil 'buffer-list wc-bl)) - (when wc-bbl (set-frame-parameter nil 'buried-buffer-list wc-bbl)) + (set-frame-parameter nil 'buffer-list wc-bl) + (set-frame-parameter nil 'buried-buffer-list wc-bbl) (when tab-bar-history-mode (puthash (selected-frame)