diff options
| author | John Paul Wallington <jpw@pobox.com> | 2003-03-06 10:52:39 +0000 |
|---|---|---|
| committer | John Paul Wallington <jpw@pobox.com> | 2003-03-06 10:52:39 +0000 |
| commit | a82c12670e4ca879f219f5ff47ae2b2eeb50d8d5 (patch) | |
| tree | 5e8bcf32b13b1721148ef38f3056b1e7b74917db /lisp/ebuff-menu.el | |
| parent | 463a7342da664c04d7c959b5177e1095de0eda1a (diff) | |
| download | emacs-a82c12670e4ca879f219f5ff47ae2b2eeb50d8d5.tar.gz | |
(electric-buffer-list): Respect `Buffer-menu-use-header-line'.
(electric-buffer-menu-looper): Likewise.
Diffstat (limited to 'lisp/ebuff-menu.el')
| -rw-r--r-- | lisp/ebuff-menu.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lisp/ebuff-menu.el b/lisp/ebuff-menu.el index d87a2124546..21a366f944d 100644 --- a/lisp/ebuff-menu.el +++ b/lisp/ebuff-menu.el @@ -74,7 +74,8 @@ Calls value of `electric-buffer-menu-mode-hook' on entry if non-nil. (throw 'electric-buffer-menu-select nil))) (let ((start-point (point)) (first (progn (goto-char (point-min)) - (forward-line 2) + (unless Buffer-menu-use-header-line + (forward-line 2)) (point))) (last (progn (goto-char (point-max)) (forward-line -1) @@ -112,7 +113,8 @@ Calls value of `electric-buffer-menu-mode-hook' on entry if non-nil. (signal (car condition) (cdr condition))) ((< (point) (car state)) (goto-char (point-min)) - (forward-line 2)) + (unless Buffer-menu-use-header-line + (forward-line 2))) ((> (point) (cdr state)) (goto-char (point-max)) (forward-line -1) |
