From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Filipp Gunbin Newsgroups: gmane.emacs.help Subject: Re: Emacs Book Vs Emacs Manuals Date: Mon, 29 Jun 2015 16:03:09 +0300 Message-ID: References: <554C9356.5000204@gmail.com> <20150508125314086261755@bob.proulx.com> <87bnhuc177.fsf@mbork.pl> <55561B9E.4070101@arlsoft.com> <87y4kpfvct.fsf@debian.uxu> <87mvzmv7ef.fsf@nl106-137-147.student.uu.se> <871tgycjae.fsf@mbork.pl> <87lhf53v4t.fsf@nl106-137-147.student.uu.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1435583024 16339 80.91.229.3 (29 Jun 2015 13:03:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 29 Jun 2015 13:03:44 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jun 29 15:03:34 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Z9Yij-0001GA-Jq for geh-help-gnu-emacs@m.gmane.org; Mon, 29 Jun 2015 15:03:33 +0200 Original-Received: from localhost ([::1]:42201 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9Yii-0005jV-Ir for geh-help-gnu-emacs@m.gmane.org; Mon, 29 Jun 2015 09:03:32 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58989) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9YiT-0005gt-2h for help-gnu-emacs@gnu.org; Mon, 29 Jun 2015 09:03:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z9YiP-0003Dv-HF for help-gnu-emacs@gnu.org; Mon, 29 Jun 2015 09:03:16 -0400 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:39421) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9YiP-0003DM-8Y for help-gnu-emacs@gnu.org; Mon, 29 Jun 2015 09:03:13 -0400 Original-Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.nyi.internal (Postfix) with ESMTP id 806DA200A5 for ; Mon, 29 Jun 2015 09:03:11 -0400 (EDT) Original-Received: from frontend2 ([10.202.2.161]) by compute1.internal (MEProxy); Mon, 29 Jun 2015 09:03:11 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=fastmail.fm; h= content-type:date:from:in-reply-to:message-id:mime-version :references:subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=tISEE iGGaB4yVDa7a5Z2EmERUZc=; b=hdKoOIjWPEWWZwa8YGW1dkdWXZ4xeLzBWQpx6 SYwd9vcyorlCURx7vd+X/JMi8mLOcWmlhzq718mKhkRV3iNv5vqTL3mh4la3x7nY Vtok0ktm38Wt9h6I5JXY1eaVwFoEqdd7j0kVhhm0EBIGLzUJBtitYGMTO5xvvz8/ My99us= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=tISEEiGGaB4yVDa7a5Z2EmERUZc=; b=ic+PV sv/8fYTOj58LritlJeRj7TVLxcbyROKvOFjTKFcgylIo2N0Pec8XYfiQ3nLdRMNv PdoaPUWcft7oCQXg7M7xZZaPVntRRawIA36idKlzfyxGFxLLl21t4G8+VvWVmo6P lS2StS2VUympCwCZFtmNa9G0eJ//05Iat+ONaY= X-Sasl-enc: y2ytFGja6rKzE5J0L1L2yYT+mcpJKZ8NhdZYwl9JavZM 1435582991 Original-Received: from fgunbin.local (unknown [94.25.218.10]) by mail.messagingengine.com (Postfix) with ESMTPA id 184A768013A for ; Mon, 29 Jun 2015 09:03:10 -0400 (EDT) In-Reply-To: <87lhf53v4t.fsf@nl106-137-147.student.uu.se> (Emanuel Berg's message of "Sat, 27 Jun 2015 19:42:58 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (darwin) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 66.111.4.27 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:105280 Archived-At: On 27/06/2015 19:42 +0200, Emanuel Berg wrote: > Rusi writes: > >>> %% (replace-regexp "^\\(.*&.*&\\).*&\\(.*\\)" >>> "\\1\\2") >> >> 51 chars (ignoring that things like ^& are shift >> chords) >> >> F3 C-s & RET C-SPC C-s C-s RET C-w C-a C-n F4 >> >> 16 keystrokes counting each chord as 1 1/2 keys > > Elisp is by definition better because everything you > can do with keyboard macros, you can do with Elisp - > but not even remotely so the other way around. Macros can be viewed as an Emacs-specific way of writing programs - by using the benefits of an interactive editor. Resulting code is not that editable, but in my practice I didn't usually have to edit that code, when it's easier just to re-record a similar macros, if needed. > When you have done something with Elisp, you can save > that for future use. What it is is clearly defined and > easy to read and edit. Not only that, if it is > modular, as it should, you can use it for other, > unexpected things in the future. Why then use awk when you always can write equivalent program in C? Filipp