diff options
| author | Miles Bader | 2008-01-30 07:57:28 +0000 |
|---|---|---|
| committer | Miles Bader | 2008-01-30 07:57:28 +0000 |
| commit | d235ca2ff8fab139ce797757fcb159d1e28fa7e0 (patch) | |
| tree | 96c5cd1a06a0d9dc26e8470c6eabfc032c0046f3 /lisp/comint.el | |
| parent | 3709a060f679dba14df71ae64a0035fa2b5b3106 (diff) | |
| parent | 02cbe062bee38a6705bafb1699d77e3c44cfafcf (diff) | |
| download | emacs-d235ca2ff8fab139ce797757fcb159d1e28fa7e0.tar.gz emacs-d235ca2ff8fab139ce797757fcb159d1e28fa7e0.zip | |
Merge from emacs--devo--0
Revision: emacs@sv.gnu.org/emacs--unicode--0--patch-324
Diffstat (limited to 'lisp/comint.el')
| -rw-r--r-- | lisp/comint.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/comint.el b/lisp/comint.el index 6fb89e28181..e4ee37c50f9 100644 --- a/lisp/comint.el +++ b/lisp/comint.el | |||
| @@ -822,6 +822,7 @@ buffer. The hook `comint-exec-hook' is run after each exec." | |||
| 822 | If there is no previous input at point, run the command specified | 822 | If there is no previous input at point, run the command specified |
| 823 | by the global keymap (usually `mouse-yank-at-point')." | 823 | by the global keymap (usually `mouse-yank-at-point')." |
| 824 | (interactive "e") | 824 | (interactive "e") |
| 825 | (mouse-set-point event) | ||
| 825 | (let ((pos (posn-point (event-end event))) | 826 | (let ((pos (posn-point (event-end event))) |
| 826 | field input) | 827 | field input) |
| 827 | (with-selected-window (posn-window (event-end event)) | 828 | (with-selected-window (posn-window (event-end event)) |
| @@ -1022,9 +1023,11 @@ See also `comint-read-input-ring'." | |||
| 1022 | (last-command last-command) | 1023 | (last-command last-command) |
| 1023 | (regexp (read-from-minibuffer prompt nil nil nil | 1024 | (regexp (read-from-minibuffer prompt nil nil nil |
| 1024 | 'minibuffer-history-search-history))) | 1025 | 'minibuffer-history-search-history))) |
| 1026 | ;; If the user didn't enter anything, nothing is added to m-h-s-h. | ||
| 1027 | ;; Use the previous search regexp, if there is one. | ||
| 1025 | (list (if (string-equal regexp "") | 1028 | (list (if (string-equal regexp "") |
| 1026 | (setcar minibuffer-history-search-history | 1029 | (or (car minibuffer-history-search-history) |
| 1027 | (nth 1 minibuffer-history-search-history)) | 1030 | regexp) |
| 1028 | regexp) | 1031 | regexp) |
| 1029 | (prefix-numeric-value current-prefix-arg)))) | 1032 | (prefix-numeric-value current-prefix-arg)))) |
| 1030 | 1033 | ||