aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong2013-02-09 13:52:20 +0800
committerChong Yidong2013-02-09 13:52:20 +0800
commit123ecb68a0ba76a4f6b65c2a551e155022be2052 (patch)
treefcf847ecf192c86416d87b4c3cbcfa4326cf7d3a
parent044a9eac4e308c5095757672855bc3b018a00a6b (diff)
downloademacs-123ecb68a0ba76a4f6b65c2a551e155022be2052.tar.gz
emacs-123ecb68a0ba76a4f6b65c2a551e155022be2052.zip
Bind view-echo-area-messages in minibuffer-inactive-mode-map.
* help.el (view-echo-area-messages): Use display-buffer. * minibuffer.el (minibuffer-inactive-mode-map): Bind mouse-1 to view-echo-area-messages. Fixes: debbugs:13340
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/help.el4
-rw-r--r--lisp/minibuffer.el5
3 files changed, 9 insertions, 5 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 6e1fe6d20ce..d0eba1bcb4c 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,10 @@
12013-02-09 Chong Yidong <cyd@gnu.org> 12013-02-09 Chong Yidong <cyd@gnu.org>
2 2
3 * minibuffer.el (minibuffer-inactive-mode-map): Bind mouse-1 to
4 view-echo-area-messages (Bug#13340).
5
6 * help.el (view-echo-area-messages): Use display-buffer.
7
3 * dired-x.el (dired-do-run-mail): Prompt for confirmation 8 * dired-x.el (dired-do-run-mail): Prompt for confirmation
4 (Bug#13561). 9 (Bug#13561).
5 10
diff --git a/lisp/help.el b/lisp/help.el
index 4219dd86986..25bc9c4b7c6 100644
--- a/lisp/help.el
+++ b/lisp/help.el
@@ -412,7 +412,9 @@ With argument, display info only for the selected version."
412The number of messages retained in that buffer 412The number of messages retained in that buffer
413is specified by the variable `message-log-max'." 413is specified by the variable `message-log-max'."
414 (interactive) 414 (interactive)
415 (switch-to-buffer (get-buffer-create "*Messages*"))) 415 (with-current-buffer (get-buffer-create "*Messages*")
416 (goto-char (point-max))
417 (display-buffer (current-buffer))))
416 418
417(defun view-order-manuals () 419(defun view-order-manuals ()
418 "Display the Emacs ORDERS file." 420 "Display the Emacs ORDERS file."
diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el
index 0d2815e535e..e18f4c9c77f 100644
--- a/lisp/minibuffer.el
+++ b/lisp/minibuffer.el
@@ -2045,10 +2045,7 @@ with `minibuffer-local-must-match-map'.")
2045 (define-key map "i" 'info) 2045 (define-key map "i" 'info)
2046 (define-key map "m" 'mail) 2046 (define-key map "m" 'mail)
2047 (define-key map "n" 'make-frame) 2047 (define-key map "n" 'make-frame)
2048 (define-key map [mouse-1] (lambda () (interactive) 2048 (define-key map [mouse-1] 'view-echo-area-messages)
2049 (with-current-buffer "*Messages*"
2050 (goto-char (point-max))
2051 (display-buffer (current-buffer)))))
2052 ;; So the global down-mouse-1 binding doesn't clutter the execution of the 2049 ;; So the global down-mouse-1 binding doesn't clutter the execution of the
2053 ;; above mouse-1 binding. 2050 ;; above mouse-1 binding.
2054 (define-key map [down-mouse-1] #'ignore) 2051 (define-key map [down-mouse-1] #'ignore)