aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2002-01-17 02:07:54 +0000
committerRichard M. Stallman2002-01-17 02:07:54 +0000
commit6454615cfaca7d23dcff56bf1af326a1decdbc06 (patch)
treef7c09f22b641da88744fe899dc3a21cc21c2ae58
parentdfb9f8afb37db3c94a4ec28b1cf521ad6224e2f9 (diff)
downloademacs-6454615cfaca7d23dcff56bf1af326a1decdbc06.tar.gz
emacs-6454615cfaca7d23dcff56bf1af326a1decdbc06.zip
(mouse-drag-region-1): Renamed from mouse-drag-region.
(mouse-drag-region): New function. For a click in the echo area, show *Messages*.
-rw-r--r--lisp/mouse.el17
1 files changed, 16 insertions, 1 deletions
diff --git a/lisp/mouse.el b/lisp/mouse.el
index ba60c7b8a92..9ac786a5cb7 100644
--- a/lisp/mouse.el
+++ b/lisp/mouse.el
@@ -697,8 +697,23 @@ Upon exit, point is at the far edge of the newly visible text."
697Highlight the drag area as you move the mouse. 697Highlight the drag area as you move the mouse.
698This must be bound to a button-down mouse event. 698This must be bound to a button-down mouse event.
699In Transient Mark mode, the highlighting remains as long as the mark 699In Transient Mark mode, the highlighting remains as long as the mark
700remains active. Otherwise, it remains until the next input event." 700remains active. Otherwise, it remains until the next input event.
701
702If the click is in the echo area, display the `*Messages*' buffer."
701 (interactive "e") 703 (interactive "e")
704 (let ((w (posn-window (event-start start-event))))
705 (if (not (or (not (window-minibuffer-p w))
706 (minibuffer-window-active-p w)))
707 (save-excursion
708 (read-event)
709 (set-buffer "*Messages*")
710 (goto-char (point-max))
711 (display-buffer (current-buffer)))
712 ;; Give temporary modes such as isearch a chance to turn off.
713 (run-hooks 'mouse-leave-buffer-hook)
714 (mouse-drag-region-1 start-event))))
715
716(defun mouse-drag-region-1 (start-event)
702 (mouse-minibuffer-check start-event) 717 (mouse-minibuffer-check start-event)
703 (let* ((echo-keystrokes 0) 718 (let* ((echo-keystrokes 0)
704 (start-posn (event-start start-event)) 719 (start-posn (event-start start-event))