emacs-bug-tracker
[Top][All Lists]
Advanced

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

[debbugs-tracker] bug#34629: closed (27.0.50; Wrong parsing of key-val l


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#34629: closed (27.0.50; Wrong parsing of key-val labels)
Date: Wed, 27 Feb 2019 17:27:01 +0000

Your message dated Wed, 27 Feb 2019 18:26:30 +0100
with message-id <address@hidden>
and subject line Re: bug#34629: 27.0.50; Wrong parsing of key-val labels
has caused the debbugs.gnu.org bug report #34629,
regarding 27.0.50; Wrong parsing of key-val labels
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
34629: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=34629
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 27.0.50; Wrong parsing of key-val labels Date: Sat, 23 Feb 2019 14:17:54 +0100 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50
Hi all,

Please consider the following LaTeX code in a buffer where RefTeX is
enabled:

--8<---------------cut here---------------start------------->8---
\documentclass{article}
\usepackage{listings}
\begin{document}

\begin{lstlisting}[
caption = Some caption ,
label   = lst:1        %
]
foo
\end{lstlisting}

\begin{lstlisting}[
caption = {[Short caption]Long caption},
label   = lst:2          
]
bar
\end{lstlisting}

\begin{lstlisting}[
language  = {[LaTeX]TeX}                           ,
frame     = single                                 ,
caption   = {[Short caption]\textit{L\textbf{o}ng} caption} ,
label     = lst:3     ]
foobar
\end{lstlisting}

\end{document}
--8<---------------cut here---------------end--------------->8---

When hitting `C-u C-c )' in order to add a \ref, RefTeX fails to see the
last 2 labels.  For the first one, it inserts

\ref{lst:1        %
}

The is due to the second regexp in `reftex-label-regexps'.  Please find
attached a patch fixing this issue.  Any comments welcome.

Best, Arash

Attachment: 0001-Improve-matching-of-key-val-labels.patch
Description: Text Data


--- End Message ---
--- Begin Message --- Subject: Re: bug#34629: 27.0.50; Wrong parsing of key-val labels Date: Wed, 27 Feb 2019 18:26:30 +0100 User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
Arash Esbati <address@hidden> writes:

Hi Arash,

> The is due to the second regexp in `reftex-label-regexps'.  Please
> find attached a patch fixing this issue.  Any comments welcome.

Pushed to emacs master.  Thanks a lot!

Bye,
Tassilo


--- End Message ---

reply via email to

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