emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Interaction between org-special-ctrl-a/e and visual-line-mode in Org 9.2?
@ 2019-01-18 18:55 John Hutchinson
  2019-01-18 21:31 ` Nicolas Goaziou
  0 siblings, 1 reply; 5+ messages in thread
From: John Hutchinson @ 2019-01-18 18:55 UTC (permalink / raw)
  To: emacs-orgmode

Under Org 9.1.14 (Emacs 26.1) with org-special-ctrl-a/e set to t, and 
visual-line-mode enabled, C-a and C-e worked as expected, switching 
between the actual begin / end and the "meaningful" begin / end of 
heading lines on repetitive key strokes.

This seems broken in 9.2, moving only to the actual begin / end.

Disabling visual-line-mode restores the prior, correct behavior.

I did not see anything that seemed related to this in the 9.2 release 
notes, but I may have overlooked something, or it may be a bug.

Is anyone else noticing this?

Regards,
=John

-- 
John Hutchinson
JohnRHutchinson@att.net

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Interaction between org-special-ctrl-a/e and visual-line-mode in Org 9.2?
  2019-01-18 18:55 Interaction between org-special-ctrl-a/e and visual-line-mode in Org 9.2? John Hutchinson
@ 2019-01-18 21:31 ` Nicolas Goaziou
  2019-01-21 14:40   ` John Hutchinson
  0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Goaziou @ 2019-01-18 21:31 UTC (permalink / raw)
  To: John Hutchinson; +Cc: emacs-orgmode

Hello,

John Hutchinson <johnrhutchinson@att.net> writes:

> Under Org 9.1.14 (Emacs 26.1) with org-special-ctrl-a/e set to t, and
> visual-line-mode enabled, C-a and C-e worked as expected, switching
> between the actual begin / end and the "meaningful" begin / end of
> heading lines on repetitive key strokes.
>
> This seems broken in 9.2, moving only to the actual begin / end.
>
> Disabling visual-line-mode restores the prior, correct behavior.
>
> I did not see anything that seemed related to this in the 9.2 release
> notes, but I may have overlooked something, or it may be a bug.
>
> Is anyone else noticing this?

What is C-e bound to?

You probably need to restart org-mode after visual-line-mode has been
launched.

Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Interaction between org-special-ctrl-a/e and visual-line-mode in Org 9.2?
  2019-01-18 21:31 ` Nicolas Goaziou
@ 2019-01-21 14:40   ` John Hutchinson
  2019-01-21 19:56     ` Nicolas Goaziou
  0 siblings, 1 reply; 5+ messages in thread
From: John Hutchinson @ 2019-01-21 14:40 UTC (permalink / raw)
  To: emacs-orgmode

Hi, Nicolas:

Under org 9.1 (which works as expected), C-e is bound to "org-end-of-line".

In org 9.2 (which does not work as expected) it's bound to 
"end-of-visual-line".

Restarting org-mode,  via "org-reload" or via "C-c C-c" in the initial 
lines, does not change this behavior.


Hope this helps, and many thanks for all your efforts for the org community.

Regards,
=John

On 1/18/2019 16:31, Nicolas Goaziou wrote:
> Hello,
>
> John Hutchinson <johnrhutchinson@att.net> writes:
>
>> Under Org 9.1.14 (Emacs 26.1) with org-special-ctrl-a/e set to t, and
>> visual-line-mode enabled, C-a and C-e worked as expected, switching
>> between the actual begin / end and the "meaningful" begin / end of
>> heading lines on repetitive key strokes.
>>
>> This seems broken in 9.2, moving only to the actual begin / end.
>>
>> Disabling visual-line-mode restores the prior, correct behavior.
>>
>> I did not see anything that seemed related to this in the 9.2 release
>> notes, but I may have overlooked something, or it may be a bug.
>>
>> Is anyone else noticing this?
> What is C-e bound to?
>
> You probably need to restart org-mode after visual-line-mode has been
> launched.
>
> Regards,
>
-- 
John Hutchinson
JohnRHutchinson@att.net

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Interaction between org-special-ctrl-a/e and visual-line-mode in Org 9.2?
  2019-01-21 14:40   ` John Hutchinson
@ 2019-01-21 19:56     ` Nicolas Goaziou
  2019-01-22 21:42       ` John Hutchinson
  0 siblings, 1 reply; 5+ messages in thread
From: Nicolas Goaziou @ 2019-01-21 19:56 UTC (permalink / raw)
  To: John Hutchinson; +Cc: emacs-orgmode

Hello,

John Hutchinson <johnrhutchinson@att.net> writes:

> Under org 9.1 (which works as expected), C-e is bound to "org-end-of-line".
>
> In org 9.2 (which does not work as expected) it's bound to
> "end-of-visual-line".

In Org 9.1, `org-end-of-line' is mapped to `C-e' whereas in Org 9.2, it
remaps [move-end-of-line], whatever its binding is. The issue is that
`visual-line-mode' does the same, hence the conflict.

Remapping [move-end-of-line] doesn't force `C-e' on the user, so the
current way has its advantages.

> Restarting org-mode,  via "org-reload" or via "C-c C-c" in the initial
> lines, does not change this behavior.

I think `M-x org-mode' should be sufficient to bind `C-e' back to
`org-end-of-line'. It is also possible to use `visual-line-mode-hook'
to always set

I'm not sure how to fix this from Org, tho.

Thoughts?

Regards,

-- 
Nicolas Goaziou

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Interaction between org-special-ctrl-a/e and visual-line-mode in Org 9.2?
  2019-01-21 19:56     ` Nicolas Goaziou
@ 2019-01-22 21:42       ` John Hutchinson
  0 siblings, 0 replies; 5+ messages in thread
From: John Hutchinson @ 2019-01-22 21:42 UTC (permalink / raw)
  To: emacs-orgmode

Thanks for helping me understand this.

For now, I think I'll just add a hook to "org-mode-hook" that rebinds 
"C-a" and "C-e" to their "org-" instances.

I'm not sure that this is a totally satisfactory solution, but I think 
it will work for me in the short-term at least.

Thanks again for your help,
=John

On 1/21/2019 14:56, Nicolas Goaziou wrote:
> Hello,
>
> John Hutchinson<johnrhutchinson@att.net>  writes:
>
>> Under org 9.1 (which works as expected), C-e is bound to "org-end-of-line".
>>
>> In org 9.2 (which does not work as expected) it's bound to
>> "end-of-visual-line".
> In Org 9.1, `org-end-of-line' is mapped to `C-e' whereas in Org 9.2, it
> remaps [move-end-of-line], whatever its binding is. The issue is that
> `visual-line-mode' does the same, hence the conflict.
>
> Remapping [move-end-of-line] doesn't force `C-e' on the user, so the
> current way has its advantages.
>
>> Restarting org-mode,  via "org-reload" or via "C-c C-c" in the initial
>> lines, does not change this behavior.
> I think `M-x org-mode' should be sufficient to bind `C-e' back to
> `org-end-of-line'. It is also possible to use `visual-line-mode-hook'
> to always set
>
> I'm not sure how to fix this from Org, tho.
>
> Thoughts?
>
> Regards,
>
-- 
John Hutchinson
JohnRHutchinson@att.net

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-01-22 21:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-18 18:55 Interaction between org-special-ctrl-a/e and visual-line-mode in Org 9.2? John Hutchinson
2019-01-18 21:31 ` Nicolas Goaziou
2019-01-21 14:40   ` John Hutchinson
2019-01-21 19:56     ` Nicolas Goaziou
2019-01-22 21:42       ` John Hutchinson

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).