all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Regexps and hard newlines
@ 2005-06-30 21:30 Richard M. Stallman
  2005-06-30 23:14 ` Kevin Rodgers
  2005-07-01  7:37 ` David Kastrup
  0 siblings, 2 replies; 4+ messages in thread
From: Richard M. Stallman @ 2005-06-30 21:30 UTC (permalink / raw


What do people think of the idea of making . match soft newlines?
That would fix problems where various features get confused
by longlines.el.

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

* Re: Regexps and hard newlines
  2005-06-30 21:30 Regexps and hard newlines Richard M. Stallman
@ 2005-06-30 23:14 ` Kevin Rodgers
  2005-07-01  7:37 ` David Kastrup
  1 sibling, 0 replies; 4+ messages in thread
From: Kevin Rodgers @ 2005-06-30 23:14 UTC (permalink / raw


Richard M. Stallman wrote:
> What do people think of the idea of making . match soft newlines?
> That would fix problems where various features get confused
> by longlines.el.

Brilliant!

-- 
Kevin Rodgers

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

* Re: Regexps and hard newlines
  2005-06-30 21:30 Regexps and hard newlines Richard M. Stallman
  2005-06-30 23:14 ` Kevin Rodgers
@ 2005-07-01  7:37 ` David Kastrup
  2005-07-01 22:45   ` Richard M. Stallman
  1 sibling, 1 reply; 4+ messages in thread
From: David Kastrup @ 2005-07-01  7:37 UTC (permalink / raw
  Cc: emacs-devel

"Richard M. Stallman" <rms@gnu.org> writes:

> What do people think of the idea of making . match soft newlines?
> That would fix problems where various features get confused
> by longlines.el.

I think that a soft newline, most particularly so in the context of
longlines.el, should pretty much be a space with a display property of
newline on it, so search and replace would not even see it as anything
but space.

If that's not doable, it should at the very least be in all the same
categories as a normal space when doing regexp (and possibly other)
matches.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

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

* Re: Regexps and hard newlines
  2005-07-01  7:37 ` David Kastrup
@ 2005-07-01 22:45   ` Richard M. Stallman
  0 siblings, 0 replies; 4+ messages in thread
From: Richard M. Stallman @ 2005-07-01 22:45 UTC (permalink / raw
  Cc: emacs-devel

    I think that a soft newline, most particularly so in the context of
    longlines.el, should pretty much be a space with a display property of
    newline on it, so search and replace would not even see it as anything
    but space.

That could be too drastic--I don't think that commands that
normally operate on lines should ignore soft newlines.
C-a and C-e now have special commands to implement them,
but there is also C-k, C-x C-t, and probably many more.

The change I suggested, affecting only `,' in regexps, might also be
too drastic.  That's why I am asking to see if people can think of
problems it could cause.

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

end of thread, other threads:[~2005-07-01 22:45 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-30 21:30 Regexps and hard newlines Richard M. Stallman
2005-06-30 23:14 ` Kevin Rodgers
2005-07-01  7:37 ` David Kastrup
2005-07-01 22:45   ` Richard M. Stallman

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.