[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [AUCTeX-devel] delete (or comment out) all environments in a buffer,
From: |
Marcin Borkowski |
Subject: |
Re: [AUCTeX-devel] delete (or comment out) all environments in a buffer, say equation |
Date: |
Mon, 20 Mar 2017 05:58:05 +0100 |
User-agent: |
mu4e 0.9.19; emacs 26.0.50 |
On 2017-03-19, at 10:50, Uwe Brauer <address@hidden> wrote:
> > On 2017-03-18, at 14:08, Uwe Brauer <address@hidden> wrote:
>
>
> > How about this?
>
> > http://mbork.pl/2017-03-18_Deleting_all_instances_of_a_LaTeX_environment
>
> I played around with your function, replacing deleting with
> comment-region but then I became ambitious and wanted the
> LaTeX-comment-environment function also to uncomment the environments
> using
> (LaTeX-comment-environment-new (quote (4)))
> but I failed because of the (for me) sophisticated interactive call, so
> I simple don't know who to add the "P" in that list (just in case you
> look for a «new» blog entry ...:-D
Thanks again;-).
I'm not sure I understood you, however. What exactly do you want to
achieve? Do you want to have two arguments - the env name and the
prefix argument? If yes, I think the variable `current-prefix-arg' is
what you are looking for.
Best,
--
Marcin Borkowski