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: fgunbin@fastmail.fm, 32108@debbugs.gnu.org
Subject: bug#32108: 27.0.50; Insertion of char from input method during macro invocation duplicates the char
Date: Wed, 11 Jul 2018 08:58:25 -0400	[thread overview]
Message-ID: <jwvefga7wz2.fsf-monnier+emacsbugs@gnu.org> (raw)
In-Reply-To: <83lgaif7ds.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 11 Jul 2018 12:29:03 +0300")

> AFAICS, this happens because when an input method is active, read_char
> is called recursively from quail-start-translation, and that recursive
> call records the same character for the second time.
>
> Any ideas except introduction of a new variable, inhibit-record-char,
> which quail-start-translation would bind to prevent recording of the
> same key more than once?

I haven't taken the time to look at the details of why read_char sees
the character twice, but maybe we can use the (t . EVENT) format of
events which says that EVENT shouldn't be recorded (tho I'm not sure
it's the same form of "recording" and I'm not sure either that we can
apply this trick to the right "copy" of the two).


        Stefan





  reply	other threads:[~2018-07-11 12:58 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-07-09 22:41 bug#32108: 27.0.50; Insertion of char from input method during macro invocation duplicates the char Filipp Gunbin
2018-07-10 16:18 ` Eli Zaretskii
2018-07-10 22:38   ` Filipp Gunbin
2018-07-11  0:54     ` Glenn Morris
2018-07-11  3:11       ` Eli Zaretskii
2018-07-11  9:29       ` Eli Zaretskii
2018-07-11 12:58         ` Stefan Monnier [this message]
2018-07-11 15:23           ` Eli Zaretskii
2018-07-21  9:15         ` Eli Zaretskii
2018-07-23 18:38           ` Filipp Gunbin
2018-07-23 18:58             ` Eli Zaretskii
2018-07-11  3:09     ` 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=jwvefga7wz2.fsf-monnier+emacsbugs@gnu.org \
    --to=monnier@iro.umontreal.ca \
    --cc=32108@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    --cc=fgunbin@fastmail.fm \
    /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).