Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
a9c921e6
Commit
a9c921e6
authored
Apr 06, 2014
by
Glenn Morris
Browse files
* lisp/shell.el (shell-directory-tracker): Go back to just ignoring failures.
Fixes: debbugs:17159
parent
79ebc530
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
2 deletions
+10
-2
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/shell.el
lisp/shell.el
+5
-2
No files found.
lisp/ChangeLog
View file @
a9c921e6
2014-04-07 Glenn Morris <rgm@gnu.org>
* shell.el (shell-directory-tracker):
Go back to just ignoring failures. (Bug#17159)
2014-04-06 João Távora <joaotavora@gmail.com>
Fix `electric-pair-delete-adjacent-pairs' in modes binding
...
...
lisp/shell.el
View file @
a9c921e6
...
...
@@ -792,8 +792,11 @@ and `shell-pushd-dunique' control the behavior of the relevant command.
Environment variables are expanded, see function `substitute-in-file-name'."
(
if
shell-dirtrackp
;; We fail gracefully if we think the command will fail in the shell.
(
with-demoted-errors
"Couldn't cd: %s"
(
let
((
start
(
progn
(
string-match
;;; (with-demoted-errors "Directory tracker failure: %s"
;; This fails so often that it seems better to just ignore errors (?).
;; Eg even: foo=/tmp; cd $foo is beyond us (bug#17159).
(
ignore-errors
(
let
((
start
(
progn
(
string-match
(
concat
"^"
shell-command-separator-regexp
)
str
)
; skip whitespace
(
match-end
0
)))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment