bug#70307: [PATCH] Allow preview to work in non-file buffers

2024-04-10 Thread Arash Esbati
Paul Nelson writes: > This patch allows preview.el to work in LaTeX-mode non-file buffers > for which TeX-master has been set to the name of a valid tex file. > > This patch might appear to be adding a new feature, but if I > understand correctly, it's really fixing an ancient bug. From what I

bug#38258: 12.2.0; reftex-view-crossref on citation pre- and postnotes

2024-04-10 Thread Arash Esbati
Hi Gustavo, Gustavo Barros writes: > To be very explicit, the command in question is > `reftex-view-crossref`, and it is also called by > `reftex-view-crossref-when-idle' which is responsible for the echo > message. `reftex-view-crossref` checks if point is within a macro > with `(car

bug#38258: 12.2.0; reftex-view-crossref on citation pre- and postnotes

2024-04-10 Thread gusbrs
Hi Arash, On Wed, 10 Apr 2024 at 06:21, Arash Esbati wrote: > Thanks for the explicit pointer. I can think of something like this: > > [...] > > Do you want to give it a try and see if it works as expected? I think > you see the addition. You knew already I'd love this one. Both thumbs up!

bug#38258: 12.2.0; reftex-view-crossref on citation pre- and postnotes

2024-04-10 Thread Arash Esbati
Hi Gustavo, gusbrs writes: > I've tested it and, as far as I can tell, it works as intended: the > bogus idle echo is gone and things otherwise work as expected. Looks > good to me. Thanks for testing. I installed it on Emacs master (ca528f7c6). > I've noticed you went in a slightly

bug#38258: 12.2.0; reftex-view-crossref on citation pre- and postnotes

2024-04-10 Thread gusbrs
Hi Arash, On Wed, 10 Apr 2024 at 18:31, Arash Esbati wrote: > Well, at some point of time you have to start submitting patches if you > want to get things done your way ;-) (Just kidding, I know about your > constraints). Sigh... :-( > Thanks, the heuristic seemed good enough to me. True.

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

2024-04-10 Thread Paul Nelson
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,

bug#70331: [PATCH] Call custom folding functions with consistent point

2024-04-10 Thread Paul Nelson
Hello, As you know, one way to customize TeX-fold-mode is to supply functions to the variables TeX-fold-*-spec-list, which are then called by TeX-fold-hide-item. This patch introduces the convention that such functions are called with point positioned at the beginning of the item to be folded.