Redirecting to the bug list.

Andrea Sosso <[EMAIL PROTECTED]> writes:

> David Kastrup wrote:
>
>>Andrea Sosso <[EMAIL PROTECTED]> writes:
>>  
>>
>>>The following expression:
>>>
>>>\graphicspath{{$HOME/subdir1/subdir2/}}
>>>
>>>is confusing for AUCTeX, which treats anything after $ as TeX math
>>>mode. I had to add a commented $ at the and of the line:
>>>
>>>\graphicspath{{$HOME/subdir1/subdir2/}}% $
>>>
>>>to get the correct parsing of the lines below.

[...]

> sorry for the belated reply. this is the output of  TeX-submit-bug-report
>
>
> Emacs  : GNU Emacs 21.2.1 (i686-pc-cygwin, X toolkit) of 2004-03-22 on
> cm-test

That one's several years old.  The last regular release is 21.4,
though on Windows, the developer version of Emacs is usually
preferable (quite more functionality in the display department).  You
can get a version with preinstalled AUCTeX from
<URL:ftp://alpha.gnu.org/pub/gnu/auctex>.

> Package: AUC TeX 11.13

And that one's truly ancient.  11.14 has been released in 2002, and
now we have 2006.

Apart from that, the font locking appears to behave just the same in
the current code.  Short of hierarchical font locking (which would
have to be implemented in the Emacs core), I don't think that there is
a chance to deal with this more gracefully than with the above
syntactic sugar you already used, namely %$.  We had several internal
versions in between where %$ was treated as a pure comment and could
not be used in that manner, but I had vetoed that exactly for the
purpose of situations like yours.

Sorry I can't help more here: LaTeX is complicated, TeX even more so.
You could try to do

\newcommand\home{$HOME}%$

and then use

\graphicspath{{\home/subdir1/subdir2}}

[...]

which would reduce the $-Stuff (which I am actually surprised to find
working) to a single line.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum


_______________________________________________
bug-auctex mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-auctex

Reply via email to