help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: strange behaviour in keyboard macro


From: Marcin Borkowski
Subject: Re: strange behaviour in keyboard macro
Date: Mon, 31 Jul 2017 06:40:15 +0200
User-agent: mu4e 0.9.19; emacs 26.0.50

On 2017-07-30, at 23:47, Emanuel Berg <moasen@zoho.com> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]