diff options
| author | Glenn Morris | 2013-05-07 00:57:02 -0700 |
|---|---|---|
| committer | Glenn Morris | 2013-05-07 00:57:02 -0700 |
| commit | 4f58bc066df27f66a7110b672f7c137e6ef1357a (patch) | |
| tree | bdf0832490485305fbcdd785aef12e0cc63634d9 | |
| parent | 7cc8ae065c3840d74921a673f1c7e480b092e295 (diff) | |
| download | emacs-4f58bc066df27f66a7110b672f7c137e6ef1357a.tar.gz emacs-4f58bc066df27f66a7110b672f7c137e6ef1357a.zip | |
* lisp/eshell/em-hist.el (eshell-isearch-map): Initialize in the defvar.
Remove explicit eshell-isearch-cancel-map.
| -rw-r--r-- | lisp/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/eshell/em-hist.el | 27 |
2 files changed, 15 insertions, 15 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2d4a6385362..7f43a3634d9 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,8 @@ | |||
| 1 | 2013-05-07 Glenn Morris <rgm@gnu.org> | 1 | 2013-05-07 Glenn Morris <rgm@gnu.org> |
| 2 | 2 | ||
| 3 | * eshell/em-hist.el (eshell-isearch-map): Initialize in the defvar. | ||
| 4 | Remove explicit eshell-isearch-cancel-map. | ||
| 5 | |||
| 3 | * progmodes/f90.el (f90-smart-end-names): New option. | 6 | * progmodes/f90.el (f90-smart-end-names): New option. |
| 4 | (f90-smart-end): Doc fix. | 7 | (f90-smart-end): Doc fix. |
| 5 | (f90-end-block-optional-name): New constant. | 8 | (f90-end-block-optional-name): New constant. |
diff --git a/lisp/eshell/em-hist.el b/lisp/eshell/em-hist.el index 62d3ae125e9..694fe71a95c 100644 --- a/lisp/eshell/em-hist.el +++ b/lisp/eshell/em-hist.el | |||
| @@ -189,21 +189,18 @@ element, regardless of any text on the command line. In that case, | |||
| 189 | (defvar eshell-matching-input-from-input-string "") | 189 | (defvar eshell-matching-input-from-input-string "") |
| 190 | (defvar eshell-save-history-index nil) | 190 | (defvar eshell-save-history-index nil) |
| 191 | 191 | ||
| 192 | (defvar eshell-isearch-map nil) | 192 | (defvar eshell-isearch-map |
| 193 | 193 | (let ((map (copy-keymap isearch-mode-map))) | |
| 194 | (unless eshell-isearch-map | 194 | (define-key map [(control ?m)] 'eshell-isearch-return) |
| 195 | (setq eshell-isearch-map (copy-keymap isearch-mode-map)) | 195 | (define-key map [return] 'eshell-isearch-return) |
| 196 | (define-key eshell-isearch-map [(control ?m)] 'eshell-isearch-return) | 196 | (define-key map [(control ?r)] 'eshell-isearch-repeat-backward) |
| 197 | (define-key eshell-isearch-map [return] 'eshell-isearch-return) | 197 | (define-key map [(control ?s)] 'eshell-isearch-repeat-forward) |
| 198 | (define-key eshell-isearch-map [(control ?r)] 'eshell-isearch-repeat-backward) | 198 | (define-key map [(control ?g)] 'eshell-isearch-abort) |
| 199 | (define-key eshell-isearch-map [(control ?s)] 'eshell-isearch-repeat-forward) | 199 | (define-key map [backspace] 'eshell-isearch-delete-char) |
| 200 | (define-key eshell-isearch-map [(control ?g)] 'eshell-isearch-abort) | 200 | (define-key map [delete] 'eshell-isearch-delete-char) |
| 201 | (define-key eshell-isearch-map [backspace] 'eshell-isearch-delete-char) | 201 | (define-key map "\C-c\C-c" 'eshell-isearch-cancel) |
| 202 | (define-key eshell-isearch-map [delete] 'eshell-isearch-delete-char) | 202 | map) |
| 203 | (defvar eshell-isearch-cancel-map) | 203 | "Keymap used in isearch in Eshell.") |
| 204 | (define-prefix-command 'eshell-isearch-cancel-map) | ||
| 205 | (define-key eshell-isearch-map [(control ?c)] 'eshell-isearch-cancel-map) | ||
| 206 | (define-key eshell-isearch-cancel-map [(control ?c)] 'eshell-isearch-cancel)) | ||
| 207 | 204 | ||
| 208 | (defvar eshell-rebind-keys-alist) | 205 | (defvar eshell-rebind-keys-alist) |
| 209 | 206 | ||