From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.devel Subject: Re: please make line-move-visual nil Date: Tue, 26 May 2009 08:56:08 +0200 Message-ID: <87fxes5p4n.fsf@thinkpad.tsdh.de> References: <23521879.post@talk.nabble.com> <7b501d5c0905131659r1d79ec56s5a59f76e4713edf9@mail.gmail.com> <23532135.post@talk.nabble.com> <87tz3odq3l.fsf@iki.fi> <23538683.post@talk.nabble.com> <87eiuru24b.fsf@iki.fi> <39370.130.55.118.19.1242397867.squirrel@webmail.lanl.gov> <48914.130.55.118.19.1242592120.squirrel@webmail.lanl.gov> <66C6BA04EBCF4B6DAED69E851627D852@us.oracle.com> <54A5E41E3FD446F590AA580D90C5B518@us.oracle.com> <56DF3F5FED9445EAB0C666DE0904BAC2@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1243321074 11909 80.91.229.12 (26 May 2009 06:57:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 May 2009 06:57:54 +0000 (UTC) Cc: Drew Adams , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 26 08:57:47 2009 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1M8qbb-0003Z9-06 for ged-emacs-devel@m.gmane.org; Tue, 26 May 2009 08:57:47 +0200 Original-Received: from localhost ([127.0.0.1]:48646 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M8qba-0005y1-At for ged-emacs-devel@m.gmane.org; Tue, 26 May 2009 02:57:46 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M8qbU-0005vs-V5 for emacs-devel@gnu.org; Tue, 26 May 2009 02:57:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M8qbQ-0005um-5i for emacs-devel@gnu.org; Tue, 26 May 2009 02:57:40 -0400 Original-Received: from [199.232.76.173] (port=45696 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M8qbQ-0005uh-0X for emacs-devel@gnu.org; Tue, 26 May 2009 02:57:36 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:58715) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M8qbP-0000fw-HP for emacs-devel@gnu.org; Tue, 26 May 2009 02:57:35 -0400 Original-Received: from deliver.uni-koblenz.de ([141.26.64.15]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1M8qbO-0002TT-Le for emacs-devel@gnu.org; Tue, 26 May 2009 02:57:35 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by deliver.uni-koblenz.de (Postfix) with ESMTP id DAC03789AE78; Tue, 26 May 2009 08:57:23 +0200 (CEST) Original-Received: from deliver.uni-koblenz.de ([127.0.0.1]) by localhost (deliver.uni-koblenz.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 18558-01-7; Tue, 26 May 2009 08:57:18 +0200 (CEST) X-CHKRCPT: Envelopesender vrfy tassilo@member.fsf.org Original-Received: from thinkpad.tsdh.de (dhcp252.uni-koblenz.de [141.26.71.252]) by deliver.uni-koblenz.de (Postfix) with ESMTP id 33A65789B986; Tue, 26 May 2009 08:56:08 +0200 (CEST) Mail-Copies-To: never In-Reply-To: (Stefan Monnier's message of "Mon, 25 May 2009 17:14:33 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux) X-Virus-Scanned: amavisd-new at uni-koblenz.de X-Detected-Operating-System: by mx20.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:111104 Archived-At: Stefan Monnier writes: Hi Stefan, > The inflamed tone of this thread is one of the reasons why I think > more than ever that this setting is only a question of personal taste. I'm one of those who like the new behavior, but I agree that one might run into troubles with keyboard macros. IMO that's the only point where the new behavior has some disadvantages which are not personal preferences. And I also agree that there are other features which may screw up macros as well and nobody objected to them; unfortunately I don't know which ones -- so at least they didn't bite me till now. Ok, so what I wanted to propose instead some special handling of line-move-visual in keyboard macros is the addition of two hook `before-kbd-macro-hook' and `after-kbd-macro-hook' which are run before and after the definition and execution of keyboard macros. Then users can decide the value of line-move-visual and others depending on the current buffer's mode or the lunar phase in macros, no matter the default or user-specified value. I think that's a reasonable solution, much better than any special hardcoding or workarounds like `M-x toggle-word-wrap' before each macro definition/execution. Bye, Tassilo