From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: joakim@verona.se Newsgroups: gmane.emacs.devel Subject: Re: please make line-move-visual nil Date: Tue, 26 May 2009 14:42:21 +0200 Message-ID: References: <48914.130.55.118.19.1242592120.squirrel@webmail.lanl.gov> <66C6BA04EBCF4B6DAED69E851627D852@us.oracle.com> <54A5E41E3FD446F590AA580D90C5B518@us.oracle.com> <56DF3F5FED9445EAB0C666DE0904BAC2@us.oracle.com> <87fxes5p4n.fsf@thinkpad.tsdh.de> <7b501d5c0905260437l2a14fd21nd319f4eeb4e3d972@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1243342262 9172 80.91.229.12 (26 May 2009 12:51:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 26 May 2009 12:51:02 +0000 (UTC) Cc: Tassilo Horn , emacs-devel@gnu.org, Stefan Monnier , Drew Adams , Deniz Dogan To: Lennart Borgman Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 26 14:50:54 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 1M8w7I-0001sV-8c for ged-emacs-devel@m.gmane.org; Tue, 26 May 2009 14:50:52 +0200 Original-Received: from localhost ([127.0.0.1]:40406 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M8w7H-0006he-It for ged-emacs-devel@m.gmane.org; Tue, 26 May 2009 08:50:51 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1M8w7B-0006go-UE for emacs-devel@gnu.org; Tue, 26 May 2009 08:50:45 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1M8w76-0006fF-Al for emacs-devel@gnu.org; Tue, 26 May 2009 08:50:44 -0400 Original-Received: from [199.232.76.173] (port=53586 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1M8w76-0006fA-4u for emacs-devel@gnu.org; Tue, 26 May 2009 08:50:40 -0400 Original-Received: from iwfs.imcode.com ([82.115.149.64]:40889 helo=gate.verona.se) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1M8w75-0001Vy-KM for emacs-devel@gnu.org; Tue, 26 May 2009 08:50:39 -0400 Original-Received: from localhost.localdomain (IDENT:1005@localhost [127.0.0.1]) by gate.verona.se (8.13.4/8.11.4) with ESMTP id n4QCoXbO025843; Tue, 26 May 2009 14:50:34 +0200 In-Reply-To: (Lennart Borgman's message of "Tue, 26 May 2009 14:24:00 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.91 (gnu/linux) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 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:111112 Archived-At: Lennart Borgman writes: > On Tue, May 26, 2009 at 1:37 PM, Deniz Dogan = wrote: >> 2009/5/26 Tassilo Horn : >>> 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. =A0Then 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 completely support this and in my opinion it's not too late to add >> these hooks. > > > I am not sure this is a good idea. > > I believe it might be better to investigate more how certain features > (like visual-line-move) should be handled under different > circumstances. Such circumstances is (as is pointed out here) macros, > but there are others two, like printing. And what about using the > affected functions in functions that might do the editing in another > window than the selected window? > > Even though I think like this I like visual-line-mode and think it > should be on by default. But thinking over the questions above and > documenting the behaviour is necessary in my opinion. I think this argument in fact supports the addition of hooks. Maybe you need to differentiate between recording hooks and execution hooks, but otherwise the idea seems good. It seems logical that youd want some generic mechanism to get Emacs into a state that is good for recording and executing macros.=20 > > --=20 Joakim Verona