[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tex-terminate-paragraph ignores paragraph-start and paragraph-separa
Re: tex-terminate-paragraph ignores paragraph-start and paragraph-separate
Wed, 19 Sep 2007 03:30:29 -0400
Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
Joe Wells wrote:
> martin rudalics <address@hidden> writes:
>>> The fix is to make tex-terminate-paragraph use a better approach to
>>> finding the start of the current paragraph. At the very least, it
>>> should honor paragraph-start and paragraph-separate.
>> I think the "(search-backward "\n\n" nil t)" in `tex-validate-buffer'
>> should then be replaced as well.
> Both places should probably just use the standard paragraph motion
Yes, I think just using backward-paragraph in tex-terminate-paragraph
(which doesn't seem like a very useful function to me) is good enough.
I'm still thinking about tex-validate-buffer.
> (By the way, what is tex-validate-buffer doing with paragraphs
It's checking each "paragraph" is balanced in terms of parens, etc.
tex-validate-region is more like "find first mismatch in region". Just
calling tex-validate-region on the whole buffer would never produce
more than one error. Not very useful. I'm not convinced it's a very
useful function anyway though. As it stands, you get up to one error