emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Cursor jumps unexpectedly when calling org-agenda-todo


From: Matt Lundin
Subject: [O] Cursor jumps unexpectedly when calling org-agenda-todo
Date: Fri, 24 Jan 2014 20:50:11 -0600
User-agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3 (gnu/linux)

Hi Bastien,

Commit e5259962f61c398d84d43d33c29a6f021c9b326a introduced a change
(perhaps unintentional) in the function org-agenda-todo. Line 8870
added another...

(setq col (current-column))

Is this supposed to be there?

The problem is that this is called in the actual org buffer at the
location of org-marker, thus overriding the earlier value set in line
8757. 

Thus, when org-agenda-todo attempts places the cursor with
org-move-to-column (line 8796), it does so on the basis of the position
in the org file rather than the original position in the agenda. In
other words, no matter what column the cursor is at in the agenda buffer
(e.g., 0, 28, 30), it gets moved to the column of org-marker in the org
buffer (e.g., 13).

For instance, a cursor here in the agenda...

  inbox:      Scheduled:  TODO Do something                            :errands:
^

gets moved to here after calling org-agenda-todo...

  inbox:      Scheduled:  TODO Do something                            :errands:
            ^

Thanks,
Matt



reply via email to

[Prev in Thread] Current Thread [Next in Thread]