aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorEli Zaretskii2006-08-05 13:30:17 +0000
committerEli Zaretskii2006-08-05 13:30:17 +0000
commitb653cee476923bfab4fcaa808aa8b870051de70f (patch)
tree6e9528c8624a1ffd06950b73f51591562bd708fc /lisp
parentf892cf9c9d14e5920ad5c8ce236bd660f18c0816 (diff)
downloademacs-b653cee476923bfab4fcaa808aa8b870051de70f.tar.gz
emacs-b653cee476923bfab4fcaa808aa8b870051de70f.zip
(list-buffers-noselect): For Info buffers, use "(file)node" instead of the
file name.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/buff-menu.el8
1 files changed, 7 insertions, 1 deletions
diff --git a/lisp/buff-menu.el b/lisp/buff-menu.el
index e9e7e9a2bb8..398b362d4e4 100644
--- a/lisp/buff-menu.el
+++ b/lisp/buff-menu.el
@@ -117,6 +117,7 @@ file buffers. It affects both manual reverting and reverting by
117Auto Revert Mode.") 117Auto Revert Mode.")
118 118
119(defvar Info-current-file) ;; from info.el 119(defvar Info-current-file) ;; from info.el
120(defvar Info-current-node) ;; from info.el
120 121
121(make-variable-buffer-local 'Buffer-menu-files-only) 122(make-variable-buffer-local 'Buffer-menu-files-only)
122 123
@@ -786,7 +787,12 @@ For more information, see the function `buffer-menu'."
786 ((eq file 'toc) 787 ((eq file 'toc)
787 (setq file "*Info TOC*")) 788 (setq file "*Info TOC*"))
788 ((not (stringp file)) ;; avoid errors 789 ((not (stringp file)) ;; avoid errors
789 (setq file nil)))))) 790 (setq file nil))
791 (t
792 (setq file (concat "("
793 (file-name-nondirectory file)
794 ")"
795 Info-current-node)))))))
790 (push (list buffer bits name (buffer-size) mode file) 796 (push (list buffer bits name (buffer-size) mode file)
791 list)))))) 797 list))))))
792 ;; Preserve the original buffer-list ordering, just in case. 798 ;; Preserve the original buffer-list ordering, just in case.