diff options
| author | Eli Zaretskii | 2002-02-03 11:25:50 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2002-02-03 11:25:50 +0000 |
| commit | 46ea0665a7fc51d5e1c59f74dd0be0fd857e0f76 (patch) | |
| tree | a07d238fe6eb6b6dd0dc422f719555c3659406ce | |
| parent | 47edc1f71812081d29b099a966c60293e8aa2c55 (diff) | |
| download | emacs-46ea0665a7fc51d5e1c59f74dd0be0fd857e0f76.tar.gz emacs-46ea0665a7fc51d5e1c59f74dd0be0fd857e0f76.zip | |
(term-emulate-terminal): Extract proper command string
which is supplied to term-command-hook.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/term.el | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 02b6dcddcb1..d7bdfbf26aa 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2002-02-02 Eli Zaretskii <eliz@is.elta.co.il> | ||
| 2 | |||
| 3 | * term.el (term-emulate-terminal): Extract proper command string | ||
| 4 | which is supplied to term-command-hook. | ||
| 5 | |||
| 1 | 2002-02-03 Richard M. Stallman <rms@gnu.org> | 6 | 2002-02-03 Richard M. Stallman <rms@gnu.org> |
| 2 | 7 | ||
| 3 | * international/quail.el (quail-help): Don't call help-setup-xref. | 8 | * international/quail.el (quail-help): Don't call help-setup-xref. |
diff --git a/lisp/term.el b/lisp/term.el index 43350c4dd91..fb253932704 100644 --- a/lisp/term.el +++ b/lisp/term.el | |||
| @@ -2827,11 +2827,11 @@ See `term-prompt-regexp'." | |||
| 2827 | ((eq char ?\^G) | 2827 | ((eq char ?\^G) |
| 2828 | (beep t)) ; Bell | 2828 | (beep t)) ; Bell |
| 2829 | ((eq char ?\032) | 2829 | ((eq char ?\032) |
| 2830 | (let ((end (string-match "\n" str i))) | 2830 | (let ((end (string-match "\r?$" str i))) |
| 2831 | (if end | 2831 | (if end |
| 2832 | (progn (funcall term-command-hook | 2832 | (progn (funcall term-command-hook |
| 2833 | (substring str (1+ i) (1- end))) | 2833 | (substring str (1+ i) end)) |
| 2834 | (setq i end)) | 2834 | (setq i (match-end 0))) |
| 2835 | (setq term-terminal-parameter | 2835 | (setq term-terminal-parameter |
| 2836 | (substring str i)) | 2836 | (substring str i)) |
| 2837 | (setq term-terminal-state 4) | 2837 | (setq term-terminal-state 4) |