aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2014-04-06 18:27:32 -0700
committerGlenn Morris2014-04-06 18:27:32 -0700
commita9c921e66b68c4bdc699171d467be09ca327acb2 (patch)
tree42793d7e96f9fe172288c4958292b1936a2f6b9c
parent79ebc53034684f176432c255ae3109323226871c (diff)
downloademacs-a9c921e66b68c4bdc699171d467be09ca327acb2.tar.gz
emacs-a9c921e66b68c4bdc699171d467be09ca327acb2.zip
* lisp/shell.el (shell-directory-tracker): Go back to just ignoring failures.
Fixes: debbugs:17159
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/shell.el7
2 files changed, 10 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 7fbb5cb960e..26004f8d6e2 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12014-04-07 Glenn Morris <rgm@gnu.org>
2
3 * shell.el (shell-directory-tracker):
4 Go back to just ignoring failures. (Bug#17159)
5
12014-04-06 João Távora <joaotavora@gmail.com> 62014-04-06 João Távora <joaotavora@gmail.com>
2 7
3 Fix `electric-pair-delete-adjacent-pairs' in modes binding 8 Fix `electric-pair-delete-adjacent-pairs' in modes binding
diff --git a/lisp/shell.el b/lisp/shell.el
index c5c1275f19f..9dc9a013f8b 100644
--- a/lisp/shell.el
+++ b/lisp/shell.el
@@ -792,8 +792,11 @@ and `shell-pushd-dunique' control the behavior of the relevant command.
792Environment variables are expanded, see function `substitute-in-file-name'." 792Environment variables are expanded, see function `substitute-in-file-name'."
793 (if shell-dirtrackp 793 (if shell-dirtrackp
794 ;; We fail gracefully if we think the command will fail in the shell. 794 ;; We fail gracefully if we think the command will fail in the shell.
795 (with-demoted-errors "Couldn't cd: %s" 795;;; (with-demoted-errors "Directory tracker failure: %s"
796 (let ((start (progn (string-match 796 ;; This fails so often that it seems better to just ignore errors (?).
797 ;; Eg even: foo=/tmp; cd $foo is beyond us (bug#17159).
798 (ignore-errors
799 (let ((start (progn (string-match
797 (concat "^" shell-command-separator-regexp) 800 (concat "^" shell-command-separator-regexp)
798 str) ; skip whitespace 801 str) ; skip whitespace
799 (match-end 0))) 802 (match-end 0)))