From: Glenn Morris <rgm@gnu.org>
To: Joe Wells <jbw@macs.hw.ac.uk>
Cc: bug-gnu-emacs@gnu.org
Subject: Re: tex-terminate-paragraph ignores paragraph-start and paragraph-separate
Date: Wed, 19 Sep 2007 03:30:29 -0400 [thread overview]
Message-ID: <5rfy1b2ju2.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <86bqccrv47.fsf@macs.hw.ac.uk> (Joe Wells's message of "Sun, 09 Sep 2007 11:28:08 +0100")
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.
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.
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".
next prev parent reply other threads:[~2007-09-19 7:30 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 [this message]
2007-09-19 8:28 ` Joe Wells
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=5rfy1b2ju2.fsf@fencepost.gnu.org \
--to=rgm@gnu.org \
--cc=bug-gnu-emacs@gnu.org \
--cc=jbw@macs.hw.ac.uk \
/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).