From: Harry Kuiper <hkuiper@xs4all.nl>
Cc: Eli Zaretskii <eliz@is.elta.co.il>, bug-gnu-emacs@gnu.org
Subject: Re: term.el (term-emulate-terminal)
Date: 14 Apr 2002 00:31:48 +0200 [thread overview]
Message-ID: <87ofgn1b8r.fsf@mumon.localnet> (raw)
In-Reply-To: <87u1qf1czm.fsf@mumon.localnet>
Harry Kuiper <hkuiper@xs4all.nl> writes:
<snip>
> present. Shouldn't the regexp match zero or more ^Z's followed by a
> newline instead of at least one ^Z?
Wrong track didn't work. I misunderstood the meaning of ? in elisp
regexps.
However the version below (eterm.el.hk) works OK for me. The
difference is in the way the position to resume processing is
determined after the \032 escape is handled.
cd /usr/local/share/emacs/21.2/lisp/
diff -uw /usr/local/share/emacs/21.2/lisp/term.el.broken /usr/local/share/emacs/21.2/lisp/term.el.hk
--- /usr/local/share/emacs/21.2/lisp/term.el.broken Sun Feb 3 12:56:52 2002
+++ /usr/local/share/emacs/21.2/lisp/term.el.hk Sun Apr 14 00:11:47 2002
@@ -2830,11 +2830,11 @@
((eq char ?\^G)
(beep t)) ; Bell
((eq char ?\032)
- (let ((end (string-match "\r?$" str i)))
+ (let ((end (string-match "\r?\n" str i)))
(if end
(progn (funcall term-command-hook
(substring str (1+ i) end))
- (setq i (match-end 0)))
+ (setq i (1+ end)))
(setq term-terminal-parameter
(substring str i))
(setq term-terminal-state 4)
Diff finished at Sun Apr 14 00:25:46
~~~~~~~
Oops, time for bed now :-) ----^
--
Harry Kuiper hkuiper@xs4all.nl
Haarlem, The Netherlands
next prev parent reply other threads:[~2002-04-13 22:31 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-04-13 13:40 term.el (term-emulate-terminal) Harry Kuiper
2002-04-13 15:36 ` Eli Zaretskii
2002-04-13 17:25 ` Daiki Ueno
2002-04-13 18:15 ` Eli Zaretskii
2002-04-13 18:56 ` Harry Kuiper
2002-04-13 19:24 ` Daiki Ueno
2002-04-13 20:31 ` Harry Kuiper
2002-04-13 21:54 ` Harry Kuiper
2002-04-13 22:31 ` Harry Kuiper [this message]
2002-04-14 1:17 ` Daiki Ueno
2002-04-14 6:48 ` Harry Kuiper
2002-04-16 18:52 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87ofgn1b8r.fsf@mumon.localnet \
--to=hkuiper@xs4all.nl \
--cc=bug-gnu-emacs@gnu.org \
--cc=eliz@is.elta.co.il \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).