unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Luc Teirlinck <teirllm@dms.auburn.edu>
Cc: emacs-devel@gnu.org
Subject: Re: comint-prompt-regexp
Date: Thu, 7 Apr 2005 20:27:39 -0500 (CDT)	[thread overview]
Message-ID: <200504080127.j381Rdw07836@raven.dms.auburn.edu> (raw)
In-Reply-To: <fc339e4a0504062024712a5f45@mail.gmail.com> (message from Miles Bader on Thu, 7 Apr 2005 12:24:00 +0900)

Things seem to be a little bit more complex still.  From the
documentation in the Emacs manual, it would appear that the intent is
that a paragraph in a Shell buffer should always consist of a complete
"prompt-input-output" group.  But, even when
`comint-use-prompt-regexp-instead-of-fields' is non-nil, blank lines
count as paragraph separators, even though not as paragraph starters.
The docstring of paragraph-start says that this is something that
should never happen:

  paragraph-start's value is "\f\\|[	]*$"

  *Regexp for beginning of a line that starts OR separates paragraphs.
  This regexp should match lines that separate paragraphs
  and should also match lines that start a paragraph
  (and are part of that paragraph).

To correct this, we could either set paragraph-separate to
comint-prompt-regexp too, or we could set paragraph-start to:
(concat paragraph-separate "\\|" comint-prompt-regexp)

The latter would yield the exact described behavior.

The problem for Ielm is exactly the same as for Shell Mode.
Paragraphs commands in Inferior Lisp mode currently do not do anything
useful, but for consistency (and convenience) they should behave the
same as in Shell mode and Ielm.  Maybe the paragraph commands should
behave consistently in _all_ Comint buffers, and hence have a default
implementation in comint.el.

Sincerely,

Luc.

  parent reply	other threads:[~2005-04-08  1:27 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-04-07  1:55 comint-prompt-regexp Luc Teirlinck
2005-04-07  3:24 ` comint-prompt-regexp Miles Bader
2005-04-08  1:05   ` comint-prompt-regexp Luc Teirlinck
2005-04-08  1:36     ` comint-prompt-regexp Miles Bader
2005-04-08  1:46       ` comint-prompt-regexp Luc Teirlinck
2005-04-08  1:27   ` Luc Teirlinck [this message]
2005-04-08  1:34   ` comint-prompt-regexp 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=200504080127.j381Rdw07836@raven.dms.auburn.edu \
    --to=teirllm@dms.auburn.edu \
    --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).