* Rebinding of home and end keys
@ 2010-11-10 15:50 Liam Healy
2010-11-12 19:46 ` Carsten Dominik
0 siblings, 1 reply; 7+ messages in thread
From: Liam Healy @ 2010-11-10 15:50 UTC (permalink / raw)
To: Org-mode mailing list
I have in my .emacs
(global-set-key [(home)] 'beginning-of-buffer)
(global-set-key [(end)] 'end-of-buffer)
Starting with a recent (last few months) org-mode version, the home
and end keys are bound to be beginning of end of line when in org
files. This happens even if I do my keybinding after I load org.
Can this rebinding be removed, or at least made optional? I do not
see why these keys are bound at all; these are regular emacs functions
(not org-mode functions) so emacs (by default) and the user (by
resetting the keys globally) can establish themselves what they want.
Org-mode version 7.02trans (release_7.3.10.g7f79)
Thank you.
Liam
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Rebinding of home and end keys
2010-11-10 15:50 Rebinding of home and end keys Liam Healy
@ 2010-11-12 19:46 ` Carsten Dominik
2010-11-12 19:57 ` Liam Healy
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Carsten Dominik @ 2010-11-12 19:46 UTC (permalink / raw)
To: Liam Healy; +Cc: Org-mode mailing list
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?
Thanks.
- Carsten
On Nov 10, 2010, at 9:50 AM, Liam Healy wrote:
> I have in my .emacs
>
> (global-set-key [(home)] 'beginning-of-buffer)
> (global-set-key [(end)] 'end-of-buffer)
>
> Starting with a recent (last few months) org-mode version, the home
> and end keys are bound to be beginning of end of line when in org
> files. This happens even if I do my keybinding after I load org.
> Can this rebinding be removed, or at least made optional? I do not
> see why these keys are bound at all; these are regular emacs functions
> (not org-mode functions) so emacs (by default) and the user (by
> resetting the keys globally) can establish themselves what they want.
>
> Org-mode version 7.02trans (release_7.3.10.g7f79)
>
> Thank you.
>
> Liam
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Rebinding of home and end keys
2010-11-12 19:46 ` Carsten Dominik
@ 2010-11-12 19:57 ` Liam Healy
2010-11-12 21:23 ` Achim Gratz
2010-11-12 21:06 ` Jambunathan K
[not found] ` <15100.1289591832@gamaville.americas.hpqcorp.net>
2 siblings, 1 reply; 7+ messages in thread
From: Liam Healy @ 2010-11-12 19:57 UTC (permalink / raw)
To: Carsten Dominik; +Cc: Org-mode mailing list
Carsten,
git blame lisp/org.el
668e28f4 (Carsten Dominik 2009-09-25 08:03:23 +0100 19025)
(define-key org-mode-map [home] 'org-beginning-of-line)
668e28f4 (Carsten Dominik 2009-09-25 08:03:23 +0100 19026)
(define-key org-mode-map [end] 'org-end-of-line)
Liam
On Fri, Nov 12, 2010 at 2:46 PM, Carsten Dominik
<carsten.dominik@gmail.com> 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?
>
> Thanks.
>
> - Carsten
>
> On Nov 10, 2010, at 9:50 AM, Liam Healy wrote:
>
>> I have in my .emacs
>>
>> (global-set-key [(home)] 'beginning-of-buffer)
>> (global-set-key [(end)] 'end-of-buffer)
>>
>> Starting with a recent (last few months) org-mode version, the home
>> and end keys are bound to be beginning of end of line when in org
>> files. This happens even if I do my keybinding after I load org.
>> Can this rebinding be removed, or at least made optional? I do not
>> see why these keys are bound at all; these are regular emacs functions
>> (not org-mode functions) so emacs (by default) and the user (by
>> resetting the keys globally) can establish themselves what they want.
>>
>> Org-mode version 7.02trans (release_7.3.10.g7f79)
>>
>> Thank you.
>>
>> Liam
>>
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Please use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Rebinding of home and end keys
2010-11-12 19:46 ` Carsten Dominik
2010-11-12 19:57 ` Liam Healy
@ 2010-11-12 21:06 ` Jambunathan K
2010-11-12 21:21 ` Jambunathan K
[not found] ` <15100.1289591832@gamaville.americas.hpqcorp.net>
2 siblings, 1 reply; 7+ messages in thread
From: Jambunathan K @ 2010-11-12 21:06 UTC (permalink / raw)
To: Carsten Dominik; +Cc: Liam Healy, Org-mode mailing list
Carsten Dominik <carsten.dominik@gmail.com> writes:
> 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?
>
git blames the following commit:
commit 668e28f4d050b80686937c4b7b8617f16d887ba0
Author: Carsten Dominik <carsten.dominik@gmail.com>
Date: Fri Sep 25 08:03:23 2009 +0100
Bind <home> and <end> to the org-specific commands
Jambunathan K.
> Thanks.
>
> - Carsten
>
> On Nov 10, 2010, at 9:50 AM, Liam Healy wrote:
>
>> I have in my .emacs
>>
>> (global-set-key [(home)] 'beginning-of-buffer)
>> (global-set-key [(end)] 'end-of-buffer)
>>
>> Starting with a recent (last few months) org-mode version, the home
>> and end keys are bound to be beginning of end of line when in org
>> files. This happens even if I do my keybinding after I load org.
>> Can this rebinding be removed, or at least made optional? I do not
>> see why these keys are bound at all; these are regular emacs functions
>> (not org-mode functions) so emacs (by default) and the user (by
>> resetting the keys globally) can establish themselves what they want.
>>
>> Org-mode version 7.02trans (release_7.3.10.g7f79)
>>
>> Thank you.
>>
>> Liam
>>
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Please use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>
>
> _______________________________________________
> Emacs-orgmode mailing list
> Please use `Reply All' to send replies to the list.
> Emacs-orgmode@gnu.org
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Rebinding of home and end keys
2010-11-12 21:06 ` Jambunathan K
@ 2010-11-12 21:21 ` Jambunathan K
0 siblings, 0 replies; 7+ messages in thread
From: Jambunathan K @ 2010-11-12 21:21 UTC (permalink / raw)
To: Carsten Dominik; +Cc: Liam Healy, Org-mode mailing list
Jambunathan K <kjambunathan@gmail.com> writes:
> Carsten Dominik <carsten.dominik@gmail.com> writes:
>
>> 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?
>>
>
> git blames the following commit:
>
> commit 668e28f4d050b80686937c4b7b8617f16d887ba0
> Author: Carsten Dominik <carsten.dominik@gmail.com>
> Date: Fri Sep 25 08:03:23 2009 +0100
>
> Bind <home> and <end> to the org-specific commands
Here are the URLs:
http://repo.or.cz/w/org-mode.git/shortlog?pg=31
http://repo.or.cz/w/org-mode.git/commit/668e28f4d050b80686937c4b7b8617f16d887ba0
Full log also is not very elaborate:
http://repo.or.cz/w/org-mode.git/log/668e28f4d050b80686937c4b7b8617f16d887ba0
Jambunathan K.
>
> Jambunathan K.
>
>> Thanks.
>>
>> - Carsten
>>
>> On Nov 10, 2010, at 9:50 AM, Liam Healy wrote:
>>
>>> I have in my .emacs
>>>
>>> (global-set-key [(home)] 'beginning-of-buffer)
>>> (global-set-key [(end)] 'end-of-buffer)
>>>
>>> Starting with a recent (last few months) org-mode version, the home
>>> and end keys are bound to be beginning of end of line when in org
>>> files. This happens even if I do my keybinding after I load org.
>>> Can this rebinding be removed, or at least made optional? I do not
>>> see why these keys are bound at all; these are regular emacs functions
>>> (not org-mode functions) so emacs (by default) and the user (by
>>> resetting the keys globally) can establish themselves what they want.
>>>
>>> Org-mode version 7.02trans (release_7.3.10.g7f79)
>>>
>>> Thank you.
>>>
>>> Liam
>>>
>>> _______________________________________________
>>> Emacs-orgmode mailing list
>>> Please use `Reply All' to send replies to the list.
>>> Emacs-orgmode@gnu.org
>>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
>>
>>
>> _______________________________________________
>> Emacs-orgmode mailing list
>> Please use `Reply All' to send replies to the list.
>> Emacs-orgmode@gnu.org
>> http://lists.gnu.org/mailman/listinfo/emacs-orgmode
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Rebinding of home and end keys
2010-11-12 19:57 ` Liam Healy
@ 2010-11-12 21:23 ` Achim Gratz
0 siblings, 0 replies; 7+ messages in thread
From: Achim Gratz @ 2010-11-12 21:23 UTC (permalink / raw)
To: emacs-orgmode
Moreover, here's the commit message for that change:
--8<---------------cut here---------------start------------->8---
commit 668e28f4d050b80686937c4b7b8617f16d887ba0
Author: Carsten Dominik <carsten.dominik@gmail.com>
Date: Fri Sep 25 08:03:23 2009 +0100
Bind <home> and <end> to the org-specific commands
--8<---------------cut here---------------end--------------->8---
Achim.
--
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+
Factory and User Sound Singles for Waldorf Q+, Q and microQ:
http://Synth.Stromeko.net/Downloads.html#WaldorfSounds
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: Rebinding of home and end keys
[not found] ` <15100.1289591832@gamaville.americas.hpqcorp.net>
@ 2010-11-12 21:41 ` Carsten Dominik
0 siblings, 0 replies; 7+ messages in thread
From: Carsten Dominik @ 2010-11-12 21:41 UTC (permalink / raw)
To: nicholas.dokos; +Cc: Liam Healy, Org-mode mailing list
On Nov 12, 2010, at 1:57 PM, Nick Dokos wrote:
> Carsten Dominik <carsten.dominik@gmail.com> 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 <carsten.dominik@gmail.com>
> | Date: Fri Sep 25 08:03:23 2009 +0100
> |
> | Bind <home> and <end> 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 <home> and <end> as well.
> |
> | 2009-09-24 Carsten Dominik <carsten.dominik@gmail.com>
> |
> | 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
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2010-11-12 21:42 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-11-10 15:50 Rebinding of home and end keys Liam Healy
2010-11-12 19:46 ` Carsten Dominik
2010-11-12 19:57 ` Liam Healy
2010-11-12 21:23 ` Achim Gratz
2010-11-12 21:06 ` Jambunathan K
2010-11-12 21:21 ` Jambunathan K
[not found] ` <15100.1289591832@gamaville.americas.hpqcorp.net>
2010-11-12 21:41 ` Carsten Dominik
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).