all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Advanced query-replace-regexp in code
@ 2009-05-27 14:03 Nordlöw
  2009-05-27 14:32 ` Pascal J. Bourguignon
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Nordlöw @ 2009-05-27 14:03 UTC (permalink / raw)
  To: help-gnu-emacs

I can't get the following example to work programmatically.

  M-x replace-regexp
  Replace regexp:  \(\w+\)
  Replace regexp with:  \,(capitalize \1)

Is this only possible in interactive query-replace?
If so should I use a combination of while(), looking-at(), re-search-
forward(), replace-match(), match-string() etc.

Thanks in advance,
Per Nordlöw


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2009-08-02 20:25 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-27 14:03 Advanced query-replace-regexp in code Nordlöw
2009-05-27 14:32 ` Pascal J. Bourguignon
2009-05-28  1:19 ` Barry Margolin
2009-05-28  4:57   ` Teemu Likonen
2009-05-28  7:04     ` Barry Margolin
2009-05-28 19:36       ` Johan Bockgård
     [not found]       ` <mailman.8013.1243539406.31690.help-gnu-emacs@gnu.org>
2009-05-29  2:14         ` Barry Margolin
2009-05-30  6:34           ` Nordlöw
2009-05-30 18:55           ` Johan Bockgård
     [not found]           ` <mailman.8166.1243709727.31690.help-gnu-emacs@gnu.org>
2009-05-31  1:57             ` Barry Margolin
2009-05-28 19:50 ` harven
2009-08-02 16:19 ` David Kastrup
2009-08-02 17:14   ` Thierry Volpiatto
2009-08-02 20:25     ` Thierry Volpiatto

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.