unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Jinsong Zhao <jszhao@yeah.net>
Cc: 68452@debbugs.gnu.org
Subject: bug#68452: w32-use-native-image-API makes weird behavior
Date: Mon, 15 Jan 2024 16:53:21 +0200	[thread overview]
Message-ID: <831qaiejha.fsf@gnu.org> (raw)
In-Reply-To: <f3e91c04-348e-4160-a20d-93eb8bd17fd5@yeah.net> (message from Jinsong Zhao on Mon, 15 Jan 2024 22:17:37 +0800)

> 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.





  reply	other threads:[~2024-01-15 14:53 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 [this message]
2024-01-15 15:06               ` Jinsong Zhao
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=831qaiejha.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=68452@debbugs.gnu.org \
    --cc=jszhao@yeah.net \
    /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).