From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Kai Ma Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] On the nasty "ghost key" problem on NS Date: Fri, 4 Nov 2022 14:28:50 +0800 Message-ID: References: <87leord0ei.fsf@yahoo.com> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.200.110.1.12\)) Content-Type: multipart/alternative; boundary="Apple-Mail=_64316551-395E-486F-9A2C-C9CC7F38C181" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="40537"; mail-complaints-to="usenet@ciao.gmane.io" Cc: emacs-devel@gnu.org To: Po Lu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Nov 04 07:30:14 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oqqDW-000ANv-Jn for ged-emacs-devel@m.gmane-mx.org; Fri, 04 Nov 2022 07:30:14 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oqqCZ-0004qN-M0; Fri, 04 Nov 2022 02:29:15 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oqqCW-0004nY-7w for emacs-devel@gnu.org; Fri, 04 Nov 2022 02:29:12 -0400 Original-Received: from mail-pl1-x644.google.com ([2607:f8b0:4864:20::644]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oqqCU-0003pg-3P for emacs-devel@gnu.org; Fri, 04 Nov 2022 02:29:12 -0400 Original-Received: by mail-pl1-x644.google.com with SMTP id p21so4027009plr.7 for ; Thu, 03 Nov 2022 23:29:05 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:from:to:cc:subject:date:message-id:reply-to; bh=TS4BUOPc983AizUhyYdwkyQR0d8shJNLPtdIQzAzqLs=; b=BK2DZphxdYo4q8xGBHVXdid4fGUgorf1cj+tG6nqQjFxI5vl+2doKVTzSjnXxU+TmG VgqLcQaE3W83Yi8s6x3JkWCp8pYvKPo/6a2jmUAhUCKKb4RW1k5rgz+U+hhc27G4n8r8 3HYlYRDvgo+em/J3oS5GDZrH+6Ufl5jRbPG3+QUYlfzeVMGnmQMY7hDy6/ucw20+u7IJ WkbXtH2lRWgXv6vhGCFonsgrfg97mULv3O/2Ypv8YoonisphdwnbnWRKCOmAx92o1/1L h566kDuJukI6AQ5vUhb/yxmiqGc6fY2x/YRaJ6cqhJuNtWvqLCulvugIyOxgViT3eNwN uaCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=references:to:cc:in-reply-to:date:subject:mime-version:message-id :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=TS4BUOPc983AizUhyYdwkyQR0d8shJNLPtdIQzAzqLs=; b=RWIeC/mpzGihhvmLzRZ1RwuRl/VS59P1lE7mJMvKp3VIpfNoHIv4TCnMoMCHL5lK3M +mu4dIcEQV9J01M6DkxBjtE4rjPzzHBYhf05mnnHE2eOPlxW+L73uyWL3liETaetivpm 7IK1F7BMa+iweeHdBYnzvbXSehgLUNpY8vtmIqp46umG8RDYY1lVYnYTkMBEYkEn8LpN AJWtUPCBkrCFX3lYPAmsKKKVs3f5tsJ5rSmsVvrYlR3Aa9AG/q5geWGY7/ooDzzxKIxk 7zAxCzEnVRBBaNmfGpwAV38J88r+Bk9N0PrYnR2MXUEvdl6rZ45Nof8mfSkBQNgxNA3q mAgg== X-Gm-Message-State: ACrzQf1tjkWH3Z6WJ1De6ebC2LluZRFklAClmhyWH/NjNIfR/zVdivhx N+LDOA+373S6+NweREYw4rs= X-Google-Smtp-Source: AMsMyM6VVRTwl1zdSx6AMqO+ScgQ9TjqbMH56Y6Cd1ISnVu4eBSa2ZrRJs0D8ubrhByBUWm810tDIQ== X-Received: by 2002:a17:90b:3b43:b0:213:fa1a:5326 with SMTP id ot3-20020a17090b3b4300b00213fa1a5326mr21461592pjb.20.1667543344575; Thu, 03 Nov 2022 23:29:04 -0700 (PDT) Original-Received: from smtpclient.apple (n058153105218.netvigator.com. [58.153.105.218]) by smtp.gmail.com with ESMTPSA id h10-20020a170902f54a00b00186f81a074fsm1696202plf.290.2022.11.03.23.29.03 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 Nov 2022 23:29:04 -0700 (PDT) In-Reply-To: <87leord0ei.fsf@yahoo.com> X-Mailer: Apple Mail (2.3731.200.110.1.12) Received-SPF: pass client-ip=2607:f8b0:4864:20::644; envelope-from=justksqsf@gmail.com; helo=mail-pl1-x644.google.com X-Spam_score_int: -15 X-Spam_score: -1.6 X-Spam_bar: - X-Spam_report: (-1.6 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, FROM_LOCAL_NOVOWEL=0.5, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: "Emacs-devel" Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:299108 Archived-At: --Apple-Mail=_64316551-395E-486F-9A2C-C9CC7F38C181 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 > On Nov 4, 2022, at 08:32, Po Lu wrote: >=20 > Kai Ma > writes: >=20 > I am sorry, but this patch breaks compose processing. So we're > certainly not installing anything like this in Emacs 29. >=20 > I will try to figure out a way to reproduce the bug and why it = actually > happens. Thanks! I=E2=80=99ve narrowed the problem further to [firstRectForCharRange]. = Some calls never return. Activating an input method makes Emacs issue = excessive calls to this method. Specifically, the following code gets = stuck somewhere. if (WINDOWP (echo_area_window) && ! NILP (call0 (intern = ("ns-in-echo-area")))) win =3D XWINDOW (echo_area_window); else win =3D XWINDOW (FRAME_SELECTED_WINDOW (emacsframe)); --Apple-Mail=_64316551-395E-486F-9A2C-C9CC7F38C181 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8
On Nov 4, = 2022, at 08:32, Po Lu <luangruo@yahoo.com> wrote:

Kai Ma <justksqsf@gmail.com> writes:

I am = sorry, but this patch breaks compose processing.  So = we're
certainly not installing = anything like this in Emacs 29.

I will = try to figure out a way to reproduce the bug and why it = actually
happens.

Thanks!

I=E2=80=99ve narrowed the problem further to = [firstRectForCharRange]. Some calls never return. Activating an input = method makes Emacs issue excessive calls to this method. Specifically, = the following code gets stuck = somewhere.

  if (WINDOWP = (echo_area_window) && ! NILP (call0 (intern = ("ns-in-echo-area"))))
    win =3D XWINDOW = (echo_area_window);
  else
    win =3D = XWINDOW (FRAME_SELECTED_WINDOW = (emacsframe));

= --Apple-Mail=_64316551-395E-486F-9A2C-C9CC7F38C181--