/[emacs]/emacs/lisp/eshell/esh-var.el
ViewVC logotype

Diff of /emacs/lisp/eshell/esh-var.el

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.8 by walters, Fri Mar 1 01:47:35 2002 UTC revision 1.9 by johnw, Fri May 3 20:43:53 2002 UTC
# Line 137  variable value, a subcommand, or even th Line 137  variable value, a subcommand, or even th
137    :type 'boolean    :type 'boolean
138    :group 'eshell-var)    :group 'eshell-var)
139    
140    (defcustom eshell-modify-global-environment nil
141      "*If non-nil, using `export' changes Emacs's global environment."
142      :type 'boolean
143      :group 'eshell-var)
144    
145  (defcustom eshell-variable-name-regexp "[A-Za-z0-9_-]+"  (defcustom eshell-variable-name-regexp "[A-Za-z0-9_-]+"
146    "*A regexp identifying what constitutes a variable name reference.    "*A regexp identifying what constitutes a variable name reference.
147  Note that this only applies for '$NAME'.  If the syntax '$<NAME>' is  Note that this only applies for '$NAME'.  If the syntax '$<NAME>' is
# Line 199  function), and the arguments passed to t Line 204  function), and the arguments passed to t
204    "Initialize the variable handle code."    "Initialize the variable handle code."
205    ;; Break the association with our parent's environment.  Otherwise,    ;; Break the association with our parent's environment.  Otherwise,
206    ;; changing a variable will affect all of Emacs.    ;; changing a variable will affect all of Emacs.
207    (set (make-local-variable 'process-environment) (eshell-copy-environment))    (unless eshell-modify-global-environment
208        (set (make-local-variable 'process-environment)
209             (eshell-copy-environment)))
210    
211    (define-key eshell-command-map [(meta ?v)] 'eshell-insert-envvar)    (define-key eshell-command-map [(meta ?v)] 'eshell-insert-envvar)
212    

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.9

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26