GNU bug report logs - #30134
ehsell and process-environment variable

Previous Next

Package: emacs;

Reported by: SK Kim <tttuuu888 <at> gmail.com>

Date: Tue, 16 Jan 2018 02:32:01 UTC

Severity: minor

Tags: notabug

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #23 received at 30134 <at> debbugs.gnu.org (full text, mbox):

From: Noam Postavsky <npostavs <at> users.sourceforge.net>
To: SK Kim <tttuuu888 <at> gmail.com>
Cc: 30134 <at> debbugs.gnu.org
Subject: Re: bug#30134: ehsell and process-environment variable
Date: Thu, 18 Jan 2018 12:52:40 -0500
On Thu, Jan 18, 2018 at 1:11 AM, SK Kim <tttuuu888 <at> gmail.com> wrote:

> I still don't know why but process-environment lost some values when
> creating new buffer with 'get-buffer-create' function.

Probably because it's made into a buffer-local variable in eshell buffers:

(defun eshell-var-initialize ()
  "Initialize the variable handle code."
  ;; Break the association with our parent's environment.  Otherwise,
  ;; changing a variable will affect all of Emacs.
  (unless eshell-modify-global-environment
    (set (make-local-variable 'process-environment)
     (eshell-copy-environment)))
  [...]




This bug report was last modified 7 years and 188 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.