GNU bug report logs - #35696
preview-latex does not work under any Emacs themes

Previous Next

Package: auctex;

Reported by: Hua Wang <hackitforfun <at> gmail.com>

Date: Sun, 12 May 2019 10:20:01 UTC

Severity: normal

Tags: fixed

Merged with 35571, 36039

Found in version 12.1

Done: Ikumi Keita <ikumi <at> ikumi.que.jp>

Bug is archived. No further changes may be made.

Full log


Message #35 received at 35696 <at> debbugs.gnu.org (full text, mbox):

From: David Kastrup <dak <at> gnu.org>
To: Ikumi Keita <ikumi <at> ikumi.que.jp>
Cc: Hua Wang <hackitforfun <at> gmail.com>, 35571 <at> debbugs.gnu.org,
 35696 <at> debbugs.gnu.org, Arash Esbati <arash <at> gnu.org>,
 Gennady Uraltsev <gennady.uraltsev <at> gmail.com>
Subject: Re: bug#35696: preview-latex does not work under any Emacs themes and
 bug#35571: 12.1; Changing foreground breaks previews
Date: Mon, 27 May 2019 13:16:33 +0200
Ikumi Keita <ikumi <at> ikumi.que.jp> writes:

> [Adding auctex-devel <at> gnu.org in To: field may result in too many
> duplicated delivery of this message, so I refrain from doing so.]
>
> Hi David and all,
>
>>>>>> David Kastrup <dak <at> gnu.org> writes:
>
>> It never was a problem for myself since my windows are black on white.
>> This code is for people who expect preview-latex to do something more
>> useful than the default on other setups.
>
> Thanks for confirmation.  I understand your point of view.
>
> Then, I'd like to ask other developers what we should do.  Some options
> which came to my mind, in no particular order, are:
>
> (1) Make `preview-pdf-color-string' just a no-op and drop the feature
> to match the foreground color of the generated image with the default
> face of emacs.

The current code is already a sledgehammer that looks like a "not again"
approach of evading yet another changed API.  Looking at the history of
the recommended replacements, I see that the Ghostscript developers
state that some of those were removed in some Ghostscript versions but
reinstated.

So it's conceivable that reverting the last change to these code lines
is all that it would take to work with current Ghostscript (at the price
of breaking _some_ older version).

Might be worth a try.

-- 
David Kastrup




This bug report was last modified 5 years and 308 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.