From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: David Kastrup Newsgroups: gmane.emacs.devel Subject: Re: query-replace-interactive Date: 06 Jul 2004 14:09:57 +0200 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: References: <876594drn6.fsf@mail.jurta.org> <87k6xjouj5.fsf@mail.jurta.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1089116527 2739 80.91.224.253 (6 Jul 2004 12:22:07 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 6 Jul 2004 12:22:07 +0000 (UTC) Cc: Juri Linkov , monnier@iro.umontreal.ca, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Jul 06 14:22:01 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BhoxV-0006G6-00 for ; Tue, 06 Jul 2004 14:22:01 +0200 Original-Received: from lists.gnu.org ([199.232.76.165]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BhoxV-00011f-00 for ; Tue, 06 Jul 2004 14:22:01 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1BhozW-00088U-GQ for emacs-devel@quimby.gnus.org; Tue, 06 Jul 2004 08:24:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1Bhoyz-00086M-FT for emacs-devel@gnu.org; Tue, 06 Jul 2004 08:23:33 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1BhoqE-0006Pc-3g for emacs-devel@gnu.org; Tue, 06 Jul 2004 08:14:30 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1Bhoo3-0005L1-Ix for emacs-devel@gnu.org; Tue, 06 Jul 2004 08:12:15 -0400 Original-Received: from [199.232.76.164] (helo=fencepost.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.34) id 1Bholy-0007fS-6i for emacs-devel@gnu.org; Tue, 06 Jul 2004 08:10:06 -0400 Original-Received: from localhost ([127.0.0.1] helo=lola.goethe.zz) by fencepost.gnu.org with esmtp (Exim 4.34) id 1Bholq-0006Gs-T3; Tue, 06 Jul 2004 08:09:59 -0400 Original-To: rms@gnu.org In-Reply-To: Original-Lines: 28 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:25485 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:25485 Richard Stallman writes: > Calling `perform-replace' directly is not good because it skips many > useful things implemented in interactive commands which call it. > Most useful of them is recently added handling of \, and \# in > `query-replace-read-args'. > > Why are these implemented in the interactive commands > andnot in perform-replace directly? Basically because they are actually more like a user-friendly frontend to query-replace-regexp-eval functionality than a command of their own. Since arbitrary code can be executed by `\,', existing uses of all replacement commands in Lisp programs would have different implications for security. I did not want to introduce security relevant changes in the middle of the release consolidation. As long as the automatic evaluation of stuff is restricted to interactive usage, and as long as you can easily cut&paste the respective generated Lisp calls with C-x ESC ESC, I think that there are no security concerns in connection with the new functionality. Now `\#' is harmless in this regard compared to `\,', but I don't think that there is much of a point in splitting just `\#' off to a different place. -- David Kastrup, Kriemhildstr. 15, 44793 Bochum