GNU bug report logs -
#25496
25.1.91; INSIDE_EMACS env variable is not set in eshell
Previous Next
Reported by: Alex Hutcheson <alexhutcheson <at> google.com>
Date: Fri, 20 Jan 2017 22:33:02 UTC
Severity: minor
Tags: fixed, patch
Merged with 39596
Found in versions 25.1.91, 26.3
Fixed in version 28.1
Done: Noam Postavsky <npostavs <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #28 received at 25496 <at> debbugs.gnu.org (full text, mbox):
Federico Tedin <federicotedin <at> gmail.com> writes:
> Pinging this thread again in case a maintainer can take a look at the
> patch I submitted on my last message.
Thanks for the ping, I had forgotten about this one.
> * lisp/eshell/em-dirs.el (eshell-dirs-initialize): Add INSIDE_EMACS
> variable to buffer-local value of eshell-variable-aliases-alist.
> * lisp/eshell/esh-var.el (eshell-variable-aliases-list): Update doc
> string; remove mention of eshell-user-aliases-list and explain that
I think eshell-user-aliases-list was meant to refer to
eshell-command-aliases-list (though maybe the reference isn't really
needed anyway).
> + ("INSIDE_EMACS" ,(lambda (_indices)
> + (format "%s,eshell" emacs-version))
Since emacs-version generally doesn't change during an Emacs session, is
there any need for a lambda at all here?
> "This list provides aliasing for variable references.
> -It is very similar in concept to what `eshell-user-aliases-list' does
> -for commands. Each member of this defines the name of a command,
> -and the Lisp value to return for that variable if it is accessed
> -via the syntax `$NAME'.
> +Each member of this defines the name of a command, and the Lisp value
^^^^^^^ ^^^^^^^
> +to return for that variable if it is accessed via the syntax `$NAME'.
(These problems weren't introduced by your patch, but) I think the "of
this" is redundant, and it should say "variable" instead of "command".
This bug report was last modified 5 years and 95 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.