GNU bug report logs - #13480
24.3.50; `C-w' from Isearch should translate newlines to spaces

Previous Next

Package: emacs;

Reported by: Dani Moncayo <dmoncayo <at> gmail.com>

Date: Thu, 17 Jan 2013 20:41:02 UTC

Severity: normal

Tags: moreinfo

Found in version 24.3.50

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #20 received at 13480 <at> debbugs.gnu.org (full text, mbox):

From: Dani Moncayo <dmoncayo <at> gmail.com>
To: Juri Linkov <juri <at> jurta.org>
Cc: 13480 <at> debbugs.gnu.org
Subject: Re: bug#13480: 24.3.50; `C-w' from Isearch should translate newlines
	to spaces
Date: Sat, 19 Jan 2013 09:05:19 +0100
On Fri, Jan 18, 2013 at 10:59 PM, Juri Linkov <juri <at> jurta.org> wrote:
>> Wait a moment.  On second thought, I think that no translation should
>> be necessary at all when adding text from somewhere to the search string.
>
> Why not?  If you save "foo<newline>bar" to the kill-ring and
> yank it to the search string with `C-y' (`isearch-yank-kill')
> wouldn't you want it to translate the <newline> into a space?

No, I wouldn't.  I don't like that translation for two reasons:

1. It loses information that may be useful.  In the future we could
want to implement a feature whereby the user can toggle the
lax-whitespace-matching behavior during an Isearch session.  In fact I
think it would be a good feature (and ISTR that Drew proposed some
time ago).  That feature would not be possible if we change the text
that the user supplies to search for.

2. It is less surprising and more clean to me to see in the echo area
exactly the text I'm supplying, without translations of any kind.

-- 
Dani Moncayo




This bug report was last modified 3 years and 86 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.