bug-auctex
[Top][All Lists]
Advanced

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

Re: [Bug-AUCTeX] 11.87; Failure to insert smart quotes in some circumsta


From: Ralf Angeli
Subject: Re: [Bug-AUCTeX] 11.87; Failure to insert smart quotes in some circumstances
Date: Tue, 14 Jan 2014 20:41:42 +0100

* Mosè Giordano (2014-01-13) writes:

> 2014/1/12 Ralf Angeli <address@hidden>:
>> * Mosč Giordano (2014-01-11) writes:
>>
>>> 2014/1/11 Ralf Angeli <address@hidden>:
>>>>
>>>> "\\([^\\$]\\|[^\\]\\(\\\\\\\\\\)*\\\\\\$\\|[^\\]\\(\\\\\\\\\\)+\\|\\`\\)\\(\\$\\$\\|\\$\\)"
>>>
>>> Thanks for your suggestions!  Unfortunately, this regexp doesn't match
>>> the opening dollar in
>>>     \\$something$
>>
>> Hm, in my case it does.  Though, point has to be at least one character
>> before the first backslash for it to work.
>
> I applied the attached patch to test your regexp, but the reported bug
> is still there.  Am I missing something?

Oh, sorry, I did not actually test the regexp with the example.  As I've
written before, for the regexp to work it needs one character in front
of the backslashes.  With it the start of a "backslash series" is
determined.  The example in the bug report is "$a$\\$b$".  That means
after finding the second dollar sign, point is right in front of the
newline and the regexp is therefore not able to recognize it.  I don't
know a possibility to get around this problem.  IIRC this type of
problem was one of the reasons for switching from a regexp to
`TeX-escaped-p' for similar cases.  So perhaps that would really be the
better option.

-- 
Ralf



reply via email to

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