projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6171a9a
)
Only run 'eshell-first-time-mode-hook' once per Emacs session
author
Lin Sun
<sunlin7@hotmail.com>
Sat, 27 Apr 2024 06:55:49 +0000
(06:55 +0000)
committer
Jim Porter
<jporterbugs@gmail.com>
Fri, 3 May 2024 03:13:20 +0000
(20:13 -0700)
* lisp/eshell/esh-mode.el (eshell-mode): Set 'eshell-first-time-p' to
nil (bug#70610).
lisp/eshell/esh-mode.el
patch
|
blob
|
history
diff --git
a/lisp/eshell/esh-mode.el
b/lisp/eshell/esh-mode.el
index b15f99a03597a9d8ffd819f0bb612f9a71ac8b28..5de200ce4b58884d25e0144fe1df4cda66bc75c1 100644
(file)
--- a/
lisp/eshell/esh-mode.el
+++ b/
lisp/eshell/esh-mode.el
@@
-418,8
+418,10
@@
and the hook `eshell-exit-hook'."
(add-hook 'kill-buffer-hook #'eshell-kill-buffer-function t t)
- (if eshell-first-time-p
- (run-hooks 'eshell-first-time-mode-hook))
+ (when eshell-first-time-p
+ (setq eshell-first-time-p nil)
+ (run-hooks 'eshell-first-time-mode-hook))
+
(run-hooks 'eshell-post-command-hook))
(put 'eshell-mode 'mode-class 'special)