diff options
| -rw-r--r-- | lisp/buff-menu.el | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lisp/buff-menu.el b/lisp/buff-menu.el index 24cea7a4db2..cafd2c2e804 100644 --- a/lisp/buff-menu.el +++ b/lisp/buff-menu.el | |||
| @@ -163,10 +163,11 @@ Type q immediately to make the buffer menu go away and to restore | |||
| 163 | previous window configuration." | 163 | previous window configuration." |
| 164 | (interactive "P") | 164 | (interactive "P") |
| 165 | ;;; (setq Buffer-menu-window-config (current-window-configuration)) | 165 | ;;; (setq Buffer-menu-window-config (current-window-configuration)) |
| 166 | ;; This order seems to let list-buffers set the value of point | ||
| 167 | ;; regardless of whether we are using the same buffer or another. | ||
| 168 | (pop-to-buffer "*Buffer List*") | ||
| 169 | (list-buffers arg) | 166 | (list-buffers arg) |
| 167 | (let ((newpoint (save-excursion (set-buffer "*Buffer List*") | ||
| 168 | (point)))) | ||
| 169 | (pop-to-buffer "*Buffer List*") | ||
| 170 | (goto-char newpoint)) | ||
| 170 | (message | 171 | (message |
| 171 | "Commands: d, s, x, u; f, o, 1, 2, m, v; ~, %%; q to quit; ? for help.")) | 172 | "Commands: d, s, x, u; f, o, 1, 2, m, v; ~, %%; q to quit; ? for help.")) |
| 172 | 173 | ||