From: Joe Wells <jbw@macs.hw.ac.uk>
To: Glenn Morris <rgm@gnu.org>
Cc: bug-gnu-emacs@gnu.org
Subject: Re: tex-terminate-paragraph ignores paragraph-start and paragraph-separate
Date: Wed, 19 Sep 2007 09:28:26 +0100 [thread overview]
Message-ID: <86abrjcb4l.fsf@macs.hw.ac.uk> (raw)
In-Reply-To: <5rfy1b2ju2.fsf@fencepost.gnu.org> (Glenn Morris's message of "Wed\, 19 Sep 2007 03\:30\:29 -0400")
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
next prev parent reply other threads:[~2007-09-19 8:28 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-09-09 6:35 tex-terminate-paragraph ignores paragraph-start and paragraph-separate Joe Wells
2007-09-09 8:47 ` martin rudalics
2007-09-09 10:28 ` Joe Wells
2007-09-19 7:30 ` Glenn Morris
2007-09-19 8:28 ` Joe Wells [this message]
2007-09-20 3:13 ` Glenn Morris
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86abrjcb4l.fsf@macs.hw.ac.uk \
--to=jbw@macs.hw.ac.uk \
--cc=bug-gnu-emacs@gnu.org \
--cc=rgm@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).