unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Luc Teirlinck <teirllm@dms.auburn.edu>
Cc: monnier@iro.umontreal.ca, emacs-devel@gnu.org
Subject: Re: paragraph-start in Shell mode and Ielm.
Date: Wed, 20 Apr 2005 20:29:26 -0500 (CDT)	[thread overview]
Message-ID: <200504210129.j3L1TQ526330@raven.dms.auburn.edu> (raw)
In-Reply-To: <E1DOMxv-0004hP-Ru@fencepost.gnu.org> (message from Richard Stallman on Wed, 20 Apr 2005 17:42:35 -0400)

Richard Stallman wrote:

   Have you checked all the uses of paragraph-start to make sure they
   really work when paragraph-start does not match separator lines?

Actually, another problem is that some modes apparently _relied_ on the
fact that paragraph-separate used to be meaningless if it did not also
match paragraph-start.  The recent 22.0.50 changes in paragraph
behavior have broken paragraphs at least in Shell mode and Ielm.
Although I do not know any further examples, it is likely that
paragraphs in other modes are now broken too for the same reason.

In my proposed changes to misc.texi, I documented the fact that blank
lines in Shell mode also separated paragraphs.  But I now realize that
this was documenting a bug.  To be useful in shell mode, paragraphs
should cover prompt, input and output.  That was the behavior in 21.3
and earlier and we should revert to that correct behavior.  If we do
not want to revert the changes Stefan referred to then we should set
paragraph-separate to something that does not match anything (what is
the standard regexp for that? "\\'"?), in Shell mode and Ielm and
possibly in some other modes.

Below is the proposed new last paragraph of the new "Shell Prompts"
node.  It assumes that the above bug will be fixed.  The description
of the behavior of paragraph commands if comint-use-prompt-regexp is
nil (the default) is deliberately vague, as it is messy (for people
not familiar with fields, it could easily appear to be buggy,
especially in as far as numeric arguments and such are concerned).
But that behavior is already present in 21.3, so people could actually
be used to it.

    In Shell mode, only shell prompts start new paragraphs.  Thus, a
  paragraph consists of a prompt and the input and output that follow
  it.  However, if @code{comint-use-prompt-regexp} is @code{nil}, the
  default, most paragraph commands do not cross field boundaries.  Thus,
  with this setting, prompt, input and output behave mostly as if they
  were separate paragraphs and most numeric arguments to paragraph
  commands are ignored.  For the purpose of finding paragraph
  boundaries, Shell mode uses @code{shell-prompt-pattern}, regardless of
  @code{comint-use-prompt-regexp}.

  parent reply	other threads:[~2005-04-21  1:29 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-20  1:39 paragraph-start in Shell mode and Ielm Luc Teirlinck
2005-04-20  2:19 ` Luc Teirlinck
2005-04-20  3:40 ` Stefan Monnier
2005-04-20  4:05   ` Luc Teirlinck
2005-04-20  4:23     ` Stefan Monnier
2005-04-20 21:42       ` Richard Stallman
2005-04-20 22:19         ` Stefan Monnier
2005-04-21 15:30           ` Richard Stallman
2005-04-21  1:29         ` Luc Teirlinck [this message]
2005-04-23 16:16           ` Richard Stallman
2005-04-25 17:28             ` Stefan Monnier
2005-04-26 14:32               ` Richard Stallman
2005-04-26 20:36                 ` Nick Roberts
2005-04-27 18:39                   ` Richard Stallman
2005-04-21  1:34         ` Luc Teirlinck

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=200504210129.j3L1TQ526330@raven.dms.auburn.edu \
    --to=teirllm@dms.auburn.edu \
    --cc=emacs-devel@gnu.org \
    --cc=monnier@iro.umontreal.ca \
    /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).