From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: [Bug] Movement of C-a under visible-mode Date: Wed, 16 Jun 2010 17:25:20 -0400 Message-ID: <871vc63c1r.fsf@gollum.intra.norang.ca> References: <87r5k8iwjf.fsf@mundaneum.com> <87y6eg5y87.fsf@gollum.intra.norang.ca> <87631in227.fsf@mundaneum.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=46646 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OP07J-0007N3-Fq for emacs-orgmode@gnu.org; Wed, 16 Jun 2010 17:25:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OP07I-0001zh-4l for emacs-orgmode@gnu.org; Wed, 16 Jun 2010 17:25:49 -0400 Received: from plane.gmane.org ([80.91.229.3]:53936) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OP07H-0001z2-NW for emacs-orgmode@gnu.org; Wed, 16 Jun 2010 17:25:48 -0400 Received: from public by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1OP078-0002US-5f for emacs-orgmode@gnu.org; Wed, 16 Jun 2010 23:25:38 +0200 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: =?utf-8?Q?S=C3=A9bastien?= Vauban Cc: public-emacs-orgmode-mXXj517/zsQ@plane.gmane.org S=C3=A9bastien Vauban writes: > Hi Bernt, > > Bernt Hansen wrote: >> S=C3=A9bastien Vauban writes: >>> >>> I'm reporting some movement problem I've observed. When on any line, le= t'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] =3D> 0:45 >>> CLOCK: [2010-06-03 Thu 09:25]--[2010-06-03 Thu 10:20] =3D> 0:55 >>> CLOCK: [2010-06-11 Fri 09:15]--[2010-06-11 Fri 10:00] =3D> 0:45 >>> CLOCK: [2010-06-14 Mon 09:15]--[2010-06-14 Mon 10:10] =3D> 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