diff options
Diffstat (limited to 'lisp/buff-menu.el')
| -rw-r--r-- | lisp/buff-menu.el | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/lisp/buff-menu.el b/lisp/buff-menu.el index 77b325ff25d..9f618bcb7de 100644 --- a/lisp/buff-menu.el +++ b/lisp/buff-menu.el | |||
| @@ -102,9 +102,6 @@ This is set by the prefix argument to `buffer-menu' and related | |||
| 102 | commands.") | 102 | commands.") |
| 103 | (make-variable-buffer-local 'Buffer-menu-files-only) | 103 | (make-variable-buffer-local 'Buffer-menu-files-only) |
| 104 | 104 | ||
| 105 | (defvar Info-current-file) ; from info.el | ||
| 106 | (defvar Info-current-node) ; from info.el | ||
| 107 | |||
| 108 | (defvar Buffer-menu-mode-map | 105 | (defvar Buffer-menu-mode-map |
| 109 | (let ((map (make-sparse-keymap)) | 106 | (let ((map (make-sparse-keymap)) |
| 110 | (menu-map (make-sparse-keymap))) | 107 | (menu-map (make-sparse-keymap))) |
| @@ -702,21 +699,7 @@ means list those buffers and no others." | |||
| 702 | (defun Buffer-menu--pretty-file-name (file) | 699 | (defun Buffer-menu--pretty-file-name (file) |
| 703 | (cond (file | 700 | (cond (file |
| 704 | (abbreviate-file-name file)) | 701 | (abbreviate-file-name file)) |
| 705 | ((and (boundp 'list-buffers-directory) | 702 | ((bound-and-true-p list-buffers-directory)) |
| 706 | list-buffers-directory) | ||
| 707 | list-buffers-directory) | ||
| 708 | ((eq major-mode 'Info-mode) | ||
| 709 | (Buffer-menu-info-node-description Info-current-file)) | ||
| 710 | (t ""))) | 703 | (t ""))) |
| 711 | 704 | ||
| 712 | (defun Buffer-menu-info-node-description (file) | ||
| 713 | (cond | ||
| 714 | ((equal file "dir") "*Info Directory*") | ||
| 715 | ((eq file 'apropos) "*Info Apropos*") | ||
| 716 | ((eq file 'history) "*Info History*") | ||
| 717 | ((eq file 'toc) "*Info TOC*") | ||
| 718 | ((not (stringp file)) "") ; Avoid errors | ||
| 719 | (t | ||
| 720 | (concat "(" (file-name-nondirectory file) ") " Info-current-node)))) | ||
| 721 | |||
| 722 | ;;; buff-menu.el ends here | 705 | ;;; buff-menu.el ends here |