all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Kastrup <dak@gnu.org>
Cc: Juri Linkov <juri@jurta.org>,
	monnier@iro.umontreal.ca, emacs-devel@gnu.org
Subject: Re: query-replace-interactive
Date: 06 Jul 2004 14:09:57 +0200	[thread overview]
Message-ID: <x57jthpca2.fsf@lola.goethe.zz> (raw)
In-Reply-To: <E1BhoW5-0004ll-0J@fencepost.gnu.org>

Richard Stallman <rms@gnu.org> 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

  reply	other threads:[~2004-07-06 12:09 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-03 22:59 query-replace-interactive Stefan
2004-07-04  9:54 ` query-replace-interactive Juri Linkov
2004-07-04 16:13   ` query-replace-interactive Stefan
2004-07-05  6:08     ` query-replace-interactive Juri Linkov
2004-07-05 12:44       ` query-replace-interactive Stefan
2004-07-06  9:56         ` query-replace-interactive Juri Linkov
2004-07-06 22:00           ` query-replace-interactive Richard Stallman
2004-07-07  5:11             ` query-replace-interactive Juri Linkov
2004-07-07  5:42               ` query-replace-interactive Miles Bader
2004-07-07  9:35               ` query-replace-interactive David Kastrup
2004-07-07 20:58               ` query-replace-interactive Richard Stallman
2004-07-06 22:00           ` query-replace-interactive Richard Stallman
2004-07-06 22:11             ` query-replace-interactive David Kastrup
2004-07-06 11:53       ` query-replace-interactive Richard Stallman
2004-07-06 12:24         ` query-replace-interactive Stefan
2004-07-07  6:41           ` query-replace-interactive Richard Stallman
2004-07-06 11:53       ` query-replace-interactive Richard Stallman
2004-07-06 12:09         ` David Kastrup [this message]
2004-07-07  6:41           ` query-replace-interactive Richard Stallman
  -- strict thread matches above, loose matches on Subject: below --
2004-10-11  1:10 query-replace-interactive Luc Teirlinck
2004-10-11  1:18 ` query-replace-interactive Luc Teirlinck

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=x57jthpca2.fsf@lola.goethe.zz \
    --to=dak@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=juri@jurta.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.