]> git.eshelyaron.com Git - emacs.git/commitdiff
(eshell-rebind-keys-alist): Add defvar.
authorRichard M. Stallman <rms@gnu.org>
Sat, 16 Jul 2005 17:42:49 +0000 (17:42 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sat, 16 Jul 2005 17:42:49 +0000 (17:42 +0000)
(eshell-hist-initialize): Use that var the natural way.

lisp/eshell/em-hist.el

index c82be565c4f60e2ddf177a7698712d359da31736..687707883497a272cda9cf8a9de784eec3270bd0 100644 (file)
@@ -204,6 +204,8 @@ element, regardless of any text on the command line.  In that case,
   (define-key eshell-isearch-map [(control ?c)] 'eshell-isearch-cancel-map)
   (define-key eshell-isearch-cancel-map [(control ?c)] 'eshell-isearch-cancel))
 
+(defvar eshell-rebind-keys-alist)
+
 ;;; Functions:
 
 (defun eshell-hist-initialize ()
@@ -217,10 +219,10 @@ element, regardless of any text on the command line.  In that case,
 
   (if (and (eshell-using-module 'eshell-rebind)
           (not eshell-non-interactive-p))
-      (let ((rebind-alist (symbol-value 'eshell-rebind-keys-alist)))
+      (let ((rebind-alist eshell-rebind-keys-alist))
        (make-local-variable 'eshell-rebind-keys-alist)
-       (set 'eshell-rebind-keys-alist
-            (append rebind-alist eshell-hist-rebind-keys-alist))
+       (seteshell-rebind-keys-alist
+             (append rebind-alist eshell-hist-rebind-keys-alist))
        (set (make-local-variable 'search-invisible) t)
        (set (make-local-variable 'search-exit-option) t)
        (add-hook 'isearch-mode-hook