unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* paragraph-start in Shell mode and Ielm.
@ 2005-04-20  1:39 Luc Teirlinck
  2005-04-20  2:19 ` Luc Teirlinck
  2005-04-20  3:40 ` Stefan Monnier
  0 siblings, 2 replies; 15+ messages in thread
From: Luc Teirlinck @ 2005-04-20  1:39 UTC (permalink / raw)


I propose to change paragraph-start in Shell mode and Ielm from:

(setq paragraph-start comint-prompt-regexp)

to:

(setq paragraph-start (concat "[ \t\f]*$\\|" comint-prompt-regexp))

This will make no user visible difference, for reasons explained
below.  But the current value is misleading given the paragraph-start
docstring:

  *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).

In Shell mode and Ielm blank lines already do separate paragraphs,
since the value of paragraph separate is "[ \t\f]*$".  In view of the
above excerpt of the docstring, paragraph-start should match empty
lines too, which the current value does not.

I can install if desired.

Sincerely,

Luc.

^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2005-04-27 18:39 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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
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

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).