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 10:27:43 +0300 Message-ID: <87tya8yyhc.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 1311751680 31992 80.91.229.12 (27 Jul 2011 07:28:00 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 27 Jul 2011 07:28:00 +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 09:27:54 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 1QlyX3-0001PF-Rb for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Jul 2011 09:27:53 +0200 Original-Received: from localhost ([::1]:57162 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlyX3-00017h-B8 for geh-help-gnu-emacs@m.gmane.org; Wed, 27 Jul 2011 03:27:53 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]:49325) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlyWz-00017O-Bg for help-gnu-emacs@gnu.org; Wed, 27 Jul 2011 03:27:50 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QlyWy-0001KD-HD for help-gnu-emacs@gnu.org; Wed, 27 Jul 2011 03:27:49 -0400 Original-Received: from mta-out.inet.fi ([195.156.147.13]:56237 helo=jenni2.inet.fi) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QlyWy-0001JM-74 for help-gnu-emacs@gnu.org; Wed, 27 Jul 2011 03:27:48 -0400 Original-Received: from mithlond.arda (84.251.132.215) by jenni2.inet.fi (8.5.133) id 4DF73E8501E53058; Wed, 27 Jul 2011 10:27:44 +0300 Original-Received: from dtw by mithlond.arda with local (Exim 4.72) (envelope-from ) id 1QlyWt-0000wm-Dt; Wed, 27 Jul 2011 10:27:43 +0300 In-Reply-To: (C. K. Kashyap's message of "Wed, 27 Jul 2011 11:01:18 +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:81804 Archived-At: * 2011-07-27T11:01:18+05:30 * C. K. Kashyap wrote: > Hi, > I have a situation where I need to "beautify" a log file quite often. I need > to do the same set of steps. > What is the recommended best practices for the following approaches - > 1. Keyboard Macro > What is the way to save the macro to disk? Do we open a new buffer (or a > buffer that contains all keyboard macros) and then insert it there and save > it? See the info node C-h i g (emacs) Save Keyboard Macro RET > 2. Scripting > Whats the recommended way to get started with scripting? Do I open up a > buffer and start typing? I dont seem to get function name completion in a > new buffer. "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