comparison lisp/term.el @ 16848:7d682bad413e

delete comments referring to long defunct make-shell.
author Simon Marshall <simon@gnu.org>
date Wed, 08 Jan 1997 14:57:02 +0000
parents ea6697d31d1c
children 2824e1f84717
comparison
equal deleted inserted replaced
16847:76159aa277eb 16848:7d682bad413e
781 it is alive (status RUN or STOP). BUFFER can be either a buffer or the 781 it is alive (status RUN or STOP). BUFFER can be either a buffer or the
782 name of one" 782 name of one"
783 (let ((proc (get-buffer-process buffer))) 783 (let ((proc (get-buffer-process buffer)))
784 (and proc (memq (process-status proc) '(run stop))))) 784 (and proc (memq (process-status proc) '(run stop)))))
785 785
786 ;;; Note that this guy, unlike shell.el's make-shell, barfs if you pass it ()
787 ;;; for the second argument (program).
788 ;;;###autoload 786 ;;;###autoload
789 (defun make-term (name program &optional startfile &rest switches) 787 (defun make-term (name program &optional startfile &rest switches)
790 "Make a term process NAME in a buffer, running PROGRAM. 788 "Make a term process NAME in a buffer, running PROGRAM.
791 The name of the buffer is made by surrounding NAME with `*'s. 789 The name of the buffer is made by surrounding NAME with `*'s.
792 If there is already a running process in that buffer, it is not restarted. 790 If there is already a running process in that buffer, it is not restarted.
3240 ;;; (setq shell-directory-stack nil) 3238 ;;; (setq shell-directory-stack nil)
3241 ;;; (add-hook 'term-input-filter-functions 'shell-directory-tracker) 3239 ;;; (add-hook 'term-input-filter-functions 'shell-directory-tracker)
3242 ;;; (run-hooks 'shell-mode-hook)) 3240 ;;; (run-hooks 'shell-mode-hook))
3243 ;;; 3241 ;;;
3244 ;;; 3242 ;;;
3245 ;;; Note that make-term is different from make-shell in that it
3246 ;;; doesn't have a default program argument. If you give make-shell
3247 ;;; a program name of NIL, it cleverly chooses one of explicit-shell-name,
3248 ;;; $ESHELL, $SHELL, or /bin/sh. If you give make-term a program argument
3249 ;;; of NIL, it barfs. Adjust your code accordingly...
3250 ;;;
3251 ;;; Completion for term-mode users 3243 ;;; Completion for term-mode users
3252 ;;; 3244 ;;;
3253 ;;; For modes that use term-mode, term-dynamic-complete-functions is the 3245 ;;; For modes that use term-mode, term-dynamic-complete-functions is the
3254 ;;; hook to add completion functions to. Functions on this list should return 3246 ;;; hook to add completion functions to. Functions on this list should return
3255 ;;; non-nil if completion occurs (i.e., further completion should not occur). 3247 ;;; non-nil if completion occurs (i.e., further completion should not occur).