bug-gnu-emacs
[Top][All Lists]
Advanced

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

Re: tex-terminate-paragraph ignores paragraph-start and paragraph-separa


From: Joe Wells
Subject: Re: tex-terminate-paragraph ignores paragraph-start and paragraph-separate
Date: Wed, 19 Sep 2007 09:28:26 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

Glenn Morris <rgm@gnu.org> writes:

> Joe Wells wrote:
>
>> martin rudalics <rudalics@gmx.at> 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
>> functions.
>
> 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.

Sounds good.

> I'm still thinking about tex-validate-buffer.
>
>> (By the way, what is tex-validate-buffer doing with paragraphs
>> anyway?)
>
> It's checking each "paragraph" is balanced in terms of parens, etc.

Sure, but why does it need to operate on paragraphs?  Why doesn't it
just check the whole buffer?

> 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
> per "paragraph".

If you want to completely remove the functionality, I won't complain!
People who really want checking can use lacheck or chktex from AUCTeX.

I was reporting a bug only because the documented functionality didn't
work correctly.

-- 
Joe




reply via email to

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