From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Teemu Likonen Newsgroups: gmane.emacs.help Subject: Re: String replace with lisp code Date: Mon, 18 Jul 2011 09:14:53 +0300 Message-ID: <87mxgcru76.fsf@mithlond.arda> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1310970164 18252 80.91.229.12 (18 Jul 2011 06:22:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 18 Jul 2011 06:22:44 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: "C. K. Kashyap" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 18 08:22:40 2011 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([140.186.70.17]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1QihE0-0002AE-2u for geh-help-gnu-emacs@m.gmane.org; Mon, 18 Jul 2011 08:22:40 +0200 Original-Received: from localhost ([::1]:37364 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QihDy-0005lw-EV for geh-help-gnu-emacs@m.gmane.org; Mon, 18 Jul 2011 02:22:38 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:46220) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qih6f-0004ce-Fp for help-gnu-emacs@gnu.org; Mon, 18 Jul 2011 02:15:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qih6d-0001Uh-Fe for help-gnu-emacs@gnu.org; Mon, 18 Jul 2011 02:15:05 -0400 Original-Received: from mta-out.inet.fi ([195.156.147.13]:48378 helo=jenni2.inet.fi) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qih6d-0001Tf-20 for help-gnu-emacs@gnu.org; Mon, 18 Jul 2011 02:15:03 -0400 Original-Received: from mithlond.arda (84.251.132.215) by jenni2.inet.fi (8.5.133) id 4DF73E850178C3EE; Mon, 18 Jul 2011 09:14:54 +0300 Original-Received: from dtw by mithlond.arda with local (Exim 4.72) (envelope-from ) id 1Qih6T-0000nZ-TF; Mon, 18 Jul 2011 09:14:53 +0300 In-Reply-To: (C. K. Kashyap's message of "Mon, 18 Jul 2011 11:06:53 +0530") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 195.156.147.13 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:81644 Archived-At: * 2011-07-18T11:06:53+05:30 * C. K. Kashyap wrote: > During search/replace, how can I use the evaluation of a lisp > expression as the substitution string? Let's read this part of the reference manual: C-h r m Regexp Replace RET > (while I was typing this, I got the idea of using the keyboard macro > to achieve this .... is there a better way though?) I think this is a good option.