all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: HaiJun Zhang <netjune@outlook.com>
To: Emacs developers <emacs-devel@gnu.org>
Subject: Re: Need help to debug bugs(#22989, #23412)
Date: Sun, 27 Oct 2019 05:23:23 +0000	[thread overview]
Message-ID: <PS1PR03MB36061A561967ACE628618B66B7670@PS1PR03MB3606.apcprd03.prod.outlook.com> (raw)
In-Reply-To: <PS1PR03MB36062CB6F6314C4F52081923B7670@PS1PR03MB3606.apcprd03.prod.outlook.com>


[-- Attachment #1.1: Type: text/plain, Size: 1471 bytes --]

Now I describe the problem with the attachment picture.


There are two red arrows in the picture. The left one is the original position. The right one is the new position. And the cursor is at the right one.

After input another char, the cursor first goes to the left arrow position, and then quickly goes to the right arrow position, which makes the flicker.
[cid:DC9C37FA7C0B4BDFAECDF6E4B950D182]
在 2019年10月27日 +0800 AM11:11,HaiJun Zhang <netjune@outlook.com>,写道:
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.

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?


[-- Attachment #1.2: Type: text/html, Size: 3449 bytes --]

[-- Attachment #2: Pasted Graphic.tiff --]
[-- Type: image/tiff, Size: 134506 bytes --]

  reply	other threads:[~2019-10-27  5:23 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 [this message]
2019-10-27  5:43   ` Eli Zaretskii
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=PS1PR03MB36061A561967ACE628618B66B7670@PS1PR03MB3606.apcprd03.prod.outlook.com \
    --to=netjune@outlook.com \
    --cc=emacs-devel@gnu.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 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.