From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#68452: w32-use-native-image-API makes weird behavior Date: Mon, 15 Jan 2024 16:53:21 +0200 Message-ID: <831qaiejha.fsf@gnu.org> 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> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20853"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 68452@debbugs.gnu.org To: Jinsong Zhao Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 15 15:54:33 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 1rPOMD-0005B7-Hr for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 15 Jan 2024 15:54:33 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1rPOLn-000331-NE; Mon, 15 Jan 2024 09:54:07 -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 1rPOLi-00032k-LN for bug-gnu-emacs@gnu.org; Mon, 15 Jan 2024 09:54:02 -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 1rPOLi-0006oV-DI for bug-gnu-emacs@gnu.org; Mon, 15 Jan 2024 09:54:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1rPOLi-0001Yj-6O for bug-gnu-emacs@gnu.org; Mon, 15 Jan 2024 09:54:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Jan 2024 14:54:02 +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.17053304245968 (code B ref 68452); Mon, 15 Jan 2024 14:54:02 +0000 Original-Received: (at 68452) by debbugs.gnu.org; 15 Jan 2024 14:53:44 +0000 Original-Received: from localhost ([127.0.0.1]:45049 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rPOLP-0001YC-Nj for submit@debbugs.gnu.org; Mon, 15 Jan 2024 09:53:44 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:56076) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1rPOLN-0001Xy-5a for 68452@debbugs.gnu.org; Mon, 15 Jan 2024 09:53:42 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1rPOLH-0006mj-ST; Mon, 15 Jan 2024 09:53:35 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=7gWzbktiZeLF+pNc4tmSy4MSRI2N3yMyDc3poDQT2kY=; b=b3EiVBRXna85 apO104ijPiLFtKTJpxGUtjki+6cxoBx4GzfjXIfHSi53r/SOu58xXYs5InXfEU5htQnu1TEddk5z2 99ZLlfWm5pvFuQZeRcqiQ9hen4rdjDuhshpUkyv25N1UnqzokPmuLPJqSOLdTnew8BD9Q84leY0gz C569Jj7PnjpH4Vlt4jYRlc+Jb8GNWx3vwjYdJrRFrBZkOetFdDGmQbVYXwFA2Ff/bNLDwBMTibfA3 nbFr/UUXaEyWqz++CKnvm8RGeKNRYnyImBPJMke31aO7yWL0bEHsO9zhDYygkRh8rAeyxKpr5mEHW Ft5y1PO0mYhR95ZZo2MOZA==; In-Reply-To: (message from Jinsong Zhao on Mon, 15 Jan 2024 22:17:37 +0800) 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:278285 Archived-At: > Date: Mon, 15 Jan 2024 22:17:37 +0800 > Cc: 68452@debbugs.gnu.org > From: Jinsong Zhao > > > 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. I see. But in that case, this is something that involves imaxima and what it does, and I'm not familiar with that. The empty box means Emacs cannot display the image for whatever reason -- it could be that the image is invalid, or there's not enough memory, or something else. Since when you press enter twice, you see the first image instead of the second, this is something related with how imaxima outputs the image and passes it to Emacs. Sorry, I cannot help you more than that since I don't know enough about imaxima and its interfaces. So I suggest that you set w32-use-native-image-API to nil, and use imaxima that way.