From: Eli Zaretskii <eliz@gnu.org>
To: Jeff Norden <jnorden@tntech.edu>
Cc: 43499@debbugs.gnu.org
Subject: bug#43499: 27.1; It is possible for (forward-comment -1) to crash emacs
Date: Sat, 19 Sep 2020 19:56:47 +0300 [thread overview]
Message-ID: <835z893dtc.fsf@gnu.org> (raw)
In-Reply-To: <fdd02h3fbc.fsf@norden.tntech.edu> (message from Jeff Norden on Sat, 19 Sep 2020 11:24:23 -0500)
> From: Jeff Norden <jnorden@tntech.edu>
> Cc: 43499@debbugs.gnu.org
> Date: Sat, 19 Sep 2020 11:24:23 -0500
>
> > Thanks. I propose a slightly different change below. I think it's
> > somewhat better, because it does the comparison only once, and the
> > while loop can then run at full speed without testing on each
> > iteration. (It looks like a large change, but almost all of it is
> > just whitespace changes due to re-indentation of the loop.) Do you
> > agree?
>
> I think either change will work fine. It doesn't seem to me that either
> one would be faster, unless I'm missing something. My suggestion was to
> move the test from the body of the loop (where from == stop is checked
> each iteration) to the clause of the while statement (as from > stop
> instead). But, maybe a test before the loop starts makes the code more
> clear - that is entirely your call.
Thanks, I installed my changes.
> Perhaps I should have included my patch in the body of the email,
> instead of as an attachment, which might have made my suggestion more
> clear.
It was clear to me, FWIW.
next prev parent reply other threads:[~2020-09-19 16:56 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-09-19 1:25 bug#43499: 27.1; It is possible for (forward-comment -1) to crash emacs Jeff Norden
2020-09-19 9:08 ` Eli Zaretskii
2020-09-19 16:24 ` Jeff Norden
2020-09-19 16:56 ` Eli Zaretskii [this message]
2020-11-13 3:40 ` Stefan Kangas
2020-11-13 8:18 ` Eli Zaretskii
2020-09-19 9:10 ` Alan Mackenzie
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=835z893dtc.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=43499@debbugs.gnu.org \
--cc=jnorden@tntech.edu \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.