aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuri Linkov2009-11-30 16:11:18 +0000
committerJuri Linkov2009-11-30 16:11:18 +0000
commit1f9689eba0a69231e7049b8d747e256ffc4985d1 (patch)
tree7126adb5b0912feafe597139f1521ebe47e06c60
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)
-rw-r--r--admin/FOR-RELEASE8
-rw-r--r--etc/NEWS4
-rw-r--r--lisp/ChangeLog9
-rw-r--r--lisp/comint.el12
4 files changed, 19 insertions, 14 deletions
diff --git a/admin/FOR-RELEASE b/admin/FOR-RELEASE
index 1ed535e2ea7..27c15ac5a84 100644
--- a/admin/FOR-RELEASE
+++ b/admin/FOR-RELEASE
@@ -81,16 +81,12 @@ and change key bindings where necessary. The current list of modes:
812. Minibuffer binds `M-s' to `next-matching-history-element' 812. Minibuffer binds `M-s' to `next-matching-history-element'
82 (not useful any more since C-s can now search in the history). 82 (not useful any more since C-s can now search in the history).
83 83
843. Shell mode binds `M-s' to `comint-next-matching-input'. 843. `center-line' in Text mode was already moved to the text formatting
85 This key binding can be changed later when we will implement
86 incremental search through the shell history.
87
884. `center-line' in Text mode was already moved to the text formatting
89 keymap as `M-o M-s' (thus this binding is not necessary any more 85 keymap as `M-o M-s' (thus this binding is not necessary any more
90 in `nroff-mode-map' too and can be removed now from the nroff mode 86 in `nroff-mode-map' too and can be removed now from the nroff mode
91 because it can now use the global key binding `M-o M-s' `center-line'). 87 because it can now use the global key binding `M-o M-s' `center-line').
92 88
935. PCL-CVS binds `M-s' to `cvs-status', and log-edit-mode binds it to 894. PCL-CVS binds `M-s' to `cvs-status', and log-edit-mode binds it to
94 `log-edit-comment-search-forward'. Perhaps search commands 90 `log-edit-comment-search-forward'. Perhaps search commands
95 on the global key binding `M-s' are useless in these modes. 91 on the global key binding `M-s' are useless in these modes.
96 92
diff --git a/etc/NEWS b/etc/NEWS
index 9fcea9b23ef..4b5e12e5b0c 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -301,8 +301,8 @@ Command*'.
301 301
302*** Isearch searches in the comint/shell input history when the new variable 302*** Isearch searches in the comint/shell input history when the new variable
303`comint-history-isearch' is non-nil. New commands `comint-history-isearch-backward' 303`comint-history-isearch' is non-nil. New commands `comint-history-isearch-backward'
304and `comint-history-isearch-backward-regexp' start Isearch in the input history 304and `comint-history-isearch-backward-regexp' (bound to M-r) start Isearch
305regardless of the value of `comint-history-isearch'. 305in the input history regardless of the value of `comint-history-isearch'.
306 306
307+++ 307+++
308*** Autorevert Tail mode now works also for remote files. 308*** Autorevert Tail mode now works also for remote files.
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]