From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#61667: 29.0.60; Failure to redisplay Date: Tue, 18 Apr 2023 02:07:07 +0300 Message-ID: <173d7dfc-6454-4e81-6f62-bef69a829f18@yandex.ru> References: <04d7cb31-684c-07c0-ee7b-503514fc1a85@yandex.ru> <87zg8xyt0m.fsf@yahoo.com> <25c817d9-f969-8c24-6ed4-9b35fd6f27ad@yandex.ru> <87sfeozn8f.fsf@yahoo.com> <87o7pczlsq.fsf@yahoo.com> <43d50d6a-1eb0-cd42-0479-3f9d4d74904a@yandex.ru> <87ilfkyorf.fsf@yahoo.com> <8f4df0d7-eb1a-379a-db03-314f2c93743b@yandex.ru> <87a60vztad.fsf@yahoo.com> <14405ac4f8f101c35628@heytings.org> <60c92936-2a75-a254-145a-6a0a1656a645@yandex.ru> <8eda4f1e-233e-4963-1b1d-75945eca01d4@yandex.ru> <874jr2y7qk.fsf@yahoo.com> <66e8b8a4-fa14-800e-659c-d8db1134d71a@yandex.ru> <83r0skbc20.fsf@gnu.org> <23d8f88d-c694-faa0-93f6-1a282443b27d@yandex.ru> <83cz44asoz.fsf@gnu.org> <7d0c9615-a5ae-651d-dab5-ba767454b7bf@yandex.ru> <83354zbxmq.fsf@gnu.org> <73ca92d3-bdd8-4d78-a4b1-ac7263db79c8@app.fastmail.com> <83y1mracgg.fsf@gnu.org> <8dc8e984-d450-cd43-5b64-4be552e88192@yandex.ru> <83jzyb9r3l.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="5681"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.10.0 Cc: Po Lu , 61667@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Apr 18 01:08:20 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1poXxM-0001Fc-2f for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 18 Apr 2023 01:08:20 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1poXx7-0003Lz-75; Mon, 17 Apr 2023 19:08:05 -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 1poXx5-0003Le-MX for bug-gnu-emacs@gnu.org; Mon, 17 Apr 2023 19:08:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1poXx4-0004kQ-EU for bug-gnu-emacs@gnu.org; Mon, 17 Apr 2023 19:08:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1poXx3-0002kA-Sk for bug-gnu-emacs@gnu.org; Mon, 17 Apr 2023 19:08:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 17 Apr 2023 23:08:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61667 X-GNU-PR-Package: emacs Original-Received: via spool by 61667-submit@debbugs.gnu.org id=B61667.168177283910493 (code B ref 61667); Mon, 17 Apr 2023 23:08:01 +0000 Original-Received: (at 61667) by debbugs.gnu.org; 17 Apr 2023 23:07:19 +0000 Original-Received: from localhost ([127.0.0.1]:57160 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1poXwM-0002jA-Gm for submit@debbugs.gnu.org; Mon, 17 Apr 2023 19:07:18 -0400 Original-Received: from forward501a.mail.yandex.net ([178.154.239.81]:52624) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1poXwJ-0002iz-IN for 61667@debbugs.gnu.org; Mon, 17 Apr 2023 19:07:17 -0400 Original-Received: from mail-nwsmtp-smtp-production-main-18.vla.yp-c.yandex.net (mail-nwsmtp-smtp-production-main-18.vla.yp-c.yandex.net [IPv6:2a02:6b8:c1f:5f1d:0:640:49bf:0]) by forward501a.mail.yandex.net (Yandex) with ESMTP id C7E2A5EA2E; Tue, 18 Apr 2023 02:07:12 +0300 (MSK) Original-Received: by mail-nwsmtp-smtp-production-main-18.vla.yp-c.yandex.net (smtp/Yandex) with ESMTPSA id A7lacO4DdW20-vZEmuYos; Tue, 18 Apr 2023 02:07:12 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1681772832; bh=0PIJmGsh9/Xj4n5pXX/NwAdcjkxZ11EH773vYgBJHxE=; h=In-Reply-To:From:Subject:Message-ID:Cc:References:Date:To; b=K2eXN7VoTKviGfj/pyUlMDDbpSk+/xKWnT2r56eOn0eQyMNkS9M+viajapc457rPG 5JY5AzMAQKm2rHh8pCG2ygeomVsbfl6osUTlhtkpzVG8JaBeUQOKaaqIMOo/4qYj6W zHp35/PFIjP++56fYz2ydLhJCxNse9Onctl+FLiA= Authentication-Results: mail-nwsmtp-smtp-production-main-18.vla.yp-c.yandex.net; dkim=pass header.i=@yandex.ru Original-Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailauth.nyi.internal (Postfix) with ESMTP id 3469527C0054; Mon, 17 Apr 2023 19:07:10 -0400 (EDT) Original-Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Mon, 17 Apr 2023 19:07:10 -0400 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvdeljedgudelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepkfffgggfuffvvehfhfgjtgfgsehtjeertddtfeejnecuhfhrohhmpeffmhhi thhrhicuifhuthhovhcuoegughhuthhovheshigrnhguvgigrdhruheqnecuggftrfgrth htvghrnheptdffgeegkeelteevtdekleethfeftdduvdegkedtkedujefhfedtveeftdff udevnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomhepug hguhhtohhvodhmvghsmhhtphgruhhthhhpvghrshhonhgrlhhithihqddufeeffeelleeh hedvqddvleegjeejjeejiedqughguhhtohhvpeephigrnhguvgigrdhruhesfhgrshhtmh grihhlrdgtohhm X-ME-Proxy: Feedback-ID: ib1d9465d:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 17 Apr 2023 19:07:08 -0400 (EDT) Content-Language: en-US In-Reply-To: <83jzyb9r3l.fsf@gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list 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-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:260197 Archived-At: On 17/04/2023 05:31, Eli Zaretskii wrote: >> Date: Mon, 17 Apr 2023 01:26:28 +0300 >> Cc: 61667@debbugs.gnu.org >> From: Dmitry Gutov >> >>> Dmitry, does this happen with Emacs 28? >> >> Actually, this one might be a master-only problem. > > I wasn't aware of that; the Subject says 29. I tried on the release > branch and in the installed 29.0.90. The behavior is very similar to the one originally reported in this bug. At first the news was that the Lucid build doesn't help (on emacs-29 or master), because this scenario manifests when using it. Then I've tried a build with xdbe=off, and now I can't quite remember from which branch it was. When doing subsequent testing, I think I've seen this problem once (probably just once) on branches emacs-29 and emacs-28, but neither was repeatable, so we might chalk that up to my faulty memory/cognition. >> But it's pretty easy to repro on master. I'll try to bisect and report back. Finished now. It was a pain because the offending commit predated the two commits that fixed the build without XDBE (4dc1f2b9a01e and f1c838980601), so I had to dump them as patch files and apply when building older commits. ae4ff4f25fbf704446f8f38d8e818f223b79042b is the first bad commit commit ae4ff4f25fbf704446f8f38d8e818f223b79042b Author: Po Lu Date: Sun Feb 12 19:55:28 2023 +0800 Support input method ``text conversion'' on X Windows * configure.ac (HAVE_TEXT_CONVERSION): Define on X. * etc/NEWS: Announce new change. * src/emacs.c (main): Always call init_xterm. * src/frame.c (do_switch_frame): Use `fset_selected_window'. * src/insdel.c (struct safe_del_range_context): New structure. (safe_del_range_1, safe_del_range_2, safe_del_range): New functions. * src/lisp.h: Export new functions. * src/window.c (run_window_change_functions): Report selected window and buffer changes so that the input method can be reset. * src/xfns.c (XICCallback, Xxic_preedit_caret_callback) (Xxic_preedit_done_callback, Xxic_preedit_start_callback) (Xxic_preedit_draw_callback): Fix coding style. (Xxic_string_conversion_callback): New callback. (create_frame_xic): Register string conversion callback. (struct x_xim_text_conversion_data): New field `size'. (x_encode_xim_text_1, x_encode_xim_text): New functions. (xic_string_conversion_callback): New function. * src/xterm.c (x_reset_conversion): New function. (text_conversion_interface): New variable. (init_xterm): Initialize text conversion interface. (Together with the next one, 9510e8ad68271f58b4, which it doesn't build without). I've double checked that 9510e8ad682 exhibits the problem (with Lucid and xdbe=off), whereas ae4ff4f25fbf's parent (50140585a29) does not.