all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Kastrup <dak@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: Search nodes in Emacs manual
Date: 18 Jun 2004 23:46:28 +0200	[thread overview]
Message-ID: <x51xkc8rpn.fsf@lola.goethe.zz> (raw)
In-Reply-To: <87acz01wxi.fsf@mail.jurta.org>

Juri Linkov <juri@jurta.org> writes:

> But perhaps with the latest changes this example can be replaced
> with more advanced like this:
> 
>     M-x replace-regexp <RET> \(x\|y\) <RET> \,(if (equal \& "x") "y"
>     "x") <RET>

Cute.  Of course \(x\|y\) is shorter as [xy]

> BTW, `replace-regexp' currently doesn't support evaluation of the
> replacement string as `query-replace-regexp' now does, but I think
> it should.

It already does in my current code, but as I said, I am currently
trying to get a grip about how to deal with the replacement history
properly.

If I don't manage that, I'll basically leave the old (problematic)
behavior, which is somewhat exacerbated by having \?, and thus more
of a possibility of the user getting the search/replacement confused
if he is mean.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

  reply	other threads:[~2004-06-18 21:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-06-18 19:35 Search nodes in Emacs manual Juri Linkov
2004-06-18 21:46 ` David Kastrup [this message]
2004-06-19 18:42   ` Juri Linkov
2004-06-19 18:52     ` David Kastrup
2004-06-19 21:22       ` Juri Linkov
2004-06-21 16:38   ` Juri Linkov
2004-06-19  3:19 ` Richard Stallman

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=x51xkc8rpn.fsf@lola.goethe.zz \
    --to=dak@gnu.org \
    --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.