unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: "Richard M. Stallman" <rms@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Clean-up of forward-paragraph [Re: Beginingless paragraphs: second stab at a patch.]
Date: Fri, 21 Oct 2005 00:50:12 -0400	[thread overview]
Message-ID: <E1ESor6-0002tE-Lm@fencepost.gnu.org> (raw)
In-Reply-To: <Pine.LNX.3.96.1051020073728.419B-100000@acm.acm> (message from Alan Mackenzie on Thu, 20 Oct 2005 13:53:18 +0000 (GMT))

    The current implementation doesn't test for paragraph-s\(tart\|eparate\)
    on the same line as the fill-prefix.  Should it?

I think it is important to see what past versions of Emacs did--for
instance, Emacs 19, before the support for a left margin was added.

If it was always done this way, then I think we should document it
clearly and not change it.  There are no users asking for changes in
this, and changing it would be risky.  However, if the past behavior
was confused or conflicting, we need to figure out which past behavior
to be compatible with.

Regarding your proposed definition of paragraphs, I am concerned about
possible incompatibilities.  In the "new" cases, those of
use-hard-newlines and nonempty left margin, we are not particularly
bound by compatibility.  However, in the other cases we are.

    (iv) A @dfn{divider (line)} is a line which is either a separator or has the
      fill-prefix (after any left margin) and is otherwise only whitespace.  [This
      definition only applies when the fill-prefix is non-null.]

I think that together with (vii) are very hard to understand.

    (vi) When `use-hard-newlines' is non-nil, all paragraph boundaries are at hard
      BOLs.  A paragraph starts at a non-separator line, and ends at the next hard
      BOL.  Here, fill-prefix and paragraph-start are ignored.

Does this make some unstated assumption about how separator lines and
hard newlines relate to each other?  Perhaps it is just that the text
is confusing.

    (ix) If there happens to be a blank line before a paragraph start, this line
      is NOT regarded as being part of the paragraph.  [This is the problem which
      was at the heart of this thread.]

I am not quite sure what that means in concrete terms.  As I said
before, that blank line MUST be part of the following paragraph.
That is essential for compatibility.


I think that at present we should probably stick to fixing anything
which is most obviously a bug.  For instance, all paragraph beginnings
and ends should be at BOL; when it fails to do that, that is worth
fixing.  Bigger changes should wait for after the release.

  reply	other threads:[~2005-10-21  4:50 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-08-30 10:50 Beginingless paragraphs Alan Mackenzie
2005-08-30 11:48 ` Benjamin Riefenstahl
2005-08-31 14:36 ` Richard M. Stallman
2005-08-31 17:00   ` Eli Zaretskii
2005-08-31 18:11   ` Alan Mackenzie
2005-09-01 15:53     ` Richard M. Stallman
2005-09-01 17:56       ` Alan Mackenzie
2005-09-01 23:17         ` Thien-Thi Nguyen
2005-09-03  1:42         ` Richard M. Stallman
2005-09-03  1:41     ` Richard M. Stallman
2005-09-03 12:26       ` Alan Mackenzie
2005-09-04 16:49         ` Richard M. Stallman
2005-09-07 19:17           ` Beginingless paragraphs: second stab at a patch Alan Mackenzie
2005-09-08  9:04             ` Richard M. Stallman
2005-10-19 16:56               ` Clean-up of forward-paragraph [Re: Beginingless paragraphs: second stab at a patch.] Alan Mackenzie
2005-10-20  4:54                 ` Richard M. Stallman
2005-10-20 13:53                   ` Alan Mackenzie
2005-10-21  4:50                     ` Richard M. Stallman [this message]
2005-10-21 20:09                       ` Alan Mackenzie
2005-10-22 15:51                         ` Richard M. Stallman

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=E1ESor6-0002tE-Lm@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=emacs-devel@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).