]> code.delx.au - gnu-emacs/blobdiff - lisp/eshell/esh-var.el
Fix selective diff browsing in Ediff
[gnu-emacs] / lisp / eshell / esh-var.el
index 8dd19618da2d38d12979246ab9850465dbe83aea..197a8e77cc7041806adfd21947a92f577ddc9bc6 100644 (file)
@@ -1,6 +1,6 @@
 ;;; esh-var.el --- handling of variables  -*- lexical-binding:t -*-
 
-;; Copyright (C) 1999-2013 Free Software Foundation, Inc.
+;; Copyright (C) 1999-2015 Free Software Foundation, Inc.
 
 ;; Author: John Wiegley <johnw@gnu.org>
 
@@ -502,6 +502,7 @@ Possible options are:
         (let ((sym (intern-soft var)))
           (if (and sym (boundp sym)
                    (or eshell-prefer-lisp-variables
+                       (memq sym eshell--local-vars) ; bug#15372
                        (not (getenv var))))
               (symbol-value sym)
             (getenv var))))