Re: [AUCTeX] minor issue of fontification if \begin{verbatim}foo

2016-09-19 Thread Tassilo Horn
David Kastrup  writes:

Hi David,

>>> Sorry for the delay. I confirm the commit fixes it, but my test file
>>> also had
>>>
>>> \begin{verbatim}X\end{verbatim}
>>>
>>> and this confuses the fontifying.
>>
>> Argh, you are a hard opponent.  But I think my latest commit fixes
>> this, too, namely I don't require that the \end{env} is on its own
>> line with at most whitespace in front of it anymore.  I hope it
>> doesn't have any negative consequences, though.  Well, and if it has,
>> I guess _you_ will tell me. :-)
>
> You'll probably want to see how verbatim.dtx behaves when describing
> verbatim-like environments...

Could you give me a pointer to what you are exactly referring to?
Reading through verbatim.dtx I thought you might be referring to that in

  \begin{verbatim}test test\end{verbatim}more text

the "more text" is lost with \usepackage{verbatim} (but not without it).

But well, the contents are allowed to be just after the \begin and just
before the \end.  So that's probably not what you mean...

Bye,
Tassilo

___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex


Re: [AUCTeX] minor issue of fontification if \begin{verbatim}foo

2016-09-18 Thread David Kastrup
Tassilo Horn  writes:

> jfbu  writes:
>
> Hi Jean-Francois,
>
>>> Good catch.  I've pushed a fix just now.  Let me know if it works (or
>>> exhibits problems in other situations).
>>
>> Sorry for the delay. I confirm the commit fixes it, but my test file
>> also had
>>
>> \begin{verbatim}X\end{verbatim}
>>
>> and this confuses the fontifying.
>
> Argh, you are a hard opponent.  But I think my latest commit fixes this,
> too, namely I don't require that the \end{env} is on its own line with
> at most whitespace in front of it anymore.  I hope it doesn't have any
> negative consequences, though.  Well, and if it has, I guess _you_ will
> tell me. :-)

You'll probably want to see how verbatim.dtx behaves when describing
verbatim-like environments...

-- 
David Kastrup

___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex


Re: [AUCTeX] minor issue of fontification if \begin{verbatim}foo

2016-09-18 Thread jfbu

Le 18 sept. 2016 à 19:33, Tassilo Horn  a écrit :

> jfbu  writes:
> 
> Hi Jean-Francois,
> 
>>> Good catch.  I've pushed a fix just now.  Let me know if it works (or
>>> exhibits problems in other situations).
>> 
>> Sorry for the delay. I confirm the commit fixes it, but my test file
>> also had
>> 
>> \begin{verbatim}X\end{verbatim}
>> 
>> and this confuses the fontifying.
> 
> Argh, you are a hard opponent.  But I think my latest commit fixes this,
> too, namely I don't require that the \end{env} is on its own line with
> at most whitespace in front of it anymore.  I hope it doesn't have any
> negative consequences, though.  Well, and if it has, I guess _you_ will
> tell me. :-)

Good work ! not seen negative consequences so far ...


> 
>> You said to exhibit problems ! ;-) 
> 
> Keep it going, I'm at the top of the font-latex game! ;-)


I have been thinking about putting now the \end{verbatim}
_before_ the \begin{verbatim} but you are a lucky guy as
LaTeX does not like that ;-)

By the way, could there be a way to have a fontifying like
in verbatim but at the same time not have restriction on
what one can do with fill-paragraph etc.., i.e. it could
reflow like standard LaTeX code is allowed too ?

Indeed I have a context where I have an environment
where I write LaTeX code which gets executed and also
verbatim-printed. So far I turned off verbatim fontification
for this environment, but it would be nice to have it
nevertheless distinguished form the rest of the code

(don't know if this is clear)

Best,

Jean-Francois


> 
> Bye,
> Tassilo


___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex


Re: [AUCTeX] minor issue of fontification if \begin{verbatim}foo

2016-09-18 Thread Tassilo Horn
jfbu  writes:

Hi Jean-Francois,

>> Good catch.  I've pushed a fix just now.  Let me know if it works (or
>> exhibits problems in other situations).
>
> Sorry for the delay. I confirm the commit fixes it, but my test file
> also had
>
> \begin{verbatim}X\end{verbatim}
>
> and this confuses the fontifying.

Argh, you are a hard opponent.  But I think my latest commit fixes this,
too, namely I don't require that the \end{env} is on its own line with
at most whitespace in front of it anymore.  I hope it doesn't have any
negative consequences, though.  Well, and if it has, I guess _you_ will
tell me. :-)

> You said to exhibit problems ! ;-) 

Keep it going, I'm at the top of the font-latex game! ;-)

Bye,
Tassilo

___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex


Re: [AUCTeX] minor issue of fontification if \begin{verbatim}foo

2016-09-18 Thread jfbu

Le 18 sept. 2016 à 17:07, Tassilo Horn  a écrit :

> jfbu  writes:
> 
> Hi Jean-Francois,
> 
>> A
>> \begin{verbatim}foo
>> bar
>> \end{verbatim}
>> B
>> etc...
>> \end{document}
>> 
>> seems to fontify the whole buffer from that point on as
>> if entirely inside the verbatim.
>> 
>> Surely a minor issue as it is not usual (but not forbidden either) to
>> put something immediately after the \begin{verbatim}
> 
> Good catch.  I've pushed a fix just now.  Let me know if it works (or
> exhibits problems in other situations).
> 
> Bye,
> Tassilo


Hi Tassilo,

Sorry for the delay. I confirm the commit fixes it, but my test file also
had 

\begin{verbatim}X\end{verbatim}

and this confuses the fontifying.

You said to exhibit problems ! ;-) 

Thanks,

Jean-Francois
___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex


Re: [AUCTeX] minor issue of fontification if \begin{verbatim}foo

2016-09-18 Thread Tassilo Horn
jfbu  writes:

Hi Jean-Francois,

> A
> \begin{verbatim}foo
> bar
> \end{verbatim}
> B
> etc...
> \end{document}
>
> seems to fontify the whole buffer from that point on as
> if entirely inside the verbatim.
>
> Surely a minor issue as it is not usual (but not forbidden either) to
> put something immediately after the \begin{verbatim}

Good catch.  I've pushed a fix just now.  Let me know if it works (or
exhibits problems in other situations).

Bye,
Tassilo


___
auctex mailing list
auctex@gnu.org
https://lists.gnu.org/mailman/listinfo/auctex