mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-14 16:50:58 +00:00
(Info-set-mode-line): Use `%b' instead of hardwired string "*Info*".
Call propertized-buffer-identification to spruce up the result.
This commit is contained in:
parent
b8a63ccb80
commit
918e364ae4
16
lisp/info.el
16
lisp/info.el
@ -940,13 +940,15 @@ Bind this in case the user sets it to nil."
|
||||
|
||||
(defun Info-set-mode-line ()
|
||||
(setq mode-line-buffer-identification
|
||||
(concat
|
||||
" *Info* ("
|
||||
(file-name-nondirectory (if (stringp Info-current-file)
|
||||
Info-current-file
|
||||
(or buffer-file-name "")))
|
||||
") "
|
||||
(or Info-current-node ""))))
|
||||
(nconc (propertized-buffer-identification " %b")
|
||||
(list
|
||||
(concat " ("
|
||||
(file-name-nondirectory
|
||||
(if (stringp Info-current-file)
|
||||
Info-current-file
|
||||
(or buffer-file-name "")))
|
||||
") "
|
||||
(or Info-current-node ""))))))
|
||||
|
||||
;; Skip the node header and make it into a header-line. This function
|
||||
;; should be called when the node is already narrowed.
|
||||
|
Loading…
Reference in New Issue
Block a user