Path: utzoo!utgpu!watmath!uunet!tut.cis.ohio-state.edu!EDDIE.MIT.EDU!think!compass!worley From: think!compass!worley@EDDIE.MIT.EDU (Dale Worley) Newsgroups: gnu.emacs Subject: bug in make-shell Message-ID: <8811231940.AA14188@galaxy.compass.com> Date: 23 Nov 88 19:40:56 GMT Sender: daemon@tut.cis.ohio-state.edu Distribution: gnu Organization: GNUs Not Usenet Lines: 37 In make-shell, shell-mode is called any time that shell is used to switch to the shell buffer. This is incorrect, since shell-mode does a bunch of initializations. It should only be called when the shell process is created. (This is based on the assumption that you use the shell command to switch-buffer-to-shell-buffer, which I do.) The result is that C-c C-y (copy-last-shell-input) forgets the last shell input when shell is executed. *** shell.el.old Sun Jul 3 10:37:12 1988 --- shell.el Wed Nov 23 14:34:50 1988 *************** *** 179,188 **** (setq startfile (buffer-substring (point) (point-max))) (delete-region (point) (point-max)) (process-send-string proc startfile))) (setq name (process-name proc))) (goto-char (point-max)) ! (set-marker (process-mark proc) (point)) ! (shell-mode)) buffer)) (defvar shell-set-directory-error-hook 'ignore --- 179,188 ---- (setq startfile (buffer-substring (point) (point-max))) (delete-region (point) (point-max)) (process-send-string proc startfile))) + (shell-mode) (setq name (process-name proc))) (goto-char (point-max)) ! (set-marker (process-mark proc) (point))) buffer)) (defvar shell-set-directory-error-hook 'ignore Dale Dale Worley, Compass, Inc. mit-eddie!think!compass!worley Seen in a net discussion: "It took work to make tofu politically correct."