From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.help Subject: Re: strange behaviour in keyboard macro Date: Mon, 31 Jul 2017 06:40:15 +0200 Message-ID: <874ltt2p8w.fsf@jane> References: <20170730055106.GA2292@ordenador31> <867eyqo06i.fsf@zoho.com> <20170730100135.GB2056@ordenador31> <86379e3umd.fsf@zoho.com> <877eyp3cf0.fsf@jane> <868tj538ck.fsf@zoho.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1501476060 5507 195.159.176.226 (31 Jul 2017 04:41:00 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 31 Jul 2017 04:41:00 +0000 (UTC) User-Agent: mu4e 0.9.19; emacs 26.0.50 Cc: help-gnu-emacs@gnu.org To: Emanuel Berg Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jul 31 06:40:54 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dc2Vc-0000pl-EC for geh-help-gnu-emacs@m.gmane.org; Mon, 31 Jul 2017 06:40:48 +0200 Original-Received: from localhost ([::1]:57368 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dc2Vi-0000U7-2V for geh-help-gnu-emacs@m.gmane.org; Mon, 31 Jul 2017 00:40:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:58481) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dc2VH-0000Tr-1s for help-gnu-emacs@gnu.org; Mon, 31 Jul 2017 00:40:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dc2VE-0003JA-0J for help-gnu-emacs@gnu.org; Mon, 31 Jul 2017 00:40:27 -0400 Original-Received: from mail.mojserwer.eu ([195.110.48.8]:58717) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dc2VD-0003J4-PL for help-gnu-emacs@gnu.org; Mon, 31 Jul 2017 00:40:23 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by mail.mojserwer.eu (Postfix) with ESMTP id 60460E6AAD; Mon, 31 Jul 2017 06:40:21 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at mail.mojserwer.eu Original-Received: from mail.mojserwer.eu ([127.0.0.1]) by localhost (mail.mojserwer.eu [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id SjwjKVjmmjD5; Mon, 31 Jul 2017 06:40:19 +0200 (CEST) Original-Received: from localhost (static-dwadziewiec-jedenpiec7.echostar.pl [109.232.29.157]) by mail.mojserwer.eu (Postfix) with ESMTPSA id E6B32E6AA8; Mon, 31 Jul 2017 06:40:18 +0200 (CEST) In-reply-to: <868tj538ck.fsf@zoho.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 195.110.48.8 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:113917 Archived-At: On 2017-07-30, at 23:47, Emanuel Berg wrote: > Marcin Borkowski wrote: > >>>> Yes, it's not very long. But I wanted to do >>>> it quickly without programming. Then, >>>> what's the point of having keyboard macros? >>> >>> None whatsoever for people like you who know >>> how to program. >> >> Speed. > > Not in the medium or long run as you get better > with Elisp, and keyboard macros are much more > difficult to adapt/debug. > > There is the ELPA and MELPA with readily > transferable Elisp for a reason. But where do > you guys get your keyboard macros? > The port block? A typical use case: I need to fix/edit/add something in a configuration file, using the format VARIABLE=value, for 4-5 variables with similar names (like PREFIX_SOMETHING=value, where value is somehow based on SOMETHING). I record a keybord macro, press F4 3-4 times, bam, done, in 10 seconds. (Recently, I started to use multiple cursors for that kind of stuff, too, but keyboard macros are a tad more powerful, I guess.) > Learn to type really, really fast. Use Elisp > whenever it isn't fast enough. Speed kills. Typing fast would be fine, but keyboard macros don't make mistakes. -- Marcin Borkowski