aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJim Blandy1991-02-02 12:41:08 +0000
committerJim Blandy1991-02-02 12:41:08 +0000
commit1ff6cf10598399bc08b81366e6bbedfd46bab5f6 (patch)
treeb8b1d7db8da85f20767acf62be153ee5113535f2
parentc440e42b9cbe65e4c7b954a71eb60b756b68b3d6 (diff)
downloademacs-1ff6cf10598399bc08b81366e6bbedfd46bab5f6.tar.gz
emacs-1ff6cf10598399bc08b81366e6bbedfd46bab5f6.zip
*** empty log message ***
-rw-r--r--lisp/comint.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/comint.el b/lisp/comint.el
index 0a81e2f5f1a..31e8b40e1e7 100644
--- a/lisp/comint.el
+++ b/lisp/comint.el
@@ -147,13 +147,13 @@ to continue it.
147 147
148Entry to this mode runs the hooks on comint-mode-hook." 148Entry to this mode runs the hooks on comint-mode-hook."
149 (interactive) 149 (interactive)
150 (make-local-variable 'input-ring)
151 (put 'input-ring 'preserved t)
152 (kill-all-local-variables) 150 (kill-all-local-variables)
153 (setq major-mode 'comint-mode 151 (setq major-mode 'comint-mode
154 mode-name "Comint" 152 mode-name "Comint"
155 mode-line-process '(": %s")) 153 mode-line-process '(": %s"))
156 (use-local-map comint-mode-map) 154 (use-local-map comint-mode-map)
155 (set (make-local-variable 'input-ring) (make-ring input-ring-size))
156 (put 'input-ring 'preserved t)
157 (set (make-local-variable 'comint-last-input-match) "") 157 (set (make-local-variable 'comint-last-input-match) "")
158 (set (make-local-variable 'comint-last-similar--string) "") 158 (set (make-local-variable 'comint-last-similar--string) "")
159 (set (make-local-variable 'input-ring-index) 0) 159 (set (make-local-variable 'input-ring-index) 0)
@@ -177,7 +177,7 @@ Entry to this mode runs the hooks on comint-mode-hook."
177 (proc (get-buffer-process buffer))) 177 (proc (get-buffer-process buffer)))
178 ;; If no process, or nuked process, crank up a new one and put buffer in 178 ;; If no process, or nuked process, crank up a new one and put buffer in
179 ;; comint mode. Otherwise, leave buffer and existing process alone. 179 ;; comint mode. Otherwise, leave buffer and existing process alone.
180 (cond ((not (comint-check-proc)) 180 (cond ((not (comint-check-proc buffer))
181 (save-excursion 181 (save-excursion
182 (set-buffer buffer) 182 (set-buffer buffer)
183 (comint-mode)) ; Install local vars, mode, keymap, ... 183 (comint-mode)) ; Install local vars, mode, keymap, ...
@@ -209,7 +209,7 @@ You can use this to cheaply run a series of processes in the same buffer."
209 (insert-file-contents startfile) 209 (insert-file-contents startfile)
210 (setq startfile (buffer-substring (point) (point-max))) 210 (setq startfile (buffer-substring (point) (point-max)))
211 (delete-region (point) (point-max)) 211 (delete-region (point) (point-max))
212 (comint-send-string proc startfile))) 212 (comint-send-string proc startfile))))
213 buffer)) 213 buffer))
214 214
215;;; This auxiliary function cranks up the process for comint-exec in 215;;; This auxiliary function cranks up the process for comint-exec in