From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: Rebinding of home and end keys Date: Fri, 12 Nov 2010 15:41:23 -0600 Message-ID: References: <15100.1289591832@gamaville.americas.hpqcorp.net> Mime-Version: 1.0 (Apple Message framework v936) Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Return-path: Received: from [140.186.70.92] (port=35332 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PH1Nf-0001dN-Pk for emacs-orgmode@gnu.org; Fri, 12 Nov 2010 16:42:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PH1Ne-000738-1w for emacs-orgmode@gnu.org; Fri, 12 Nov 2010 16:41:59 -0500 Received: from mail-yw0-f41.google.com ([209.85.213.41]:43948) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PH1Nd-00072p-VK for emacs-orgmode@gnu.org; Fri, 12 Nov 2010 16:41:58 -0500 Received: by ywi6 with SMTP id 6so316880ywi.0 for ; Fri, 12 Nov 2010 13:41:57 -0800 (PST) In-Reply-To: <15100.1289591832@gamaville.americas.hpqcorp.net> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: nicholas.dokos@hp.com Cc: Liam Healy , Org-mode mailing list On Nov 12, 2010, at 1:57 PM, Nick Dokos wrote: > Carsten Dominik wrote: > >> Hi, >> >> is there a git wizard who can find out when these lines were >> introduced in org.el. >> >> (define-key org-mode-map [home] 'org-beginning-of-line) >> (define-key org-mode-map [end] 'org-end-of-line) >> >> Maybe the commit message does explain why that was done? >> > > Probably not, but if anybody would know, it'd be you :-) Indeed, this commit message shows that I had absolutely no reason worth mentioning to do this - so I will just take it back. Actually I vaguely remember that on some systems [home] and [end] do indeed line motions, not buffer motions. I even vaguely remember that someone asked for this change. But I cannot find the message. And I don't think the bindings make sense, to I have taken them out. - Carsten > > ,---- > | commit 668e28f4d050b80686937c4b7b8617f16d887ba0 > | Author: Carsten Dominik > | Date: Fri Sep 25 08:03:23 2009 +0100 > | > | Bind and to the org-specific commands > | > | diff --git a/lisp/ChangeLog b/lisp/ChangeLog > | index 81326e4..ba96911 100755 > | --- a/lisp/ChangeLog > | +++ b/lisp/ChangeLog > | @@ -3,6 +3,7 @@ > | * org.el (org-special-ctrl-a/e): Improve documentation and > | customize type. > | (org-end-of-line): Don't jump to after the ellipsis. > | + (org-mode-map): Bind and as well. > | > | 2009-09-24 Carsten Dominik > | > | diff --git a/lisp/org.el b/lisp/org.el > | index a700c4d..b460420 100644 > | --- a/lisp/org.el > | +++ b/lisp/org.el > | @@ -16631,6 +16631,8 @@ beyond the end of the headline." > | > | (define-key org-mode-map "\C-a" 'org-beginning-of-line) > | (define-key org-mode-map "\C-e" 'org-end-of-line) > | +(define-key org-mode-map [home] 'org-beginning-of-line) > | +(define-key org-mode-map [end] 'org-end-of-line) > | > | (defun org-backward-sentence (&optional arg) > | "Go to beginning of sentence, or beginning of table field. > `---- > > BTW, the commands were > > grep -n '\[home]' lisp/org.el > to get a line number > > git blame -L 19010,1911 lisp/org.el > this fingers 668e28f4 > > git show 668e28f4 > > HTH, > Nick