auctex-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: catchfilebetweentags the final version.


From: Uwe Brauer
Subject: Re: catchfilebetweentags the final version.
Date: Fri, 26 Aug 2022 18:08:17 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

hi


> Uwe Brauer <oub@mat.ucm.es> writes:

> I did everything in catchfilebetweentags.el and then wrote the message.
> So yes, the idea was: Please move that from the catchfilebetweentags.el
> I posted to tex-style.el 😅


> Your call I'd say.  My suggestion would be nil since I'm not sure how
> many other users use your scheme.


> I was talking about this portion:

> (defvar-local LaTeX-catchfilebetweentags-counter nil
>   "Counter for LaTeX-catchfilebetweentags numbers.")

> Initially, you had

> (defvar-local LaTeX-catchfilebetweentags-counter 0
>   "Counter for LaTeX-catchfilebetweentags numbers.")



> My idea was: If `LaTeX-catchfilebetweentags-use-numeric-label' is nil,
> the code above will always ask for a tag, without a default value since
> `LaTeX-catchfilebetweentags-counter-inc' is never run.


Ah ok now it is clear. 
> If `LaTeX-catchfilebetweentags-use-numeric-label' is t, then
> `LaTeX-catchfilebetweentags-counter-inc' checks if
> `LaTeX-catchfilebetweentags-counter' is nil and then reparses the file.
> Otherwise it just increments the counter.  By adding
> `LaTeX-catchfilebetweentags-counter' to `TeX-normal-mode-reset-list'
> users can initiate a reparse unconditionally.  Does it make sense?
I tested it, before I send a patch again:

    1. I see    (add-to-list 'TeX-normal-mode-reset-list
                'LaTeX-catchfilebetweentags-counter)
       already in catchfilebetweentags.el. Didn't you want to have that
       in latex.el?

    2. I moved the defcustom to tex-style.

    3. I will now add and test the other macros.


Thanks for your help well actually rewrite. 
Uwe 


-- 
I strongly condemn Putin's war of aggression against the Ukraine.
I support to deliver weapons to Ukraine's military. 
I support the ban of Russia from SWIFT.
I support the EU membership of the Ukraine. 

Attachment: smime.p7s
Description: S/MIME cryptographic signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]