diff options
| author | Drew Adams | 2019-07-06 16:47:08 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2019-07-06 16:47:08 +0200 |
| commit | 372efa6a4143561b093dcc49d5f1b7eb0c443131 (patch) | |
| tree | 9a9e2de89353a21f23e700b7b59bb18391acf7cd | |
| parent | 19294c45ba352554fc0deee2f0a1286746a39705 (diff) | |
| download | emacs-372efa6a4143561b093dcc49d5f1b7eb0c443131.tar.gz emacs-372efa6a4143561b093dcc49d5f1b7eb0c443131.zip | |
Tweak point movement in view-echo-area-messages
* lisp/help.el (view-echo-area-messages): Move the point to the
end of the *Messages* buffer even if it's already displayed
(bug#36343).
| -rw-r--r-- | lisp/help.el | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/lisp/help.el b/lisp/help.el index 42ff3755650..039d0c44e4f 100644 --- a/lisp/help.el +++ b/lisp/help.el | |||
| @@ -417,12 +417,16 @@ With argument, display info only for the selected version." | |||
| 417 | 417 | ||
| 418 | (defun view-echo-area-messages () | 418 | (defun view-echo-area-messages () |
| 419 | "View the log of recent echo-area messages: the `*Messages*' buffer. | 419 | "View the log of recent echo-area messages: the `*Messages*' buffer. |
| 420 | The number of messages retained in that buffer | 420 | The number of messages retained in that buffer is specified by |
| 421 | is specified by the variable `message-log-max'." | 421 | the variable `message-log-max'." |
| 422 | (interactive) | 422 | (interactive) |
| 423 | (with-current-buffer (messages-buffer) | 423 | (with-current-buffer (messages-buffer) |
| 424 | (goto-char (point-max)) | 424 | (goto-char (point-max)) |
| 425 | (display-buffer (current-buffer)))) | 425 | (let ((win (display-buffer (current-buffer)))) |
| 426 | ;; If the buffer is already displayed, we need to forcibly set | ||
| 427 | ;; the window point to scroll to the end of the buffer. | ||
| 428 | (set-window-point win (point)) | ||
| 429 | win))) | ||
| 426 | 430 | ||
| 427 | (defun view-order-manuals () | 431 | (defun view-order-manuals () |
| 428 | "Display information on how to buy printed copies of Emacs manuals." | 432 | "Display information on how to buy printed copies of Emacs manuals." |