GNU bug report logs - #70330
[PATCH] Add new custom option `TeX-fold-region-functions'

Previous Next

Package: auctex;

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

Date: Thu, 11 Apr 2024 05:47:01 UTC

Severity: normal

Tags: patch

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

To reply to this bug, email your comments to 70330 AT debbugs.gnu.org.
There is no need to reopen the bug first.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-auctex <at> gnu.org:
bug#70330; Package auctex. (Thu, 11 Apr 2024 05:47:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Paul Nelson <ultrono <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-auctex <at> gnu.org. (Thu, 11 Apr 2024 05:47:02 GMT) Full text and rfc822 format available.

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

From: Paul Nelson <ultrono <at> gmail.com>
To: bug-auctex <at> gnu.org
Subject: [PATCH] Add new custom option `TeX-fold-region-functions'
Date: Thu, 11 Apr 2024 07:45:48 +0200
[Message part 1 (text/plain, inline)]
Hello,

This patch adds a hook TeX-fold-region-functions, called at the end of
TeX-fold-region.

The motivation is that this can be used to fold miscellaneous tex
stuff.  For example, in https://github.com/ultronozm/czm-tex-fold.el,
I have used similar functionality, implemented via :after advice, to
fold quotes, dashes, and \verb|...| constructs.  The new variable
would allow me to excise the advice.

Thanks, best,

Paul
[0001-Add-new-custom-option-TeX-fold-region-functions.patch (application/octet-stream, attachment)]

Information forwarded to bug-auctex <at> gnu.org:
bug#70330; Package auctex. (Thu, 11 Apr 2024 06:32:02 GMT) Full text and rfc822 format available.

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

From: Arash Esbati <arash <at> gnu.org>
To: Paul Nelson <ultrono <at> gmail.com>
Cc: 70330 <at> debbugs.gnu.org
Subject: Re: bug#70330: [PATCH] Add new custom option
 `TeX-fold-region-functions'
Date: Thu, 11 Apr 2024 08:30:25 +0200
Hi Paul,

Paul Nelson <ultrono <at> gmail.com> writes:

> This patch adds a hook TeX-fold-region-functions, called at the end of
> TeX-fold-region.
>
> The motivation is that this can be used to fold miscellaneous tex
> stuff.  For example, in https://github.com/ultronozm/czm-tex-fold.el,
> I have used similar functionality, implemented via :after advice, to
> fold quotes, dashes, and \verb|...| constructs.  The new variable
> would allow me to excise the advice.

Thanks for the patch; I think it makes sense to offer an interface for
additional functions.  Since this is implemented as a `defcustom', can
you please also add an entry to the manual and resend the patch?  I will
then install it.

TIA.  Best, Arash




Information forwarded to bug-auctex <at> gnu.org:
bug#70330; Package auctex. (Thu, 11 Apr 2024 08:03:02 GMT) Full text and rfc822 format available.

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

From: Paul Nelson <ultrono <at> gmail.com>
To: Arash Esbati <arash <at> gnu.org>
Cc: 70330 <at> debbugs.gnu.org
Subject: Re: bug#70330: [PATCH] Add new custom option
 `TeX-fold-region-functions'
Date: Thu, 11 Apr 2024 10:01:49 +0200
[Message part 1 (text/plain, inline)]
Hi Arash, see attached, and let me know if I missed anything.  Thanks,
best, Paul
[0001-Add-new-custom-option-TeX-fold-region-functions.patch (application/octet-stream, attachment)]

Reply sent to Arash Esbati <arash <at> gnu.org>:
You have taken responsibility. (Thu, 11 Apr 2024 08:53:04 GMT) Full text and rfc822 format available.

Notification sent to Paul Nelson <ultrono <at> gmail.com>:
bug acknowledged by developer. (Thu, 11 Apr 2024 08:53:04 GMT) Full text and rfc822 format available.

Message #16 received at 70330-done <at> debbugs.gnu.org (full text, mbox):

From: Arash Esbati <arash <at> gnu.org>
To: Paul Nelson <ultrono <at> gmail.com>
Cc: 70330-done <at> debbugs.gnu.org
Subject: Re: bug#70330: [PATCH] Add new custom option
 `TeX-fold-region-functions'
Date: Thu, 11 Apr 2024 10:51:47 +0200
Paul Nelson <ultrono <at> gmail.com> writes:

> Hi Arash, see attached, and let me know if I missed anything.

Thanks for the update.  I slightly touched and installed it.  Therefore
I'm closing this report.

Best, Arash




This bug report was last modified 23 days ago.

Previous Next


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