From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: C K Kashyap Newsgroups: gmane.emacs.help Subject: Re: Couple of automation questions Date: Wed, 27 Jul 2011 13:41:29 +0530 Message-ID: References: <87tya8yyhc.fsf@mithlond.arda> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=90e6ba2124577214cc04a90898e2 X-Trace: dough.gmane.org 1311754303 14325 80.91.229.12 (27 Jul 2011 08:11:43 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 27 Jul 2011 08:11:43 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Teemu Likonen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jul 27 10:11: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 1QlzDP-00071d-TQ for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Jul 2011 10:11:40 +0200 Original-Received: from localhost ([::1]:55046 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlzDO-0000gb-I0 for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Jul 2011 04:11:38 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:56713) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlzDK-0000gT-8j for help-gnu-emacs@gnu.org; Wed, 27 Jul 2011 04:11:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QlzDJ-0001RS-DT for help-gnu-emacs@gnu.org; Wed, 27 Jul 2011 04:11:34 -0400 Original-Received: from mail-iy0-f169.google.com ([209.85.210.169]:50698) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlzDJ-0001R5-AP for help-gnu-emacs@gnu.org; Wed, 27 Jul 2011 04:11:33 -0400 Original-Received: by iyb14 with SMTP id 14so1895249iyb.0 for ; Wed, 27 Jul 2011 01:11:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=QFzY4+WUskJPgRurOb2llKVR4vxZMLE5g/V3kXu7iFI=; b=OiHK9Oirii7LSof9kXSyG+bNQ8yTbhzQprTcsCcIhvXrXRj+YSd1EoLbAxu+3J9OIA m3NYMOW+3ks2ZiKwy6DjtvMI4O722DxRGwcI0sFTzLkO6nxSgxfYlwlM4USs1mrwbbQC s81KG+O3HNzXcUhg7rZmPWPpLmzwfsTjtEP0g= Original-Received: by 10.42.149.136 with SMTP id w8mr303258icv.482.1311754289288; Wed, 27 Jul 2011 01:11:29 -0700 (PDT) Original-Received: by 10.42.172.198 with HTTP; Wed, 27 Jul 2011 01:11:29 -0700 (PDT) In-Reply-To: <87tya8yyhc.fsf@mithlond.arda> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-Received-From: 209.85.210.169 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:81805 Archived-At: --90e6ba2124577214cc04a90898e2 Content-Type: text/plain; charset=ISO-8859-1 > > > "Scripting" in Emacs is actually programming in Emacs Lisp. To get > started with Emacs Lisp I suggest reading "An Introduction to > Programming in Emacs Lisp" and of course the Emacs Lisp reference > manual. > > C-h i g (eintr) Top RET > C-h i g (elisp) Top RET > 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? Regards, Kashyap --90e6ba2124577214cc04a90898e2 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable

"Scripting" in Emacs is actually programming in Emacs Lisp.= To get
started with Emacs Lisp I suggest reading "An Introduction to
Programming in Emacs Lisp" and of course the Emacs Lisp reference
manual.

=A0 =A0C-h i g (eintr) Top RET
=A0 =A0C-h i g (elisp) Top RET

Thanks Teemu ... I am aware of elisp= . What I am looking for are general tips on how one goes about actually wri= ting 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) (ya= nk))

but is that the recommended way or would writing the sc= ript in the main buffer and executing it with C-x-e better ... or is there = an even better way?

Regards,
Kashyap --90e6ba2124577214cc04a90898e2--