From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Speed of keyboard macro execution? Date: Thu, 10 Dec 2015 22:48:24 +0200 Message-ID: <8337va9giv.fsf@gnu.org> References: <20151209163954.0cefcc7f@jabberwock.cb.piermont.com> <87si3bcltu.fsf@isaac.fritz.box> <20151209180343.5a67c0e7@jabberwock.cb.piermont.com> <83r3iu9rvp.fsf@gnu.org> <20151210120051.6be8201f@jabberwock.cb.piermont.com> <87k2omciy2.fsf@isaac.fritz.box> <20151210123312.39c417c9@jabberwock.cb.piermont.com> <83lh929omw.fsf@gnu.org> <87k2omta6x.fsf@fencepost.gnu.org> <83d1ue9lns.fsf@gnu.org> <87fuzat7ot.fsf@fencepost.gnu.org> <837fkm9ire.fsf@gnu.org> <20151210151631.3b07c461@jabberwock.cb.piermont.com> <87twnqrqgx.fsf@fencepost.gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1449780534 27004 80.91.229.3 (10 Dec 2015 20:48:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 10 Dec 2015 20:48:54 +0000 (UTC) Cc: emacs-devel@gnu.org, perry@piermont.com To: David Kastrup Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Dec 10 21:48:45 2015 Return-path: Envelope-to: ged-emacs-devel@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 1a788q-0006s1-HR for ged-emacs-devel@m.gmane.org; Thu, 10 Dec 2015 21:48:44 +0100 Original-Received: from localhost ([::1]:44430 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a788p-0005L2-Jq for ged-emacs-devel@m.gmane.org; Thu, 10 Dec 2015 15:48:43 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45357) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a788Z-0005Kh-9G for emacs-devel@gnu.org; Thu, 10 Dec 2015 15:48:28 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1a788Y-0004P2-3E for emacs-devel@gnu.org; Thu, 10 Dec 2015 15:48:27 -0500 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:38066) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1a788T-0004OT-Cv; Thu, 10 Dec 2015 15:48:21 -0500 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0NZ500L00T5SIP00@a-mtaout23.012.net.il>; Thu, 10 Dec 2015 22:48:20 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([84.94.185.246]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NZ500LFRTSJF860@a-mtaout23.012.net.il>; Thu, 10 Dec 2015 22:48:20 +0200 (IST) In-reply-to: <87twnqrqgx.fsf@fencepost.gnu.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.175 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:196066 Archived-At: > From: David Kastrup > Date: Thu, 10 Dec 2015 21:36:14 +0100 > Cc: Eli Zaretskii , emacs-devel@gnu.org > > John Wiegley writes: > > >>>>>> Perry E Metzger writes: > > > >> On Thu, 10 Dec 2015 22:00:05 +0200 Eli Zaretskii wrote: > >>> > From: David Kastrup > >>> > So I think it would make excellent sense to disable visual > >>> > positioning modes while recording and replaying keyboard macros. > >>> > >>> No, I think you are wrong. Think C-n and C-p again. > > > > Recording a macro has the value that it does what the user would have > > done, just automated. If you disable visual positioning, then in many > > cases it no longer does what I would have done manually. > > Visual positioning makes no sense without visual feedback. Can you show > a single example of a task to be done by a keyboard macro where visual > positioning would _help_ achieve that task rather than sabotage it? Even if I agree with you, it doesn't help to fix the _interactive_ use case of pressing C-p. With very long lines, that can take an eternity. _That_ is what we should strive to fix. > > Just one? For your argument's sake? I certainly get the ugliness of > changing a setting during macro record/replay. No question about that. > But the alternative is keyboard macros being essentially useless because > their effects on the text become unpredictable. > > Yes, they are then perfectly equivalent to pressing the same keys > outside of macro recording/replay, but since the pressing of the keys is > done based on visual feedback, there is just no point in recording key > presses during visual movement mode and replay them at some other buffer > position, or even the same buffer position but with different visuals. > > In this case, I prefer "wrong" to "useless". > > -- > David Kastrup > >