unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Alan Third <alan@idiocy.org>
To: HaiJun Zhang <netjune@outlook.com>
Cc: "23412@debbugs.gnu.org" <23412@debbugs.gnu.org>
Subject: bug#23412: 25.1.50; GUI Emacs on Mac OS X: text is keeping shaking/re-displaying when insert text with external input method
Date: Mon, 28 Oct 2019 11:26:45 +0000	[thread overview]
Message-ID: <20191028112645.GA18613@breton.holly.idiocy.org> (raw)
In-Reply-To: <PS1PR03MB3606FA717CCB0C92D5CA1521B7670@PS1PR03MB3606.apcprd03.prod.outlook.com>

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

On Sun, Oct 27, 2019 at 11:49:20AM +0000, HaiJun Zhang wrote:
> After some debugging work, I think I find the cause.
> 
> See the discussion: https://lists.gnu.org/archive/html/emacs-devel/2019-10/msg01096.html

Thanks for working this out. I suspect that we can remove a call to
delete the working text from the C code and just leave it to lisp.

Please try the attached patch.
-- 
Alan Third

[-- Attachment #2: 0001-Prevent-flicker-with-macOS-input-methods-bug-23412.patch --]
[-- Type: text/plain, Size: 812 bytes --]

From 201a496eb011ccc3a630fe9fa8d69da58a13b469 Mon Sep 17 00:00:00 2001
From: Alan Third <alan@idiocy.org>
Date: Mon, 28 Oct 2019 11:21:29 +0000
Subject: [PATCH] Prevent flicker with macOS input methods (bug#23412)

* src/nsterm.m ([EmacsView setMarkedText:selectedRange:]): Don't
delete the working text as ns-put-working-text does that anyway.
---
 src/nsterm.m | 2 --
 1 file changed, 2 deletions(-)

diff --git a/src/nsterm.m b/src/nsterm.m
index 5583c6105c..2622242071 100644
--- a/src/nsterm.m
+++ b/src/nsterm.m
@@ -6435,8 +6435,6 @@ - (void)setMarkedText: (id)aString selectedRange: (NSRange)selRange
            (unsigned long)selRange.length,
            (unsigned long)selRange.location);
 
-  if (workingText != nil)
-    [self deleteWorkingText];
   if ([str length] == 0)
     return;
 
-- 
2.21.0


  reply	other threads:[~2019-10-28 11:26 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <bebc4ca8-0a58-4ea0-8fb1-4dbb6d18e335@Spark>
2016-05-01  8:54 ` bug#23412: 25.1.50; GUI Emacs on Mac OS X: text is keeping shaking/re-displaying when insert text with external input method Chunyang Xu
2016-05-01 15:07   ` Eli Zaretskii
2016-05-01 15:35     ` Chunyang Xu
2016-05-27 19:16   ` Alan Third
2016-05-27 20:13     ` Chunyang Xu
2017-04-26 17:43   ` hylom
2017-05-01 12:26   ` bug#23412: Can this bug be fixed now? 张海君
2019-10-27 11:49   ` bug#23412: 25.1.50; GUI Emacs on Mac OS X: text is keeping shaking/re-displaying when insert text with external input method HaiJun Zhang
2019-10-28 11:26     ` Alan Third [this message]
2019-10-29 13:24       ` HaiJun Zhang
2019-10-29 19:20         ` Alan Third
2019-10-30  1:15           ` HaiJun Zhang
2019-10-31 20:53             ` Alan Third
2019-12-05 11:21               ` Stefan Kangas
2019-12-05 14:43                 ` Alan Third
2019-12-04 11:19   ` bug#23412: tsuucat via Bug reports for GNU Emacs, the Swiss army knife of text editors
2019-12-04 22:50     ` bug#23412: HaiJun Zhang
2019-12-17  9:18   ` bug#23412: 25.1.50; GUI Emacs on Mac OS X: text is keeping shaking/re-displaying when insert text with external input method tsuucat via Bug reports for GNU Emacs, the Swiss army knife of text editors
2019-12-17 20:28     ` Alan Third
2019-12-18 15:55       ` tsuucat via Bug reports for GNU Emacs, the Swiss army knife of text editors
2019-12-18 20:44         ` Alan Third
2019-12-19  0:31           ` tsuucat via Bug reports for GNU Emacs, the Swiss army knife of text editors
2019-12-19  2:05             ` HaiJun Zhang
2019-12-19  5:57               ` tsuucat via Bug reports for GNU Emacs, the Swiss army knife of text editors
2019-12-19  6:14                 ` HaiJun Zhang
2019-12-19  6:22                   ` HaiJun Zhang
2019-12-19  7:02                 ` HaiJun Zhang
2019-12-21 22:54                 ` Alan Third
2019-12-22  3:33                   ` Eli Zaretskii
2019-12-22  7:24                   ` tsuucat via Bug reports for GNU Emacs, the Swiss army knife of text editors
2019-12-22 11:51                     ` Alan Third
2019-12-22 17:14                       ` Eli Zaretskii
2019-12-22 11:32                   ` HaiJun Zhang
2019-12-22 12:02                     ` Alan Third

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=20191028112645.GA18613@breton.holly.idiocy.org \
    --to=alan@idiocy.org \
    --cc=23412@debbugs.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).