aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorJuri Linkov2009-11-30 16:11:18 +0000
committerJuri Linkov2009-11-30 16:11:18 +0000
commit1f9689eba0a69231e7049b8d747e256ffc4985d1 (patch)
tree7126adb5b0912feafe597139f1521ebe47e06c60 /lisp
parent2952b1ae0475a3efd8646281bc8aa0e6aeb5e8f6 (diff)
downloademacs-1f9689eba0a69231e7049b8d747e256ffc4985d1.tar.gz
emacs-1f9689eba0a69231e7049b8d747e256ffc4985d1.zip
(comint-mode-map): Rebind `M-r' from
`comint-previous-matching-input' to `comint-history-isearch-backward-regexp'. Unbind `M-s' to allow global key binding `M-s'. Add menu items for `comint-history-isearch-backward' and `comint-history-isearch-backward-regexp'. (Bug#3746)
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog9
-rw-r--r--lisp/comint.el12
2 files changed, 15 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 568f1d30c86..b7d0064f56d 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,14 @@
12009-11-30 Juri Linkov <juri@jurta.org> 12009-11-30 Juri Linkov <juri@jurta.org>
2 2
3 * comint.el (comint-mode-map): Rebind `M-r' from
4 `comint-previous-matching-input' to
5 `comint-history-isearch-backward-regexp'.
6 Unbind `M-s' to allow global key binding `M-s'.
7 Add menu items for `comint-history-isearch-backward' and
8 `comint-history-isearch-backward-regexp'. (Bug#3746)
9
102009-11-30 Juri Linkov <juri@jurta.org>
11
3 * replace.el (perform-replace): Let-bind recenter-last-op to nil. 12 * replace.el (perform-replace): Let-bind recenter-last-op to nil.
4 For def=recenter, replace `recenter' with `recenter-top-bottom' 13 For def=recenter, replace `recenter' with `recenter-top-bottom'
5 that is called with `this-command' and `last-command' let-bound 14 that is called with `this-command' and `last-command' let-bound
diff --git a/lisp/comint.el b/lisp/comint.el
index c2db9c13a70..4dbd58144ea 100644
--- a/lisp/comint.el
+++ b/lisp/comint.el
@@ -62,8 +62,7 @@
62;; 62;;
63;; M-p comint-previous-input Cycle backwards in input history 63;; M-p comint-previous-input Cycle backwards in input history
64;; M-n comint-next-input Cycle forwards 64;; M-n comint-next-input Cycle forwards
65;; M-r comint-previous-matching-input Previous input matching a regexp 65;; M-r comint-history-isearch-backward-regexp Isearch input regexp backward
66;; M-s comint-next-matching-input Next input that matches
67;; M-C-l comint-show-output Show last batch of process output 66;; M-C-l comint-show-output Show last batch of process output
68;; RET comint-send-input 67;; RET comint-send-input
69;; C-d comint-delchar-or-maybe-eof Delete char unless at end of buff 68;; C-d comint-delchar-or-maybe-eof Delete char unless at end of buff
@@ -446,10 +445,7 @@ executed once when the buffer is created."
446 (define-key map "\en" 'comint-next-input) 445 (define-key map "\en" 'comint-next-input)
447 (define-key map [C-up] 'comint-previous-input) 446 (define-key map [C-up] 'comint-previous-input)
448 (define-key map [C-down] 'comint-next-input) 447 (define-key map [C-down] 'comint-next-input)
449 (define-key map "\er" 'comint-previous-matching-input) 448 (define-key map "\er" 'comint-history-isearch-backward-regexp)
450 ;; FIXME: maybe M-r better to be bound to Isearch comint history?
451 ;; (define-key map "\er" 'comint-history-isearch-backward-regexp)
452 (define-key map "\es" 'comint-next-matching-input)
453 (define-key map [?\C-c ?\M-r] 'comint-previous-matching-input-from-input) 449 (define-key map [?\C-c ?\M-r] 'comint-previous-matching-input-from-input)
454 (define-key map [?\C-c ?\M-s] 'comint-next-matching-input-from-input) 450 (define-key map [?\C-c ?\M-s] 'comint-next-matching-input-from-input)
455 (define-key map "\e\C-l" 'comint-show-output) 451 (define-key map "\e\C-l" 'comint-show-output)
@@ -512,6 +508,10 @@ executed once when the buffer is created."
512 '("Kill Current Input" . comint-kill-input)) 508 '("Kill Current Input" . comint-kill-input))
513 (define-key map [menu-bar inout copy-input] 509 (define-key map [menu-bar inout copy-input]
514 '("Copy Old Input" . comint-copy-old-input)) 510 '("Copy Old Input" . comint-copy-old-input))
511 (define-key map [menu-bar inout history-isearch-backward-regexp]
512 '("Isearch Input Regexp Backward..." . comint-history-isearch-backward-regexp))
513 (define-key map [menu-bar inout history-isearch-backward]
514 '("Isearch Input String Backward..." . comint-history-isearch-backward))
515 (define-key map [menu-bar inout forward-matching-history] 515 (define-key map [menu-bar inout forward-matching-history]
516 '("Forward Matching Input..." . comint-forward-matching-input)) 516 '("Forward Matching Input..." . comint-forward-matching-input))
517 (define-key map [menu-bar inout backward-matching-history] 517 (define-key map [menu-bar inout backward-matching-history]