GNU bug report logs -
#27295
11.90.2; font lock for \autocites
Previous Next
Reported by: Alex Branham <alex.branham <at> gmail.com>
Date: Fri, 9 Jun 2017 09:18:01 UTC
Severity: normal
Tags: wontfix
Found in version 11.90.2
Done: Arash Esbati <arash <at> gnu.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 27295 in the body.
You can then email your comments to 27295 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-auctex <at> gnu.org
:
bug#27295
; Package
auctex
.
(Fri, 09 Jun 2017 09:18:01 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Alex Branham <alex.branham <at> gmail.com>
:
New bug report received and forwarded. Copy sent to
bug-auctex <at> gnu.org
.
(Fri, 09 Jun 2017 09:18:01 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Hello,
Auctex does not seem to properly font lock \autocites with multiple citations.
\autocites[][]{key1, key2} works fine but \autocites[][]{key1, key2}[but see][]{key3} results in neither "but see" nor "key3" getting the appropriate faces (which should be font-lock-variable-name-face and font-lock-constant-face, I believe).
Thanks!
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#27295
; Package
auctex
.
(Fri, 09 Jun 2017 20:27:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 27295 <at> debbugs.gnu.org (full text, mbox):
Alex Branham <alex.branham <at> gmail.com> writes:
> Auctex does not seem to properly font lock \autocites with multiple
> citations.
>
> \autocites[][]{key1, key2} works fine but \autocites[][]{key1,
> key2}[but see][]{key3} results in neither "but see" nor "key3" getting
> the appropriate faces (which should be font-lock-variable-name-face
> and font-lock-constant-face, I believe).
Hi Alex,
I would say this is by design: \[Aa]utocites take multiple number of
[prenote][postnote]{key} and AUCTeX cannot look ahead to detect the
number of arguments which should be fontified. Not satisfactory, but
not fixed easily, I think.
Best, Arash
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#27295
; Package
auctex
.
(Sun, 11 Jun 2017 11:40:01 GMT)
Full text and
rfc822 format available.
Message #11 received at 27295 <at> debbugs.gnu.org (full text, mbox):
Thanks for the follow up.
I was hoping that something like this could be used: https://fuco1.github.io/2017-06-01-The-absolute-awesomeness-of-anchored-font-lock-matchers.html
Setting the limit might be tricky though. I guess it could be the first close brace with a space or \ after it --- "} " or "}\", perhaps?
Alex
On Fri 09 Jun 2017 at 20:25, Arash Esbati <arash <at> gnu.org> wrote:
> Alex Branham <alex.branham <at> gmail.com> writes:
>
>> Auctex does not seem to properly font lock \autocites with multiple
>> citations.
>>
>> \autocites[][]{key1, key2} works fine but \autocites[][]{key1,
>> key2}[but see][]{key3} results in neither "but see" nor "key3" getting
>> the appropriate faces (which should be font-lock-variable-name-face
>> and font-lock-constant-face, I believe).
>
> Hi Alex,
>
> I would say this is by design: \[Aa]utocites take multiple number of
> [prenote][postnote]{key} and AUCTeX cannot look ahead to detect the
> number of arguments which should be fontified. Not satisfactory, but
> not fixed easily, I think.
>
> Best, Arash
Information forwarded
to
bug-auctex <at> gnu.org
:
bug#27295
; Package
auctex
.
(Sun, 11 Jun 2017 19:02:02 GMT)
Full text and
rfc822 format available.
Message #14 received at 27295 <at> debbugs.gnu.org (full text, mbox):
Alex Branham <alex.branham <at> gmail.com> writes:
> I was hoping that something like this could be used:
> https://fuco1.github.io/2017-06-01-The-absolute-awesomeness-of-anchored-font-lock-matchers.html
>
> Setting the limit might be tricky though. I guess it could be the
> first close brace with a space or \ after it --- "} " or "}\",
> perhaps?
AUCTeX usually fontifies a fixed number of arguments, check here for how
[Aa]utocites are coded [1]. I'm not sure if it possible to change this
behavior without bigger surgery in font-latex.el. OTOH, patches are
always welcome :-)
Best, Arash
Footnotes:
[1] http://git.savannah.gnu.org/cgit/auctex.git/tree/font-latex.el#n321
Added tag(s) wontfix.
Request was from
Arash Esbati <arash <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Sun, 03 Mar 2024 17:01:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
27295 <at> debbugs.gnu.org and Alex Branham <alex.branham <at> gmail.com>
Request was from
Arash Esbati <arash <at> gnu.org>
to
control <at> debbugs.gnu.org
.
(Sun, 03 Mar 2024 17:01:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 01 Apr 2024 11:24:10 GMT)
Full text and
rfc822 format available.
This bug report was last modified 1 year and 40 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.