]> git.eshelyaron.com Git - emacs.git/commit
bs.el: Use the right buffer context to compute the mode name
authorJuanma Barranquero <lekktu@gmail.com>
Mon, 19 Dec 2022 01:40:50 +0000 (02:40 +0100)
committerJuanma Barranquero <lekktu@gmail.com>
Mon, 19 Dec 2022 01:40:50 +0000 (02:40 +0100)
commit03648965a027b1a0aa46a2ebfa0dab78ef49b200
treef96977daceea335145193cc408e61c55c92c21b4
parent79e1bff2694444a27036b08e8fa2a6619b40dc2a
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