all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Drew Adams" <drew.adams@oracle.com>
To: "Emacs-Devel" <emacs-devel@gnu.org>
Subject: RE: should query-replace-regexp-eval be in the manual?
Date: Sun, 15 Apr 2007 15:55:14 -0700	[thread overview]
Message-ID: <EIENLHALHGIMHGDOLMIMMEKIDAAA.drew.adams@oracle.com> (raw)
In-Reply-To: <4622A327.5060705@gmail.com>

> >> Basically it has been my experience that query-replace-regexp-eval
> >> is a nice idea, but in practice quite unusable.  \, achieves a
> >> similar purpose but with a much more convenient interface.
> >
> > To get back to the original question: since \, has all of the
> > functionality of query-replace-regexp-eval with a more convenient
> > interface, query-replace-regexp-eval could be considered obsolete or
> > at least obscure.
> >
> > Since we tell people how to do the same thing more flexibly with \, I
> > don't think that query-replace-regexp-eval deserves a place in the
> > manual.  It would be a lot of additional explanation without any
> > conceivable benefit to the user.
>
> After reading this I think it would be a good idea to tell in the doc
> string for query-replace-regexp-eval to use query-replace-regexp + \
> instead.

There is never any sense in saying to use something else instead, unless it
has truly been deprecated.

The question is whether this has a use on its own, which would keep it from
being deprecated. In that case, the doc string should explain what that use
is.

I think that it probably does merit keeping. It has the advantage of simpler
syntax, for the use case to which it applies: replacement by an evaled sexp
(only).

IOW:
- `query-regexp-replace' is best all 'round: flexible, general
- `query-regexp-replace-eval' has a simpler UI when you are
  using only eval-replacement - no need to use `\,...'.

  reply	other threads:[~2007-04-15 22:55 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-13 16:41 should query-replace-regexp-eval be in the manual? Drew Adams
2007-04-14  9:47 ` Alan Mackenzie
2007-04-14 14:43   ` Drew Adams
2007-04-15 21:56     ` David Kastrup
2007-04-15 22:03       ` David Kastrup
2007-04-15 22:11         ` Lennart Borgman (gmail)
2007-04-15 22:55           ` Drew Adams [this message]
2007-04-16  0:51             ` Robert J. Chassell
2007-04-16  3:45               ` Stefan Monnier
2007-04-15 22:54       ` Drew Adams
2007-04-16 15:37       ` Richard Stallman
2007-04-16 17:22         ` David Kastrup
2007-04-17 18:03           ` Richard Stallman
2007-04-17 23:27             ` David Kastrup
2007-04-18 14:56               ` Richard Stallman
2007-04-18 16:37                 ` David Kastrup

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=EIENLHALHGIMHGDOLMIMMEKIDAAA.drew.adams@oracle.com \
    --to=drew.adams@oracle.com \
    --cc=emacs-devel@gnu.org \
    /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.