From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Need help to debug bugs(#22989, #23412) Date: Sun, 27 Oct 2019 07:43:04 +0200 Message-ID: <8336feu4k7.fsf@gnu.org> References: <21859cd7-8e0a-4fe4-952e-b0a94305a573@Spark> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="174836"; mail-complaints-to="usenet@blaine.gmane.org" Cc: emacs-devel@gnu.org To: HaiJun Zhang Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Oct 27 06:43:57 2019 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([209.51.188.17]) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1iObLI-000jK8-LE for ged-emacs-devel@m.gmane.org; Sun, 27 Oct 2019 06:43:56 +0100 Original-Received: from localhost ([::1]:44132 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iObLG-0007io-SR for ged-emacs-devel@m.gmane.org; Sun, 27 Oct 2019 01:43:54 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59737) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iObKc-0007bE-8z for emacs-devel@gnu.org; Sun, 27 Oct 2019 01:43:15 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]:51880) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iObKb-0000NL-TZ; Sun, 27 Oct 2019 01:43:13 -0400 Original-Received: from [176.228.60.248] (port=4529 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iObKb-0005Td-AK; Sun, 27 Oct 2019 01:43:13 -0400 In-reply-to: (message from HaiJun Zhang on Sun, 27 Oct 2019 03:10:56 +0000) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:241501 Archived-At: > From: HaiJun Zhang > 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.