From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Jinsong Zhao Newsgroups: gmane.emacs.bugs Subject: bug#68452: w32-use-native-image-API makes weird behavior Date: Mon, 15 Jan 2024 22:17:37 +0800 Message-ID: References: <94d6c33b-c135-4b61-aec3-ea45c66e3642@yeah.net> <83v87veuwz.fsf@gnu.org> <83le8re0c9.fsf@gnu.org> <8f411e6b-519e-4e9f-876b-ec191c7b3e38@yeah.net> <837ckaeoc0.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="30523"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mozilla Thunderbird Cc: 68452@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 15 15:18:32 2024 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 1rPNnL-0007j2-MC for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 15 Jan 2024 15:18:31 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rPNn4-0005EG-1X; Mon, 15 Jan 2024 09:18:14 -0500 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 1rPNmx-0005Dl-7P for bug-gnu-emacs@gnu.org; Mon, 15 Jan 2024 09:18:10 -0500 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1rPNms-0000M3-D0 for bug-gnu-emacs@gnu.org; Mon, 15 Jan 2024 09:18:04 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rPNmr-0003hG-VL for bug-gnu-emacs@gnu.org; Mon, 15 Jan 2024 09:18:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jinsong Zhao Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Jan 2024 14:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 68452 X-GNU-PR-Package: emacs Original-Received: via spool by 68452-submit@debbugs.gnu.org id=B68452.170532827514196 (code B ref 68452); Mon, 15 Jan 2024 14:18:01 +0000 Original-Received: (at 68452) by debbugs.gnu.org; 15 Jan 2024 14:17:55 +0000 Original-Received: from localhost ([127.0.0.1]:45013 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rPNml-0003gu-CU for submit@debbugs.gnu.org; Mon, 15 Jan 2024 09:17:55 -0500 Original-Received: from mail-177131.yeah.net ([123.58.177.131]:63544) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rPNme-0003gW-JX for 68452@debbugs.gnu.org; Mon, 15 Jan 2024 09:17:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yeah.net; s=s110527; h=Message-ID:Date:MIME-Version:Subject:From: Content-Type; bh=NF6T2WIeaTP+crNtWWGlqRn+IpSnhNzNUryJHBloQ2Q=; b=oCaZRuMNBo9juZvU5fs9nGJAUmYyRaGOROyXKlnqWt/Yp/V8N8VyNd7Idad/3d 0EAF4+6IEwF295tS2beW7N6wWLOZ47+XmezpU5sTBaW0EO1nTr/0qbqPSY8vMC+m jxbOIKMtZtAoGur7mGHXTDtpyp6VYL89LsMcNRiGyQxB8= Original-Received: from [192.168.3.8] (unknown [117.154.59.208]) by smtp1 (Coremail) with SMTP id ClUQrADXP8KBPqVlY4JnAQ--.46833S2; Mon, 15 Jan 2024 22:17:38 +0800 (CST) Content-Language: en-US In-Reply-To: <837ckaeoc0.fsf@gnu.org> X-CM-TRANSID: ClUQrADXP8KBPqVlY4JnAQ--.46833S2 X-Coremail-Antispam: 1Uf129KBjvJXoW7KF1xCr1rXr15ur4rKr1kuFg_yoW8ZFWUpa 95WF1jkaykJr1vyFy0yw12qr12kF93Ary5Gr9xKrWkJa15Krn7Ary3Kr98Wan0yF1ftw4q qFWDuFZFy34vgaDanT9S1TB71UUUUU7qnTZGkaVYY2UrUUUUjbIjqfuFe4nvWSU5nxnvy2 9KBjDUYxBIdaVFxhVjvjDU0xZFpf9x07UPl19UUUUU= X-Originating-IP: [117.154.59.208] X-CM-SenderInfo: xmv2xt3r61vtnkoqv3/1tbiBQJmz1sVCMqaqgAAsS 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:278282 Archived-At: On 2024/1/15 21:08, Eli Zaretskii wrote: >> Date: Mon, 15 Jan 2024 15:48:55 +0800 >> Cc: 68452@debbugs.gnu.org >> From: Jinsong Zhao >> >>>> The PNG image is created on the fly by imaxima, a front end for Maxima. >>>> I think it's a normal PNG image file, actually converted from a ps file >>>> by ghostscript. I also tried to use JPEG, it's the same. >>> Well, we cannot do anything with this bug report unless we have an >>> example of an image to work with. So please find a way to ask imaxima >>> to save the image on a file, and then send it. >> I could provide the PNG files, please see the attachments. >> >> File "1" and "2" are PNG files that were displayed in Emacs. >> >> File "11.png" and "33.png" are the screenshots with >> w32-use-native-image-API set to nil after the first and second input. >> >> File "22.png" and "44.png" are the screenshots with >> w32-use-native-image-API set to non-nil after the first and second input. >> >> I don't know if I am clear. > Thanks. I have no problems displaying the 2 PNG files with > w32-use-native-image-API set to a non-nil value. So I don't know why > this doesn't work for you. Are you able to display the files you sent > in your Emacs with w32-use-native-image-API set to its default non-nil > value? My problem is not that I can't display images, but that the same action doesn't work the same way with either setting. When w32-use-native-image-API is nil, image "1" can be displayed as soon as the Enter key is pressed (before "(%2)" appears, see 11.png). However, if w32-use-native-image-API is t, image 1 will not be displayed, just an empty box (see 22.png). Now we enter another expression. If w32-use-native-image-API is nil, image "2" can be displayed immediately after pressing enter, and it will not affect the display of the previous image "1", see 33.png. If w32-use-native-image-API is t, instead of displaying an empty box, image "2" is not displayed, but the first empty box is replaced by image "1", see 44.png. Best wishes, Jinsong