diff options
| author | Juanma Barranquero | 2011-04-19 15:44:55 +0200 |
|---|---|---|
| committer | Juanma Barranquero | 2011-04-19 15:44:55 +0200 |
| commit | 06b605171f1c9d8b42bd3326a243b8b03d2e4e58 (patch) | |
| tree | e96c135042999136bf0e75d113aae306e51983e3 /lisp/shell.el | |
| parent | 04c569546ad52f6270d8fc6d4aa0750950a0ac05 (diff) | |
| download | emacs-06b605171f1c9d8b42bd3326a243b8b03d2e4e58.tar.gz emacs-06b605171f1c9d8b42bd3326a243b8b03d2e4e58.zip | |
lisp/*.el: Lexical-binding cleanup.
Diffstat (limited to 'lisp/shell.el')
| -rw-r--r-- | lisp/shell.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/shell.el b/lisp/shell.el index dde81c6cb95..57187b6d7f9 100644 --- a/lisp/shell.el +++ b/lisp/shell.el | |||
| @@ -494,7 +494,7 @@ buffer." | |||
| 494 | 'shell-dir-cookie-watcher nil t)) | 494 | 'shell-dir-cookie-watcher nil t)) |
| 495 | (comint-read-input-ring t))) | 495 | (comint-read-input-ring t))) |
| 496 | 496 | ||
| 497 | (defun shell-filter-ctrl-a-ctrl-b (string) | 497 | (defun shell-filter-ctrl-a-ctrl-b (_string) |
| 498 | "Remove `^A' and `^B' characters from comint output. | 498 | "Remove `^A' and `^B' characters from comint output. |
| 499 | 499 | ||
| 500 | Bash uses these characters as internal quoting characters in its | 500 | Bash uses these characters as internal quoting characters in its |
| @@ -585,7 +585,7 @@ Otherwise, one argument `-i' is passed to the shell. | |||
| 585 | (current-buffer))) | 585 | (current-buffer))) |
| 586 | 586 | ||
| 587 | ;; On remote hosts, the local `shell-file-name' might be useless. | 587 | ;; On remote hosts, the local `shell-file-name' might be useless. |
| 588 | (if (and (interactive-p) | 588 | (if (and (called-interactively-p 'any) |
| 589 | (file-remote-p default-directory) | 589 | (file-remote-p default-directory) |
| 590 | (null explicit-shell-file-name) | 590 | (null explicit-shell-file-name) |
| 591 | (null (getenv "ESHELL"))) | 591 | (null (getenv "ESHELL"))) |
| @@ -692,7 +692,7 @@ and `shell-pushd-dunique' control the behavior of the relevant command. | |||
| 692 | Environment variables are expanded, see function `substitute-in-file-name'." | 692 | Environment variables are expanded, see function `substitute-in-file-name'." |
| 693 | (if shell-dirtrackp | 693 | (if shell-dirtrackp |
| 694 | ;; We fail gracefully if we think the command will fail in the shell. | 694 | ;; We fail gracefully if we think the command will fail in the shell. |
| 695 | (condition-case chdir-failure | 695 | (condition-case nil |
| 696 | (let ((start (progn (string-match | 696 | (let ((start (progn (string-match |
| 697 | (concat "^" shell-command-separator-regexp) | 697 | (concat "^" shell-command-separator-regexp) |
| 698 | str) ; skip whitespace | 698 | str) ; skip whitespace |