unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: HaiJun Zhang <netjune@outlook.com>
To: Emacs developers <emacs-devel@gnu.org>
Subject: Need help to debug bugs(#22989, #23412)
Date: Sun, 27 Oct 2019 03:10:56 +0000	[thread overview]
Message-ID: <PS1PR03MB36062CB6F6314C4F52081923B7670@PS1PR03MB3606.apcprd03.prod.outlook.com> (raw)
In-Reply-To: 21859cd7-8e0a-4fe4-952e-b0a94305a573@Spark

[-- Attachment #1: Type: text/plain, Size: 977 bytes --]

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 #2: Type: text/html, Size: 2537 bytes --]

       reply	other threads:[~2019-10-27  3:10 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 ` HaiJun Zhang [this message]
2019-10-27  5:23   ` Need help to debug bugs(#22989, #23412) HaiJun Zhang
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

  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=PS1PR03MB36062CB6F6314C4F52081923B7670@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 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).