Subject: bug#61400: Different filling for verbatim macros

From: Arash Esbati <[email-masked]>
Date: Fri, 10 Feb 2023 10:47:24 +0100

Tassilo Horn <[email-masked]> writes:

> Arash Esbati <[email-masked]> writes:
>
>> \begin{document}
>>
>> Now we can write some text foo and \path{bar}
>>
>> Now we can write some text foo and \path|bar|
>>
>> Now we can write some text foo and \Verb|bar|
>>
>> Now we can write some text foo and \Verb{bar}
>>
>> Now we can write some text foo and \verb|bar|
>>
>> \end{document}
>
> The different break point is already suggested when evaluating
>
>   (LaTeX-fill-move-to-break-point (line-beginning-position))
>
> at the end of each line.  So that function is where to start edebugging.

Hi Tassilo,

thanks for pushing me into that again.  I did already but I missed
what's happening in that function directly in the first form:

  (fill-move-to-break-point linebeg)

It moves the point to different positions.  In the example above, put
point after \path{bar} and do:

  M-: (fill-move-to-break-point (line-beginning-position)) RET

and the point before and.  Now go after \verb|bar| and do the same, no
is point after and.  Can you reproduce this?

Best, Arash