unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Stefan Monnier <monnier@iro.umontreal.ca>
To: Eli Zaretskii <eliz@gnu.org>
Cc: markkarpov@openmailbox.org, 21329@debbugs.gnu.org
Subject: bug#21329: 25.0.50; Flyspell minor mode produces weird effects on keyboard macros
Date: Thu, 27 Aug 2015 21:33:16 -0400	[thread overview]
Message-ID: <jwv8u8ww6g7.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <83d1yag44r.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 26 Aug 2015 05:44:36 +0300")

>> > Would it work to loop until input-pending-p returns non-nil?
>> Maybe that can be made to work, but it's likely to introduce
>> other problems.
> Which ones, for example?

Not sure.  I just know that we've already tried various different
alternatives for this code.  All the problems have been "corner cases",
IIRC, and many of them were nasty enough to make us rewrite the
function completely.

One possible problem is that input-pending-p might return t in cases where
the pending input is "not significant", in the sense that read-event
won't return it (maybe because it will consume it internally as in the
case of event bounds to special-event-map, IIRC).

>> I was thinking more about refactoring read-event so as to provide a new
>> `wait-for-event` which stops just before we actually consume the event.
> How will it be different from what input-pending-p already does?

It will be different in that it will wait until an event arrives.
But yes, maybe the implementation of the two can be shared.


        Stefan


PS: I suggest you try and install your suggested patch, in the
mean time.  I don't understand enough of its impact to judge its
quality, but it's worth a try.  Just make sure you add a good comment in
the code explaining the problem this is trying to fix.





  reply	other threads:[~2015-08-28  1:33 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-23 11:57 bug#21329: 25.0.50; Flyspell minor mode produces weird effects on keyboard macros Mark Karpov
2015-08-24 14:39 ` Eli Zaretskii
2015-08-25 13:15   ` Stefan Monnier
2015-08-25 15:26     ` Eli Zaretskii
2015-08-25 16:31       ` Eli Zaretskii
2015-08-25 22:23         ` Stefan Monnier
2015-08-26  2:44           ` Eli Zaretskii
2015-08-28  1:33             ` Stefan Monnier [this message]
2015-08-28 13:28               ` Eli Zaretskii
2015-08-29 15:31                 ` Stefan Monnier
2015-08-29 16:22                   ` Eli Zaretskii
2015-08-30  2:06                     ` Stefan Monnier
2015-08-30  2:08                     ` Stefan Monnier

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=jwv8u8ww6g7.fsf-monnier+emacsbugs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=21329@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=markkarpov@openmailbox.org \
    /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).