diff options
Diffstat (limited to 'lisp/eshell/em-script.el')
-rw-r--r-- | lisp/eshell/em-script.el | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lisp/eshell/em-script.el b/lisp/eshell/em-script.el index 5c2f145f595..857ae6a4755 100644 --- a/lisp/eshell/em-script.el +++ b/lisp/eshell/em-script.el @@ -58,15 +58,13 @@ This includes when running `eshell-command'." (defun eshell-script-initialize () ;Called from `eshell-mode' via intern-soft! "Initialize the script parsing code." - (make-local-variable 'eshell-interpreter-alist) - (setq eshell-interpreter-alist + (setq-local eshell-interpreter-alist (cons (cons #'(lambda (file _args) (string= (file-name-nondirectory file) "eshell")) 'eshell/source) eshell-interpreter-alist)) - (make-local-variable 'eshell-complex-commands) - (setq eshell-complex-commands + (setq-local eshell-complex-commands (append '("source" ".") eshell-complex-commands)) ;; these two variables are changed through usage, but we don't want ;; to ruin it for other modules |