From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lennart Borgman Newsgroups: gmane.emacs.help Subject: Re: replacing endline Date: Fri, 21 Apr 2006 00:19:57 +0200 Message-ID: <4448090D.7050800@student.lu.se> References: <1145492327.354125.133060@j33g2000cwa.googlegroups.com> <87lku1t3fn.fsf@gmail.com> <7efyk8pxjz.fsf@ada2.unipv.it> <87acagux25.fsf@gmail.com> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1145571619 19076 80.91.229.2 (20 Apr 2006 22:20:19 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 20 Apr 2006 22:20:19 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Apr 21 00:20:16 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FWhVX-0005aS-Lw for geh-help-gnu-emacs@m.gmane.org; Fri, 21 Apr 2006 00:20:15 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FWhVX-0000ws-2k for geh-help-gnu-emacs@m.gmane.org; Thu, 20 Apr 2006 18:20:15 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FWhVN-0000wj-Bx for help-gnu-emacs@gnu.org; Thu, 20 Apr 2006 18:20:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FWhVJ-0000wX-9p for help-gnu-emacs@gnu.org; Thu, 20 Apr 2006 18:20:04 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FWhVJ-0000wU-4O for help-gnu-emacs@gnu.org; Thu, 20 Apr 2006 18:20:01 -0400 Original-Received: from [81.228.11.159] (helo=pne-smtpout2-sn1.fre.skanova.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FWhWj-0002UX-1y for help-gnu-emacs@gnu.org; Thu, 20 Apr 2006 18:21:29 -0400 Original-Received: from [192.168.123.121] (83.249.218.244) by pne-smtpout2-sn1.fre.skanova.net (7.2.070) id 4444940C000D4B73; Fri, 21 Apr 2006 00:19:57 +0200 User-Agent: Thunderbird 1.5 (Windows/20051201) Original-To: Harald Hanche-Olsen In-Reply-To: X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:34525 Archived-At: Harald Hanche-Olsen wrote: > Uh. You would like to be able to type M-x query-replace RET \n RET # > RET and have that \n behave like it was typed between quotes in a lisp > expression? That, to me, is very unintuitive behaviour. The \n > syntax is a special escape for the convenience of programmers. It > should not be allowed to pollute interactive commands. The difficulty > here comes from the very fact that entering a string in a program, and > supplying one to an interactive command, are two very different > things, and they need different escape conventions to enter special > characters like the newline. Once you understand that, the difficulty > should indeed evaporate. You might of course disagree with the choice > of escape conventions, but I think it would confuse people more to use > the backslash as an escape character in the interactive setting. > AFAICS the same escape syntax that are used for strings in elisp could be used for strings read in the minibuffer. In princip I mean, not now of course. To me it is not unnatural at all. But maybe it is very inconvenient? Could you please explain what you mean from that point of view?