From: Glenn Morris Date: Tue, 7 May 2013 07:57:02 +0000 (-0700) Subject: * lisp/eshell/em-hist.el (eshell-isearch-map): Initialize in the defvar. X-Git-Url: https://git.hcoop.net/bpt/emacs.git/commitdiff_plain/4f58bc066df27f66a7110b672f7c137e6ef1357a * lisp/eshell/em-hist.el (eshell-isearch-map): Initialize in the defvar. Remove explicit eshell-isearch-cancel-map. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 2d4a638536..7f43a3634d 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,5 +1,8 @@ 2013-05-07 Glenn Morris + * eshell/em-hist.el (eshell-isearch-map): Initialize in the defvar. + Remove explicit eshell-isearch-cancel-map. + * progmodes/f90.el (f90-smart-end-names): New option. (f90-smart-end): Doc fix. (f90-end-block-optional-name): New constant. diff --git a/lisp/eshell/em-hist.el b/lisp/eshell/em-hist.el index 62d3ae125e..694fe71a95 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, (defvar eshell-matching-input-from-input-string "") (defvar eshell-save-history-index nil) -(defvar eshell-isearch-map nil) - -(unless eshell-isearch-map - (setq eshell-isearch-map (copy-keymap isearch-mode-map)) - (define-key eshell-isearch-map [(control ?m)] 'eshell-isearch-return) - (define-key eshell-isearch-map [return] 'eshell-isearch-return) - (define-key eshell-isearch-map [(control ?r)] 'eshell-isearch-repeat-backward) - (define-key eshell-isearch-map [(control ?s)] 'eshell-isearch-repeat-forward) - (define-key eshell-isearch-map [(control ?g)] 'eshell-isearch-abort) - (define-key eshell-isearch-map [backspace] 'eshell-isearch-delete-char) - (define-key eshell-isearch-map [delete] 'eshell-isearch-delete-char) - (defvar eshell-isearch-cancel-map) - (define-prefix-command 'eshell-isearch-cancel-map) - (define-key eshell-isearch-map [(control ?c)] 'eshell-isearch-cancel-map) - (define-key eshell-isearch-cancel-map [(control ?c)] 'eshell-isearch-cancel)) +(defvar eshell-isearch-map + (let ((map (copy-keymap isearch-mode-map))) + (define-key map [(control ?m)] 'eshell-isearch-return) + (define-key map [return] 'eshell-isearch-return) + (define-key map [(control ?r)] 'eshell-isearch-repeat-backward) + (define-key map [(control ?s)] 'eshell-isearch-repeat-forward) + (define-key map [(control ?g)] 'eshell-isearch-abort) + (define-key map [backspace] 'eshell-isearch-delete-char) + (define-key map [delete] 'eshell-isearch-delete-char) + (define-key map "\C-c\C-c" 'eshell-isearch-cancel) + map) + "Keymap used in isearch in Eshell.") (defvar eshell-rebind-keys-alist)