From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Lennart Borgman (gmail)" Newsgroups: gmane.emacs.devel Subject: Re: Visual line movement inconsistency Date: Fri, 29 Aug 2008 09:54:55 +0200 Message-ID: <48B7AB4F.50709@gmail.com> References: <874p55z20j.fsf@thinkpad.tsdh.de> <87prnsmywh.fsf@catnip.gol.com> <87myiws30g.fsf@thinkpad.tsdh.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1219996518 30347 80.91.229.12 (29 Aug 2008 07:55:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Aug 2008 07:55:18 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 29 09:56:12 2008 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 1KYyq3-000558-NK for ged-emacs-devel@m.gmane.org; Fri, 29 Aug 2008 09:56:11 +0200 Original-Received: from localhost ([127.0.0.1]:42699 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KYyp5-0007XN-7P for ged-emacs-devel@m.gmane.org; Fri, 29 Aug 2008 03:55:11 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KYyoz-0007WY-SB for emacs-devel@gnu.org; Fri, 29 Aug 2008 03:55:05 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KYyow-0007WD-TL for emacs-devel@gnu.org; Fri, 29 Aug 2008 03:55:05 -0400 Original-Received: from [199.232.76.173] (port=34329 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KYyow-0007WA-OK for emacs-devel@gnu.org; Fri, 29 Aug 2008 03:55:02 -0400 Original-Received: from mx20.gnu.org ([199.232.41.8]:62112) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KYyow-0003wH-2y for emacs-devel@gnu.org; Fri, 29 Aug 2008 03:55:02 -0400 Original-Received: from ch-smtp01.sth.basefarm.net ([80.76.149.212]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1KYyou-0000ZL-Aj for emacs-devel@gnu.org; Fri, 29 Aug 2008 03:55:00 -0400 Original-Received: from c83-254-151-87.bredband.comhem.se ([83.254.151.87]:61011 helo=[127.0.0.1]) by ch-smtp01.sth.basefarm.net with esmtp (Exim 4.68) (envelope-from ) id 1KYyot-0006s1-3V for emacs-devel@gnu.org; Fri, 29 Aug 2008 09:54:59 +0200 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.9) Gecko/20071031 Thunderbird/2.0.0.9 Mnenhy/0.7.5.666 In-Reply-To: <87myiws30g.fsf@thinkpad.tsdh.de> X-Enigmail-Version: 0.95.7 X-Antivirus: avast! (VPS 080828-0, 2008-08-28), Outbound message X-Antivirus-Status: Clean X-Originating-IP: 83.254.151.87 X-Scan-Result: No virus found in message 1KYyot-0006s1-3V. X-Scan-Signature: ch-smtp01.sth.basefarm.net 1KYyot-0006s1-3V afa7d21330be1ca72c8ebed838e21e0d X-detected-kernel: by mx20.gnu.org: Linux 2.6? (barebone, rare!) X-detected-kernel: by monty-python.gnu.org: 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:103141 Tassilo Horn wrote: > Miles Bader writes: > > Hi Miles, > >>> But is this inconsistent behavior of C-n/C-p and C-a/C-e really the >>> intended default? I think it would be better if C-a/C-e respected >>> the value of `line-move-visual', too. Then the default would be like >>> visual-line-mode without word-wrapping. >> It was discussed and the current behavior seemed to be the consensus >> choice. >> >> I agree that it can be confusing, but I think it's much more dangerous >> to change the default behavior of C-a/C-e, because people depend a lot >> more on their precise behavior > > I see. But at least there should be some way to move to the > beginning/end of a visual line. Maybe an option or simply some new > binding. I have been using something like this for a while (defun ourcomments-move-beginning-of-line(arg) "Move point to beginning of line or indentation. See `beginning-of-line' for ARG. If `physical-line-mode' is on then the visual line beginning is first tried." (interactive "p") (let ((pos (point))) (call-interactively 'beginning-of-line arg) (when (= pos (point)) (if (= 0 (current-column)) (skip-chars-forward " \t") (backward-char) (beginning-of-line))))) (put 'ourcomments-move-beginning-of-line 'CUA 'move)