GNU bug report logs - #70455
[PATCH] Add new user option `preview-leave-open-previews-visible'

Previous Next

Package: auctex;

Reported by: Paul Nelson <ultrono <at> gmail.com>

Date: Thu, 18 Apr 2024 14:52:03 UTC

Severity: normal

Tags: patch

Done: Arash Esbati <arash <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Paul Nelson <ultrono <at> gmail.com>
Subject: bug#70455: closed (Re: bug#70455: [PATCH] Add new user option
 `preview-leave-open-previews-visible')
Date: Mon, 22 Apr 2024 11:54:02 +0000
[Message part 1 (text/plain, inline)]
Your bug report

#70455: [PATCH] Add new user option `preview-leave-open-previews-visible'

which was filed against the auctex package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to 70455 <at> debbugs.gnu.org.

-- 
70455: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=70455
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Arash Esbati <arash <at> gnu.org>
To: Paul Nelson <ultrono <at> gmail.com>
Cc: Ikumi Keita <ikumi <at> ikumi.que.jp>, 70455-done <at> debbugs.gnu.org,
 Tassilo Horn <tsdh <at> gnu.org>
Subject: Re: bug#70455: [PATCH] Add new user option
 `preview-leave-open-previews-visible'
Date: Mon, 22 Apr 2024 13:52:38 +0200
Paul Nelson <ultrono <at> gmail.com> writes:

> Hi Arash, many thanks for taking a look.  Regarding cl-find-if, I have
> no strong feelings, but have attached the modified patch without it in
> case that simplifies matters.

Thanks Paul for your swift response.  I installed that change, along
with a NEWS entry.  Therefore I'm closing this report.

Best, Arash

[Message part 3 (message/rfc822, inline)]
From: Paul Nelson <ultrono <at> gmail.com>
To: bug-auctex <at> gnu.org
Subject: [PATCH] Add new user option `preview-leave-open-previews-visible'
Date: Thu, 18 Apr 2024 16:50:24 +0200
[Message part 4 (text/plain, inline)]
With the new user option disabled (default), behavior is exactly as before:

- When you enter a preview, it is temporarily replaced by a
placeholder icon together with the tex code.
- If you exit the preview without editing, the preview reappears and
the tex code disappears.
- When you edit the tex code, the preview is gone forever.
- When you regenerate a preview, a construction sign briefly appears.

With the new user option disabled, behavior is instead:

- When you enter a preview, it remains visible.  The tex code appears
below the preview.
- When you edit the tex code, the preview does not disappear.  The tex
code persists if you then exit.
- When you regenerate a preview, there is no construction sign, but
instead a direct transition from the old image to the new one.

The advantage is that while editing a formula, you (and anyone else
watching your screen) can continue to look at its rendered form.  If
the user option "preview-protect-point" is active, then a quick "C-c
C-p C-p" or "C-c C-p C-e" will update the rendered form, without
flickering.

I would welcome suggestions for better names than
`preview-leave-open-previews-visible'.

Thanks, best,

Paul
[0001-Allow-opened-previews-to-remain-visible.patch (application/x-patch, attachment)]

This bug report was last modified 1 year and 87 days ago.

Previous Next


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