From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: line-move-visual Date: Fri, 04 Jun 2010 10:51:54 -0400 Message-ID: References: <87pr07qjio.fsf@thinkpad.tsdh.de> <878w6vq7ew.fsf@thinkpad.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: dough.gmane.org 1291827515 21624 80.91.229.12 (8 Dec 2010 16:58:35 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 8 Dec 2010 16:58:35 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 08 17:58:31 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQNLb-00018k-2Q for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 17:58:31 +0100 Original-Received: from localhost ([127.0.0.1]:49083 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQNLa-0004ZI-Ge for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 11:58:30 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!news2.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe11.iad.POSTED!7564ea0f!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.emacs User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:DuktXTfvhe3TUJJPl5MFp+Oxvoo= Original-Lines: 26 Original-X-Complaints-To: abuse@UsenetServer.com Original-NNTP-Posting-Date: Fri, 04 Jun 2010 14:51:56 UTC Original-Xref: usenet.stanford.edu gnu.emacs.help:178632 comp.emacs:99899 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:75656 Archived-At: > IMO, that should be done automatically. But others argue, that a > keyboard macro should act exactly as doing the same stuff manually. Then There's a tension here, indeed: OT1H keyboard macros only record a sequence of keys, so they should really be equivalent to having the user hit the same keys in the same order, but OTOH they correspond to mechanical execution, i.e. to code, so they need simple&reliable semantics in order to work well. As Emacs commands tend to get more complex over time (more DWIMish, usually), we have more cases of commands that should really only ever be used interactively because they require the user to see the result before making the next step. This tension for keyboard macros is made evident if you ever try to turn a keyboard macro into a piece of Elisp code. A job which would seem simple enough that a little Elisp package could do it for you, right? I would encourage people to try and write up a new keyboard-macro package which would be closer to writing Elisp code: instead of recording keys, it would record commands, and would do so in a submode where DWIMish things (line-move-visual, abbrev-mode, auto-fill-mode, ... you name it) are disabled. Stefan