diff options
| author | Glenn Morris | 2007-10-27 22:15:27 +0000 |
|---|---|---|
| committer | Glenn Morris | 2007-10-27 22:15:27 +0000 |
| commit | a034393c29917271c100c3d55dff2a23ffcffeb4 (patch) | |
| tree | afb0c8f81fa394875ea5489b8f2e25652ac13cd9 /lisp/shell.el | |
| parent | 2161a8ac9822b7d0e4c22933789f1380e86674ec (diff) | |
| download | emacs-a034393c29917271c100c3d55dff2a23ffcffeb4.tar.gz emacs-a034393c29917271c100c3d55dff2a23ffcffeb4.zip | |
(shell-dirtrack-verbose, shell-directory-tracker): Doc fix.
(shell-dirtrack-toggle): Mark as obsolete.
(dirtrack-toggle, dirtrack-mode): No longer alias to shell-dirtrack-mode.
Diffstat (limited to 'lisp/shell.el')
| -rw-r--r-- | lisp/shell.el | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/lisp/shell.el b/lisp/shell.el index a8daf8b76d2..5089e75409b 100644 --- a/lisp/shell.el +++ b/lisp/shell.el | |||
| @@ -88,7 +88,7 @@ | |||
| 88 | ;; m-c-f shell-forward-command Forward a shell command | 88 | ;; m-c-f shell-forward-command Forward a shell command |
| 89 | ;; m-c-b shell-backward-command Backward a shell command | 89 | ;; m-c-b shell-backward-command Backward a shell command |
| 90 | ;; dirs Resync the buffer's dir stack | 90 | ;; dirs Resync the buffer's dir stack |
| 91 | ;; dirtrack-mode Turn dir tracking on/off | 91 | ;; shell-dirtrack-mode Turn dir tracking on/off |
| 92 | ;; comint-strip-ctrl-m Remove trailing ^Ms from output | 92 | ;; comint-strip-ctrl-m Remove trailing ^Ms from output |
| 93 | ;; | 93 | ;; |
| 94 | ;; The shell mode hook is shell-mode-hook | 94 | ;; The shell mode hook is shell-mode-hook |
| @@ -258,7 +258,8 @@ This mirrors the optional behavior of tcsh." | |||
| 258 | 258 | ||
| 259 | (defcustom shell-dirtrack-verbose t | 259 | (defcustom shell-dirtrack-verbose t |
| 260 | "If non-nil, show the directory stack following directory change. | 260 | "If non-nil, show the directory stack following directory change. |
| 261 | This is effective only if directory tracking is enabled." | 261 | This is effective only if directory tracking is enabled. |
| 262 | The `dirtrack' package provides an alternative implementation of this feature." | ||
| 262 | :type 'boolean | 263 | :type 'boolean |
| 263 | :group 'shell-directories) | 264 | :group 'shell-directories) |
| 264 | 265 | ||
| @@ -393,7 +394,9 @@ While directory tracking is enabled, the shell's working directory is displayed | |||
| 393 | by \\[list-buffers] or \\[mouse-buffer-menu] in the `File' field. | 394 | by \\[list-buffers] or \\[mouse-buffer-menu] in the `File' field. |
| 394 | \\[dirs] queries the shell and resyncs Emacs' idea of what the current | 395 | \\[dirs] queries the shell and resyncs Emacs' idea of what the current |
| 395 | directory stack is. | 396 | directory stack is. |
| 396 | \\[dirtrack-mode] turns directory tracking on and off. | 397 | \\[shell-dirtrack-mode] turns directory tracking on and off. |
| 398 | \(The `dirtrack' package provides an alternative implementation of this | ||
| 399 | feature.) | ||
| 397 | 400 | ||
| 398 | \\{shell-mode-map} | 401 | \\{shell-mode-map} |
| 399 | Customization: Entry to this mode runs the hooks on `comint-mode-hook' and | 402 | Customization: Entry to this mode runs the hooks on `comint-mode-hook' and |
| @@ -621,7 +624,7 @@ This function is called on each input passed to the shell. | |||
| 621 | It watches for cd, pushd and popd commands and sets the buffer's | 624 | It watches for cd, pushd and popd commands and sets the buffer's |
| 622 | default directory to track these commands. | 625 | default directory to track these commands. |
| 623 | 626 | ||
| 624 | You may toggle this tracking on and off with \\[dirtrack-mode]. | 627 | You may toggle this tracking on and off with \\[shell-dirtrack-mode]. |
| 625 | If Emacs gets confused, you can resync with the shell with \\[dirs]. | 628 | If Emacs gets confused, you can resync with the shell with \\[dirs]. |
| 626 | 629 | ||
| 627 | See variables `shell-cd-regexp', `shell-chdrive-regexp', `shell-pushd-regexp', | 630 | See variables `shell-cd-regexp', `shell-chdrive-regexp', `shell-pushd-regexp', |
| @@ -785,10 +788,8 @@ Environment variables are expanded, see function `substitute-in-file-name'." | |||
| 785 | (add-hook 'comint-input-filter-functions 'shell-directory-tracker nil t) | 788 | (add-hook 'comint-input-filter-functions 'shell-directory-tracker nil t) |
| 786 | (remove-hook 'comint-input-filter-functions 'shell-directory-tracker t))) | 789 | (remove-hook 'comint-input-filter-functions 'shell-directory-tracker t))) |
| 787 | 790 | ||
| 788 | ;; For your typing convenience: | 791 | (define-obsolete-function-alias 'shell-dirtrack-toggle 'shell-dirtrack-mode |
| 789 | (defalias 'shell-dirtrack-toggle 'shell-dirtrack-mode) ;??Convenience?? | 792 | "23.1") |
| 790 | (defalias 'dirtrack-toggle 'shell-dirtrack-mode) | ||
| 791 | (defalias 'dirtrack-mode 'shell-dirtrack-mode) | ||
| 792 | 793 | ||
| 793 | (defun shell-cd (dir) | 794 | (defun shell-cd (dir) |
| 794 | "Do normal `cd' to DIR, and set `list-buffers-directory'." | 795 | "Do normal `cd' to DIR, and set `list-buffers-directory'." |