emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/lisp/eshell/esh-var.el


From: John Wiegley
Subject: [Emacs-diffs] Changes to emacs/lisp/eshell/esh-var.el
Date: Fri, 03 May 2002 16:43:53 -0400

Index: emacs/lisp/eshell/esh-var.el
diff -c emacs/lisp/eshell/esh-var.el:1.8 emacs/lisp/eshell/esh-var.el:1.9
*** emacs/lisp/eshell/esh-var.el:1.8    Thu Feb 28 20:47:35 2002
--- emacs/lisp/eshell/esh-var.el        Fri May  3 16:43:53 2002
***************
*** 137,142 ****
--- 137,147 ----
    :type 'boolean
    :group 'eshell-var)
  
+ (defcustom eshell-modify-global-environment nil
+   "*If non-nil, using `export' changes Emacs's global environment."
+   :type 'boolean
+   :group 'eshell-var)
+ 
  (defcustom eshell-variable-name-regexp "[A-Za-z0-9_-]+"
    "*A regexp identifying what constitutes a variable name reference.
  Note that this only applies for '$NAME'.  If the syntax '$<NAME>' is
***************
*** 199,205 ****
    "Initialize the variable handle code."
    ;; Break the association with our parent's environment.  Otherwise,
    ;; changing a variable will affect all of Emacs.
!   (set (make-local-variable 'process-environment) (eshell-copy-environment))
  
    (define-key eshell-command-map [(meta ?v)] 'eshell-insert-envvar)
  
--- 204,212 ----
    "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)))
  
    (define-key eshell-command-map [(meta ?v)] 'eshell-insert-envvar)
  



reply via email to

[Prev in Thread] Current Thread [Next in Thread]