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: Couple of automation questions Date: Wed, 27 Jul 2011 11:28:54 +0300 Message-ID: <87pqkwyvnd.fsf@mithlond.arda> References: <87tya8yyhc.fsf@mithlond.arda> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1311755349 20173 80.91.229.12 (27 Jul 2011 08:29:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 27 Jul 2011 08:29:09 +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 Wed Jul 27 10:29:05 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 1QlzUG-00044K-D4 for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Jul 2011 10:29:04 +0200 Original-Received: from localhost ([::1]:53260 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlzUF-0005I6-VU for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Jul 2011 04:29:03 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:51508) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlzUB-0005Hf-Sk for help-gnu-emacs@gnu.org; Wed, 27 Jul 2011 04:29:00 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QlzUB-0005I5-4Q for help-gnu-emacs@gnu.org; Wed, 27 Jul 2011 04:28:59 -0400 Original-Received: from mta-out.inet.fi ([195.156.147.13]:34298 helo=jenni1.inet.fi) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlzUA-0005Ht-S1 for help-gnu-emacs@gnu.org; Wed, 27 Jul 2011 04:28:59 -0400 Original-Received: from mithlond.arda (84.251.132.215) by jenni1.inet.fi (8.5.133) id 4DF73B2801E51F27; Wed, 27 Jul 2011 11:28:57 +0300 Original-Received: from dtw by mithlond.arda with local (Exim 4.72) (envelope-from ) id 1QlzU6-0001P8-Oo; Wed, 27 Jul 2011 11:28:54 +0300 In-Reply-To: (C. K. Kashyap's message of "Wed, 27 Jul 2011 13:41:29 +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:81806 Archived-At: * 2011-07-27T13:41:29+05:30 * C. K. Kashyap wrote: > Thanks Teemu ... I am aware of elisp. What I am looking for are > general tips on how one goes about actually writing them in real time > ( while editing some text) ... for example, if I do a kill and want to > yank 10 times, What I'd do is M-:(dotimes (i 10) (yank)) > > but is that the recommended way or would writing the script in the > main buffer and executing it with C-x-e better ... or is there an even > better way? There are options. I'd say that do what you feel is comfortable to you. I'll just add another option: write and define an interactive function in the *scratch* buffer and then execute it (M-x ...) in the target buffer.