From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: tsuucat via "Bug reports for GNU Emacs, the Swiss army knife of text editors" Newsgroups: gmane.emacs.bugs Subject: bug#23412: Date: Wed, 4 Dec 2019 20:19:33 +0900 Message-ID: <441DED94-528A-477B-8B39-E41911F365F8@icloud.com> References: Reply-To: tsuucat Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Content-Type: multipart/mixed; boundary="Apple-Mail=_A039760A-5E02-4E4A-A8E2-AC6E8421C335" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="109812"; mail-complaints-to="usenet@blaine.gmane.org" To: 23412@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Dec 04 16:37:25 2019 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1icWiT-000SQM-0G for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 Dec 2019 16:37:25 +0100 Original-Received: from localhost ([::1]:40474 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1icWiR-0002cz-RM for geb-bug-gnu-emacs@m.gmane.org; Wed, 04 Dec 2019 10:37:23 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:53588) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1icWgJ-0000Yy-BN for bug-gnu-emacs@gnu.org; Wed, 04 Dec 2019 10:35:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1icWgA-0000gf-Hs for bug-gnu-emacs@gnu.org; Wed, 04 Dec 2019 10:35:05 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36526) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1icWgA-0000eP-03 for bug-gnu-emacs@gnu.org; Wed, 04 Dec 2019 10:35:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1icWg9-0004IG-Qj for bug-gnu-emacs@gnu.org; Wed, 04 Dec 2019 10:35:01 -0500 X-Loop: help-debbugs@gnu.org In-Reply-To: Resent-From: tsuucat Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 04 Dec 2019 15:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 23412 X-GNU-PR-Package: emacs Original-Received: via spool by 23412-submit@debbugs.gnu.org id=B23412.157547367816466 (code B ref 23412); Wed, 04 Dec 2019 15:35:01 +0000 Original-Received: (at 23412) by debbugs.gnu.org; 4 Dec 2019 15:34:38 +0000 Original-Received: from localhost ([127.0.0.1]:42499 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1icWfl-0004HV-Fj for submit@debbugs.gnu.org; Wed, 04 Dec 2019 10:34:37 -0500 Original-Received: from pv50p00im-ztdg10011201.me.com ([17.58.6.39]:45749) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1icSh4-0004DY-Dc for 23412@debbugs.gnu.org; Wed, 04 Dec 2019 06:19:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=icloud.com; s=1a1hai; t=1575458376; bh=D3CSCjbap6Gpmjz69kNJcZuCsg50fEWzXtDFwN5cHuM=; h=From:Content-Type:Subject:Message-Id:Date:To; b=YbxkvkgZ+UtIQyrTIvOf8RGv85JXZkdim7E1zDqOg+z4zjG2dnEOArPcmBiIZdeda m8ZmJy8n+7/UbLg1LR00Zqu/1SPjjzGUt5gr2EKOxJYJzPr0373LM529aAFSr+Lvtc U5T0E4w4TojqAJ2ZHfEaRIdQzfBZ9yeaib5g5jClukOOhpISIwkQadmFzvbSbjINNS VrBvfmdtTBT466BP8BUqXqKGEiUBloqHloAbxTBJJ9Flw0BXTdFH0RVx40cXF3Ytce Spm6c6E2KXRZ05eLXzlmQX5kijJ0IZja1IgkxrdVNiXFAeih3acjGEeC3WQR2SvyL6 UAnPjvt1CeimA== Original-Received: from [133.51.95.46] (unknown [133.51.95.46]) by pv50p00im-ztdg10011201.me.com (Postfix) with ESMTPSA id 3199E800FAB for <23412@debbugs.gnu.org>; Wed, 4 Dec 2019 11:19:36 +0000 (UTC) X-Mailer: Apple Mail (2.3445.104.11) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-12-04_03:, , signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=4 suspectscore=13 malwarescore=0 phishscore=0 bulkscore=0 spamscore=4 clxscore=1011 mlxscore=4 mlxlogscore=139 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1908290000 definitions=main-1912040090 X-Mailman-Approved-At: Wed, 04 Dec 2019 10:34:36 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 209.51.188.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:172835 Archived-At: --Apple-Mail=_A039760A-5E02-4E4A-A8E2-AC6E8421C335 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 Hello. As far as I tried, Emacs with macOS native input method still flicker. I use default Japanese input method of macOS. Flicker happens when I press RET to input selected candidates.=20 This is because insertText: in nsterm.m is called and emits a special event '(ns-unput-working-text) and then normal input events. read_char() function which processes these events always call = redisplay()=20 just after processing '(ns-unput-working-text) event. We have to prevent redisplay after '(ns-unput-working-text) event emited by insertText:. To do it, I made a patch. I don=E2=80=99t know = this is corrent way to prevent redisplaying. -- tsuucat --Apple-Mail=_A039760A-5E02-4E4A-A8E2-AC6E8421C335 Content-Disposition: attachment; filename=0001-Prevent-redisplay-between-events-from-insertText.patch Content-Type: application/octet-stream; x-unix-mode=0644; name="0001-Prevent-redisplay-between-events-from-insertText.patch" Content-Transfer-Encoding: quoted-printable =46rom=202bd7e86f7ce4991457c3a5ba524aa5d4fd4ecf95=20Mon=20Sep=2017=20= 00:00:00=202001=0AFrom:=20Masahiro=20Nakamura=20= <13937915+tsuu32@users.noreply.github.com>=0ADate:=20Wed,=204=20Dec=20= 2019=2019:07:31=20+0900=0ASubject:=20[PATCH]=20Prevent=20redisplay=20= between=20events=20from=20insertText=0A=0A---=0A=20src/keyboard.c=20|=20= 6=20++++++=0A=201=20file=20changed,=206=20insertions(+)=0A=0Adiff=20= --git=20a/src/keyboard.c=20b/src/keyboard.c=0Aindex=207d3b024..30fd526=20= 100644=0A---=20a/src/keyboard.c=0A+++=20b/src/keyboard.c=0A@@=20-2896,6=20= +2896,12=20@@=20read_char=20(int=20commandflag,=20Lisp_Object=20map,=0A=20= =09=20=20=20example=20banishing=20the=20mouse=20under=20= mouse-avoidance-mode.=20=20*/=0A=20=09timer_resume_idle=20();=0A=20=0A= +#ifdef=20HAVE_NS=0A+=20=20=20=20=20=20if=20(CONSP=20(c)=0A+=20=20=20=20=20= =20=20=20=20=20&&=20(EQ=20(XCAR=20(c),=20intern=20= ("ns-unput-working-text"))))=0A+=20=20=20=20=20=20=20=20= input_was_pending=20=3D=20input_pending;=0A+#endif=0A+=0A=20=20=20=20=20=20= =20if=20(current_buffer=20!=3D=20prev_buffer)=0A=20=09{=0A=20=09=20=20/*=20= The=20command=20may=20have=20changed=20the=20keymaps.=20=20Pretend=20= there=0A--=20=0A2.21.0=0A=0A= --Apple-Mail=_A039760A-5E02-4E4A-A8E2-AC6E8421C335--