unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: HaiJun Zhang <netjune@outlook.com>
Cc: emacs-devel@gnu.org
Subject: Re: Need help to debug bugs(#22989, #23412)
Date: Sun, 27 Oct 2019 07:43:04 +0200	[thread overview]
Message-ID: <8336feu4k7.fsf@gnu.org> (raw)
In-Reply-To: <PS1PR03MB36062CB6F6314C4F52081923B7670@PS1PR03MB3606.apcprd03.prod.outlook.com> (message from HaiJun Zhang on Sun, 27 Oct 2019 03:10:56 +0000)

> From: HaiJun Zhang <netjune@outlook.com>
> Date: Sun, 27 Oct 2019 03:10:56 +0000
> 
> They are related with the Chinese or Japanese input method on macOS. The bug appeared after this
> commit:
> http://git.savannah.gnu.org/cgit/emacs.git/commit/?h=emacs-25.1&id=9e77c1b7bcfd0807be7fe67daf73c2320e864309.
> 
> 
> The workaround is setting `redisplay-dont-pause’ to nil. But this variable is obsolete since 24.5.

If your analysis is correct, then maybe input methods (or their users,
if you mean a non-Emacs input method) should set redisplay-dont-pause
nil, and we should un-obsolete that variable.

But the question is: do both events you mention arrive with any time
interval between them, or do they arrive together?  IOW, the issue is
about timing, not about the number of events.

> I think the cause may be like this:
> On every char inputting, the input method triggers two events to emacs. The first event causes emacs to
> redisplay the window with cursor at the original position. The second event causes emacs to redisplay the
> window with cursor at the new position. The two redisplay make the cursor flicker. The problem is the first
> redisplay which is not wanted.
> 
> If `redisplay-dont-pause’ is t, the first redisplay may be cancelled or merged with the second one?
> 
> How to debug this problem? I want to first print the value of the variable `c’ in read_char() in keybord.c. Its type
> is Lisp_Object. How to print its value?

You mean, print in C?  You can use the safe_debug_print function.



  parent reply	other threads:[~2019-10-27  5:43 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <21859cd7-8e0a-4fe4-952e-b0a94305a573@Spark>
2019-10-27  3:10 ` Need help to debug bugs(#22989, #23412) HaiJun Zhang
2019-10-27  5:23   ` HaiJun Zhang
2019-10-27  5:43   ` Eli Zaretskii [this message]
2019-10-27  7:00     ` HaiJun Zhang
2019-10-27  7:12       ` Eli Zaretskii
2019-10-27  8:39         ` HaiJun Zhang
2019-10-27 11:43         ` HaiJun Zhang
2019-10-27  7:12     ` HaiJun Zhang

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=8336feu4k7.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=netjune@outlook.com \
    /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).