master ad4a639e928: ; Use a better method for the initial value of 'eshell-lexical-binding'

Jim Porter <[email protected]>
Newsgroups gmane.emacs.diffs
Message-ID <[email protected]>
branch: master
commit ad4a639e928371c7b017419b194ee8c173032f2e
Author: Jim Porter <[email protected]>
Commit: Jim Porter <[email protected]>

    ; Use a better method for the initial value of 'eshell-lexical-binding'
    
    * lisp/eshell/esh-cmd.el (eshell-lexical-binding): Set to the default
    top-level value of 'lexical-binding'.
---
 lisp/eshell/esh-cmd.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/eshell/esh-cmd.el b/lisp/eshell/esh-cmd.el
index bb84651fff9..3164b5abcbd 100644
--- a/lisp/eshell/esh-cmd.el
+++ b/lisp/eshell/esh-cmd.el
@@ -126,7 +126,7 @@ There are several different kinds of commands, however."
   "If non-nil, prefer Lisp functions to external commands."
   :type 'boolean)
 
-(defcustom eshell-lexical-binding lexical-binding
+(defcustom eshell-lexical-binding (eval-when-compile (default-toplevel-value 'lexical-binding))
   "If non-nil, use lexical binding when evaluating Eshell forms."
   :type 'boolean)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.