diff options
| author | Karl Heuer | 1998-02-25 22:43:03 +0000 |
|---|---|---|
| committer | Karl Heuer | 1998-02-25 22:43:03 +0000 |
| commit | 2154db49c887727459be775026a59daf132dce10 (patch) | |
| tree | 1a2432f8aed16c21c877219598bdcbd854ef587f | |
| parent | 92062a094cb5c404803b9b228f6ff9c411dda08a (diff) | |
| download | emacs-2154db49c887727459be775026a59daf132dce10.tar.gz emacs-2154db49c887727459be775026a59daf132dce10.zip | |
(shell-dirtrack-mode): Renamed from shell-dirtrack-toggle.
(dirtrack-mode, shell-dirtrack-toggle): Defined as aliases.
| -rw-r--r-- | lisp/shell.el | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/lisp/shell.el b/lisp/shell.el index 1b8c9da313a..ff86b52356b 100644 --- a/lisp/shell.el +++ b/lisp/shell.el | |||
| @@ -92,7 +92,7 @@ | |||
| 92 | ;; m-c-f shell-forward-command Forward a shell command | 92 | ;; m-c-f shell-forward-command Forward a shell command |
| 93 | ;; m-c-b shell-backward-command Backward a shell command | 93 | ;; m-c-b shell-backward-command Backward a shell command |
| 94 | ;; dirs Resync the buffer's dir stack | 94 | ;; dirs Resync the buffer's dir stack |
| 95 | ;; dirtrack-toggle Turn dir tracking on/off | 95 | ;; dirtrack-mode Turn dir tracking on/off |
| 96 | ;; comint-strip-ctrl-m Remove trailing ^Ms from output | 96 | ;; comint-strip-ctrl-m Remove trailing ^Ms from output |
| 97 | ;; | 97 | ;; |
| 98 | ;; The shell mode hook is shell-mode-hook | 98 | ;; The shell mode hook is shell-mode-hook |
| @@ -342,7 +342,7 @@ While directory tracking is enabled, the shell's working directory is displayed | |||
| 342 | by \\[list-buffers] or \\[mouse-buffer-menu] in the `File' field. | 342 | by \\[list-buffers] or \\[mouse-buffer-menu] in the `File' field. |
| 343 | \\[dirs] queries the shell and resyncs Emacs' idea of what the current | 343 | \\[dirs] queries the shell and resyncs Emacs' idea of what the current |
| 344 | directory stack is. | 344 | directory stack is. |
| 345 | \\[dirtrack-toggle] turns directory tracking on and off. | 345 | \\[dirtrack-mode] turns directory tracking on and off. |
| 346 | 346 | ||
| 347 | \\{shell-mode-map} | 347 | \\{shell-mode-map} |
| 348 | Customization: Entry to this mode runs the hooks on `comint-mode-hook' and | 348 | Customization: Entry to this mode runs the hooks on `comint-mode-hook' and |
| @@ -513,7 +513,7 @@ This function is called on each input passed to the shell. | |||
| 513 | It watches for cd, pushd and popd commands and sets the buffer's | 513 | It watches for cd, pushd and popd commands and sets the buffer's |
| 514 | default directory to track these commands. | 514 | default directory to track these commands. |
| 515 | 515 | ||
| 516 | You may toggle this tracking on and off with M-x dirtrack-toggle. | 516 | You may toggle this tracking on and off with M-x dirtrack-mode. |
| 517 | If emacs gets confused, you can resync with the shell with M-x dirs. | 517 | If emacs gets confused, you can resync with the shell with M-x dirs. |
| 518 | 518 | ||
| 519 | See variables `shell-cd-regexp', `shell-chdrive-regexp', `shell-pushd-regexp', | 519 | See variables `shell-cd-regexp', `shell-chdrive-regexp', `shell-pushd-regexp', |
| @@ -638,7 +638,7 @@ Environment variables are expanded, see function `substitute-in-file-name'." | |||
| 638 | (string-to-int str))) | 638 | (string-to-int str))) |
| 639 | 639 | ||
| 640 | 640 | ||
| 641 | (defun shell-dirtrack-toggle () | 641 | (defun shell-dirtrack-mode () |
| 642 | "Turn directory tracking on and off in a shell buffer." | 642 | "Turn directory tracking on and off in a shell buffer." |
| 643 | (interactive) | 643 | (interactive) |
| 644 | (if (setq shell-dirtrackp (not shell-dirtrackp)) | 644 | (if (setq shell-dirtrackp (not shell-dirtrackp)) |
| @@ -647,7 +647,9 @@ Environment variables are expanded, see function `substitute-in-file-name'." | |||
| 647 | (message "Directory tracking %s" (if shell-dirtrackp "ON" "OFF"))) | 647 | (message "Directory tracking %s" (if shell-dirtrackp "ON" "OFF"))) |
| 648 | 648 | ||
| 649 | ;;; For your typing convenience: | 649 | ;;; For your typing convenience: |
| 650 | (defalias 'dirtrack-toggle 'shell-dirtrack-toggle) | 650 | (defalias 'shell-dirtrack-toggle 'shell-dirtrack-mode) |
| 651 | (defalias 'dirtrack-toggle 'shell-dirtrack-mode) | ||
| 652 | (defalias 'dirtrack-mode 'shell-dirtrack-mode) | ||
| 651 | 653 | ||
| 652 | (defun shell-cd (dir) | 654 | (defun shell-cd (dir) |
| 653 | "Do normal `cd' to DIR, and set `list-buffers-directory'." | 655 | "Do normal `cd' to DIR, and set `list-buffers-directory'." |