aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorRichard M. Stallman1994-03-03 23:57:27 +0000
committerRichard M. Stallman1994-03-03 23:57:27 +0000
commitba02c1673c089e29f88c5a71d388c39a5cde1ebc (patch)
tree00719481a637f9a07d012f1deb4bbc98c6677ae1 /lisp
parent8a16a826953c8cdd874a1e7728fdf61bb978f703 (diff)
downloademacs-ba02c1673c089e29f88c5a71d388c39a5cde1ebc.tar.gz
emacs-ba02c1673c089e29f88c5a71d388c39a5cde1ebc.zip
Rename comint-input-filter-functions and
comint-output-filter-functions. (shell-mode): Put dir tracker on comint-input-filter-functions, not ...output... (shell-directory-tracker, shell-process-popd): Call just error, not message and error.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/shell.el16
1 files changed, 8 insertions, 8 deletions
diff --git a/lisp/shell.el b/lisp/shell.el
index 3a6a9c03818..e38a60e5953 100644
--- a/lisp/shell.el
+++ b/lisp/shell.el
@@ -1,8 +1,8 @@
1;;; shell.el --- specialized comint.el for running the shell. 1;;; shell.el --- specialized comint.el for running the shell.
2;;; Copyright (C) 1988, 1993 Free Software Foundation, Inc. 2;;; Copyright (C) 1988, 1993, 1994 Free Software Foundation, Inc.
3 3
4;; Author: Olin Shivers <shivers@cs.cmu.edu> 4;; Author: Olin Shivers <shivers@cs.cmu.edu>
5;; Adapted-by: Simon Marshall <s.marshall@dcs.hull.ac.uk> 5;; Maintainer: Simon Marshall <s.marshall@dcs.hull.ac.uk>
6;; Keywords: processes 6;; Keywords: processes
7 7
8;;; This file is part of GNU Emacs. 8;;; This file is part of GNU Emacs.
@@ -292,8 +292,8 @@ M-x dirtrack-toggle turns directory tracking on and off.
292\\{shell-mode-map} 292\\{shell-mode-map}
293Customization: Entry to this mode runs the hooks on `comint-mode-hook' and 293Customization: Entry to this mode runs the hooks on `comint-mode-hook' and
294`shell-mode-hook' (in that order). Before each input, the hooks on 294`shell-mode-hook' (in that order). Before each input, the hooks on
295`comint-input-sentinel-functions' are run. After each shell output, the hooks 295`comint-input-filter-functions' are run. After each shell output, the hooks
296on `comint-output-sentinel-functions' are run. 296on `comint-output-filter-functions' are run.
297 297
298Variables `shell-cd-regexp', `shell-pushd-regexp' and `shell-popd-regexp' 298Variables `shell-cd-regexp', `shell-pushd-regexp' and `shell-popd-regexp'
299are used to match their respective commands, while `shell-pushd-tohome', 299are used to match their respective commands, while `shell-pushd-tohome',
@@ -308,7 +308,7 @@ the behavior of command name completion.
308Variables `comint-input-ring-file-name' and `comint-input-autoexpand' control 308Variables `comint-input-ring-file-name' and `comint-input-autoexpand' control
309the initialisation of the input ring history, and history expansion. 309the initialisation of the input ring history, and history expansion.
310 310
311Variables `comint-output-sentinel-functions', a hook, and 311Variables `comint-output-filter-functions', a hook, and
312`comint-scroll-to-bottom-on-input',and `comint-scroll-to-bottom-on-output' 312`comint-scroll-to-bottom-on-input',and `comint-scroll-to-bottom-on-output'
313control whether input and output cause the window to scroll to the end of the 313control whether input and output cause the window to scroll to the end of the
314buffer." 314buffer."
@@ -327,7 +327,7 @@ buffer."
327 (setq shell-last-dir nil) 327 (setq shell-last-dir nil)
328 (make-local-variable 'shell-dirtrackp) 328 (make-local-variable 'shell-dirtrackp)
329 (setq shell-dirtrackp t) 329 (setq shell-dirtrackp t)
330 (add-hook 'comint-output-sentinel-functions 'shell-directory-tracker) 330 (add-hook 'comint-input-filter-functions 'shell-directory-tracker)
331 (setq comint-input-autoexpand shell-input-autoexpand) 331 (setq comint-input-autoexpand shell-input-autoexpand)
332 ;; shell-dependent assignments. 332 ;; shell-dependent assignments.
333 (let ((shell (car (process-command (get-buffer-process (current-buffer)))))) 333 (let ((shell (car (process-command (get-buffer-process (current-buffer))))))
@@ -450,7 +450,7 @@ Environment variables are expanded, see function `substitute-in-file-name'."
450 (shell-process-cd (substitute-in-file-name arg1)))) 450 (shell-process-cd (substitute-in-file-name arg1))))
451 (setq start (progn (string-match "[;\\s ]*" str end) ; skip again 451 (setq start (progn (string-match "[;\\s ]*" str end) ; skip again
452 (match-end 0))))) 452 (match-end 0)))))
453 (error (message "Couldn't cd"))))) 453 (error "Couldn't cd"))))
454 454
455;;; popd [+n] 455;;; popd [+n]
456(defun shell-process-popd (arg) 456(defun shell-process-popd (arg)
@@ -466,7 +466,7 @@ Environment variables are expanded, see function `substitute-in-file-name'."
466 (setq shell-dirstack (cdr ds)) 466 (setq shell-dirstack (cdr ds))
467 (shell-dirstack-message))) 467 (shell-dirstack-message)))
468 (t 468 (t
469 (error (message "Couldn't popd.")))))) 469 (error "Couldn't popd")))))
470 470
471;; Return DIR prefixed with comint-file-name-prefix as appropriate. 471;; Return DIR prefixed with comint-file-name-prefix as appropriate.
472(defsubst shell-prefixed-directory-name (dir) 472(defsubst shell-prefixed-directory-name (dir)