]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/tab-bar.el (tab-bar-select-tab): Fix wc-bl/wc-bbl when nil
authorshipmints <shipmints@gmail.com>
Thu, 30 Jan 2025 12:20:34 +0000 (07:20 -0500)
committerEshel Yaron <me@eshelyaron.com>
Mon, 3 Feb 2025 11:10:41 +0000 (12:10 +0100)
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)

lisp/tab-bar.el

index 567cdfbc2103df706e4fe9cbc6fb91fba97fba7c..ee22be5ae67b56c5e11124ce467ca8b2904b3524 100644 (file)
@@ -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)