From: Eli Zaretskii Date: Tue, 16 Apr 2002 18:50:07 +0000 (+0000) Subject: (term-emulate-terminal): Fix last change. X-Git-Tag: ttn-vms-21-2-B4~15575 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=04e7ed7b6ef24c8591a674e238b828695a8baa0b;p=emacs.git (term-emulate-terminal): Fix last change. --- diff --git a/lisp/term.el b/lisp/term.el index fb253932704..eecd2abdf6e 100644 --- a/lisp/term.el +++ b/lisp/term.el @@ -2829,9 +2829,9 @@ See `term-prompt-regexp'." ((eq char ?\032) (let ((end (string-match "\r?$" str i))) (if end - (progn (funcall term-command-hook - (substring str (1+ i) end)) - (setq i (match-end 0))) + (funcall term-command-hook + (prog1 (substring str (1+ i) end) + (setq i (match-end 0)))) (setq term-terminal-parameter (substring str i)) (setq term-terminal-state 4)