mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-17 10:27:41 +00:00
Fix cd to directories called "eshell" in eshell
* lisp/eshell/em-script.el (eshell-script-initialize): Allow changing directory to directories called "eshell" (bug#47547). Copyright-paperwork-exempt: yes
This commit is contained in:
parent
81940e9c0e
commit
d2edc29db6
1 changed files with 3 additions and 2 deletions
|
|
@ -60,8 +60,9 @@ This includes when running `eshell-command'."
|
|||
"Initialize the script parsing code."
|
||||
(setq-local eshell-interpreter-alist
|
||||
(cons (cons (lambda (file _args)
|
||||
(string= (file-name-nondirectory file)
|
||||
"eshell"))
|
||||
(and (file-regular-p file)
|
||||
(string= (file-name-nondirectory file)
|
||||
"eshell")))
|
||||
'eshell/source)
|
||||
eshell-interpreter-alist))
|
||||
(setq-local eshell-complex-commands
|
||||
|
|
|
|||
Loading…
Reference in a new issue