GNU bug report logs - #70525
[PATCH] Make auto-reveal customizations easier to extend

Previous Next

Package: auctex;

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

Date: Tue, 23 Apr 2024 03:56:02 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: Arash Esbati <arash <at> gnu.org>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#70525: closed ([PATCH] Make auto-reveal customizations easier
 to extend)
Date: Wed, 01 May 2024 13:59:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Wed, 01 May 2024 15:58:21 +0200
with message-id <m2h6fhprb6.fsf <at> macmutant.fritz.box>
and subject line Re: bug#70525: [PATCH] Make auto-reveal customizations easier to extend
has caused the debbugs.gnu.org bug report #70525,
regarding [PATCH] Make auto-reveal customizations easier to extend
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
70525: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=70525
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Paul Nelson <ultrono <at> gmail.com>
To: bug-auctex <at> gnu.org
Subject: [PATCH] Make auto-reveal customizations easier to extend
Date: Tue, 23 Apr 2024 05:54:51 +0200
[Message part 3 (text/plain, inline)]
External packages (e.g., a couple that I've written) may wish to
provide navigation commands that automatically reveal previews and
folds, but auto-reveal behavior is currently controlled by defcustoms,
such as preview-auto-reveal, that are not easily extended:

(defcustom preview-auto-reveal
  '(eval (preview-arrived-via (key-binding [left]) (key-binding [right])
                              #'backward-char #'forward-char))
  "...")

I attach a patch that addresses this, without affecting default
behavior, by changing the default value of preview-auto-reveal so that
it refers to a list, (defcustom preview-auto-reveal-commands).
Similarly for TeX-fold-auto-reveal.

Thanks, best,

Paul
[0001-Make-auto-reveal-customizations-easier-to-extend.patch (application/x-patch, attachment)]
[Message part 5 (message/rfc822, inline)]
From: Arash Esbati <arash <at> gnu.org>
To: Paul Nelson <ultrono <at> gmail.com>
Cc: 70525-done <at> debbugs.gnu.org
Subject: Re: bug#70525: [PATCH] Make auto-reveal customizations easier to
 extend
Date: Wed, 01 May 2024 15:58:21 +0200
Paul Nelson <ultrono <at> gmail.com> writes:

> Do you see an advantage to modifying the behavior of the function
> rather than the default customization value?

I think it is cleaner; we have this sort of parsing also in other places
around within AUCTeX.  But since I'm currently not able to change this,
I've installed your patch.  We can revisit this later if necessary.

Again, thanks for the patch and also responding to my messages.
Closing.

Best, Arash


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

Previous Next


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