GNU bug report logs -
#21259
Regex of (this)pagestyle in TeX-complete-list
Previous Next
Reported by: Arash Esbati <esbati <at> gmx.de>
Date: Fri, 14 Aug 2015 20:14:02 UTC
Severity: normal
Done: Mosè Giordano <mose <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 21259 in the body.
You can then email your comments to 21259 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#21259
; Package
auctex
.
(Fri, 14 Aug 2015 20:14:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Arash Esbati <esbati <at> gmx.de>
:
New bug report received and forwarded. Copy sent to
bug-auctex <at> gnu.org
.
(Fri, 14 Aug 2015 20:14:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Hi all,
if I start emacs with `emacs --eval '(setq debug-on-error t)' &' type
the following a tex file:
\thispagestyle{`C-M-i'
I get this error:
--8<---------------cut here---------------start------------->8---
Debugger entered--Lisp error: (error "Can't find completion for \"\\thispagestyle{\"")
signal(error ("Can't find completion for \"\\thispagestyle{\""))
error("Can't find completion for \"%s\"" "\\thispagestyle{")
TeX-complete-symbol()
call-interactively(TeX-complete-symbol nil nil)
command-execute(TeX-complete-symbol)
--8<---------------cut here---------------end--------------->8---
It is due to a bug in the definition of `TeX-complete-list' in
`latex.el' (line 5913):
--8<---------------cut here---------------start------------->8---
(setq TeX-complete-list
(append '(;; snipped
("\\\\\\(this\\)?pagestyle{\\([A-Za-z]*\\)"
1 LaTeX-pagestyle-list "}"))
TeX-complete-list))
--8<---------------cut here---------------end--------------->8---
The number refers to the wrong subgroup in the regex. There are two
ways to fix this: Make `\\(this\\)' a shy-group or replace `1' with `2'.
Please find attached a patch going the second route since it looks more
coherent to the rest of definitions in `TeX-complete-list'.
As always, any comments welcome.
Best, Arash
[0001-Fix-the-subgroup-number-in-a-regex.patch (text/x-patch, attachment)]
Reply sent
to
Mosè Giordano <mose <at> gnu.org>
:
You have taken responsibility.
(Sat, 15 Aug 2015 13:21:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Arash Esbati <esbati <at> gmx.de>
:
bug acknowledged by developer.
(Sat, 15 Aug 2015 13:21:03 GMT)
Full text and
rfc822 format available.
Message #10 received at 21259-done <at> debbugs.gnu.org (full text, mbox):
Hi Arash,
2015-08-14 21:32 GMT+02:00 Arash Esbati <esbati <at> gmx.de>:
> Hi all,
>
> if I start emacs with `emacs --eval '(setq debug-on-error t)' &' type
> the following a tex file:
>
> \thispagestyle{`C-M-i'
>
> I get this error:
>
> --8<---------------cut here---------------start------------->8---
> Debugger entered--Lisp error: (error "Can't find completion for \"\\thispagestyle{\"")
> signal(error ("Can't find completion for \"\\thispagestyle{\""))
> error("Can't find completion for \"%s\"" "\\thispagestyle{")
> TeX-complete-symbol()
> call-interactively(TeX-complete-symbol nil nil)
> command-execute(TeX-complete-symbol)
> --8<---------------cut here---------------end--------------->8---
>
> It is due to a bug in the definition of `TeX-complete-list' in
> `latex.el' (line 5913):
>
> --8<---------------cut here---------------start------------->8---
> (setq TeX-complete-list
> (append '(;; snipped
> ("\\\\\\(this\\)?pagestyle{\\([A-Za-z]*\\)"
> 1 LaTeX-pagestyle-list "}"))
> TeX-complete-list))
> --8<---------------cut here---------------end--------------->8---
>
> The number refers to the wrong subgroup in the regex. There are two
> ways to fix this: Make `\\(this\\)' a shy-group or replace `1' with `2'.
>
> Please find attached a patch going the second route since it looks more
> coherent to the rest of definitions in `TeX-complete-list'.
Agreed. Patch installed, thanks!
Bye,
Mosè
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sun, 13 Sep 2015 11:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 9 years and 280 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.