[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 03648965a0: bs.el: Use the right buffer context to compute the mo
From: |
Juanma Barranquero |
Subject: |
master 03648965a0: bs.el: Use the right buffer context to compute the mode name |
Date: |
Sun, 18 Dec 2022 20:53:34 -0500 (EST) |
branch: master
commit 03648965a027b1a0aa46a2ebfa0dab78ef49b200
Author: Juanma Barranquero <lekktu@gmail.com>
Commit: Juanma Barranquero <lekktu@gmail.com>
bs.el: Use the right buffer context to compute the mode name
* lisp/bs.el (bs--get-mode-name): The function is already called
with the correct buffer as current-buffer; and anyway, START-BUFFER
is usually the wrong one to pass to `format-mode-line'. This fixes
a bug introduced in 48d33090d0 and c2699583be (back in 2008-01-04).
---
lisp/bs.el | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lisp/bs.el b/lisp/bs.el
index 2823e87a9f..d6df89138d 100644
--- a/lisp/bs.el
+++ b/lisp/bs.el
@@ -1346,11 +1346,11 @@ ALL-BUFFERS is the list of buffers appearing in Buffer
Selection Menu."
'help-echo "mouse-2: select this buffer, mouse-3: select in
other frame"
'mouse-face 'highlight))
-(defun bs--get-mode-name (start-buffer _all-buffers)
+(defun bs--get-mode-name (_start-buffer _all-buffers)
"Return the name of mode of current buffer for Buffer Selection Menu.
START-BUFFER is the buffer where we started buffer selection.
ALL-BUFFERS is the list of buffers appearing in Buffer Selection Menu."
- (format-mode-line mode-name nil nil start-buffer))
+ (format-mode-line mode-name nil nil nil))
(defun bs--get-file-name (_start-buffer _all-buffers)
"Return string for column `File' in Buffer Selection Menu.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 03648965a0: bs.el: Use the right buffer context to compute the mode name,
Juanma Barranquero <=