unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Jinsong Zhao <jszhao@yeah.net>
To: Eli Zaretskii <eliz@gnu.org>
Cc: 68452@debbugs.gnu.org
Subject: bug#68452: w32-use-native-image-API makes weird behavior
Date: Mon, 15 Jan 2024 23:06:10 +0800	[thread overview]
Message-ID: <197a912e-b12f-4db3-86d4-3ec93f986858@yeah.net> (raw)
In-Reply-To: <831qaiejha.fsf@gnu.org>


On 2024/1/15 22:53, Eli Zaretskii wrote:
>> Date: Mon, 15 Jan 2024 22:17:37 +0800
>> Cc: 68452@debbugs.gnu.org
>> From: Jinsong Zhao <jszhao@yeah.net>
>>
>>> 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.

Thanks a lot. I will try to dig into imaxima.







  reply	other threads:[~2024-01-15 15:06 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-01-14 13:52 bug#68452: w32-use-native-image-API makes weird behavior Jinsong Zhao
2024-01-14 16:34 ` Eli Zaretskii
2024-01-15  2:30   ` Jinsong Zhao
2024-01-15  3:34     ` Eli Zaretskii
2024-01-15  7:48       ` Jinsong Zhao
2024-01-15 13:08         ` Eli Zaretskii
2024-01-15 14:17           ` Jinsong Zhao
2024-01-15 14:53             ` Eli Zaretskii
2024-01-15 15:06               ` Jinsong Zhao [this message]
2024-01-16  5:09               ` Jinsong Zhao
2024-01-16 12:46                 ` Eli Zaretskii

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=197a912e-b12f-4db3-86d4-3ec93f986858@yeah.net \
    --to=jszhao@yeah.net \
    --cc=68452@debbugs.gnu.org \
    --cc=eliz@gnu.org \
    /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).