emacs-devel
[Top][All Lists]
Advanced

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

Re: Speed of keyboard macro execution?


From: Eli Zaretskii
Subject: Re: Speed of keyboard macro execution?
Date: Thu, 10 Dec 2015 22:43:45 +0200

> From: David Kastrup <address@hidden>
> Cc: address@hidden,  address@hidden,  address@hidden
> Date: Thu, 10 Dec 2015 21:09:59 +0100
> 
>     C-n runs the command next-line (found in global-map), which is an
>     interactive compiled Lisp function in ‘simple.el’.
> 
>     This function is for interactive use only;
>     in Lisp code use ‘forward-line’ instead.
> 
> There is a reason this function is for interactive use only.  And
> replaying a keyboard macro is not interactive.
> 
>     If the variable ‘line-move-visual’ is non-nil, this command moves
>     by display lines.  Otherwise, it moves by buffer lines, without
>     taking variable-width characters or continued lines into account.
> 
> And this is _exactly_ why line-move-visual should be nil during macro
> recording/replay because otherwise _no_ _useful_ behavior for
> non-interactive use results.

But then recording a macro and replaying it will do different things,
no?




reply via email to

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