all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Bernt Hansen <bernt@norang.ca>
To: "Sébastien Vauban"
	<public-wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@plane.gmane.org>
Cc: public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org
Subject: Re: [Bug] Movement of C-a under visible-mode
Date: Wed, 16 Jun 2010 17:25:20 -0400	[thread overview]
Message-ID: <871vc63c1r.fsf@gollum.intra.norang.ca> (raw)
In-Reply-To: 87631in227.fsf@mundaneum.com



Sébastien Vauban <wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@public.gmane.org>
writes:

> Hi Bernt,
>
> Bernt Hansen wrote:
>> Sébastien Vauban writes:
>>>
>>> I'm reporting some movement problem I've observed. When on any line, let's
>>> say the last clock one:
>>>
>>> - `C-e' moves the cursor to the end of it
>>> - `C-a' moves the cursor at the level of `LOGBOOK'.
>>>
>>> --8<---------------cut here---------------start------------->8---
>>> **** Emails and News
>>>      :PROPERTIES:
>>>      :ID:       62849012-ae7a-4885-a552-b34516d3fd06
>>>      :Effort:   1:00
>>>      :END:
>>>      :LOGBOOK:
>>>      CLOCK: [2010-06-01 Tue 08:35]--[2010-06-01 Tue 09:20] =>  0:45
>>>      CLOCK: [2010-06-03 Thu 09:25]--[2010-06-03 Thu 10:20] =>  0:55
>>>      CLOCK: [2010-06-11 Fri 09:15]--[2010-06-11 Fri 10:00] =>  0:45
>>>      CLOCK: [2010-06-14 Mon 09:15]--[2010-06-14 Mon 10:10] =>  0:55
>>>      :END:
>>> --8<---------------cut here---------------end--------------->8---
>>>
>>> This is -- at least -- true whenever `M-x visible-mode' is enabled.
>>
>> I saw something similar to this recently but for me C-a would go back to the
>> headline. Restarting emacs fixed it for me.
>
> I'm experiencing always, when enabling visible-mode. Even after an Emacs
> restart.
>
> I must admit it's not always going to the LOGBOOK line, even mainly there.
>
> Anyway, `C-a' is not anymore symmetric to `C-e'. Do you agree it's a
> bug?

Yes it feels wrong.  The problem seems to be that if you are visiting a
clocking line from log mode in the agenda you end up inside the folded
drawer the clock line is on.  I think what should really happen is that
line should be revealed.  If you didn't enable visible mode then C-a
would go to the beginning of the drawer which makes sense to me -- and
seems to be what is it currently doing.

I think we just need to reveal the clock drawer data if you visit it
from the agenda and that should fix the problem you are experiencing.

The other option is change C-a so that it notices that visible mode is
enabled and just navigates on the current line.

-Bernt

  reply	other threads:[~2010-06-16 21:25 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-06-15  7:29 [Bug] Movement of C-a under visible-mode Sébastien Vauban
2010-06-15 11:31 ` Bernt Hansen
2010-06-16 20:40   ` Sébastien Vauban
2010-06-16 21:25     ` Bernt Hansen [this message]
2010-06-25  6:23 ` Carsten Dominik
2010-06-28  8:52   ` Sébastien Vauban

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=871vc63c1r.fsf@gollum.intra.norang.ca \
    --to=bernt@norang.ca \
    --cc=public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org \
    --cc=public-wxhgmqzgwmuf-geNee64TY+gS+FvcfC7Uqw@plane.gmane.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.