[Top][All Lists]

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

Re: [O] Clock-in in agenda makes some headings with links disappear

From: Thomas Morgan
Subject: Re: [O] Clock-in in agenda makes some headings with links disappear
Date: Sun, 25 May 2014 13:58:50 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

Here is a small patch for this bug.  It works as far as I can tell
though it's possible that it introduces other problems or that there's
a better solution.

>From 3181ee87106275bf947324b75054c6e2acb18ed1 Mon Sep 17 00:00:00 2001
From: Thomas Morgan <address@hidden>
Date: Sun, 25 May 2014 13:40:35 -0400
Subject: [PATCH] Fix bug where scheduling in agenda hangs.

* lisp/org-agenda.el (org-agenda-show-new-time): Disable invisibility
  before moving to the column where the new time will be shown.
  Otherwise org-move-to-column may skip past several filtered lines,
  and though the cursor appears at the end of the current line, point
  is actually on the newline before the next visible line.

 lisp/org-agenda.el |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lisp/org-agenda.el b/lisp/org-agenda.el
index 1be2bdb..8e2a627 100644
--- a/lisp/org-agenda.el
+++ b/lisp/org-agenda.el
@@ -9176,7 +9176,8 @@ Called with a universal prefix arg, show the priority 
instead of setting it."
       (while (not (bobp))
        (when (equal marker (org-get-at-bol 'org-marker))
          (remove-text-properties (point-at-bol) (point-at-eol) '(display))
-         (org-move-to-column (- (window-width) (length stamp)) t)
+         (let ((buffer-invisibility-spec nil))
+           (org-move-to-column (- (window-width) (length stamp)) t))
           (if (featurep 'xemacs)
              ;; Use `duplicable' property to trigger undo recording
               (let ((ex (make-extent nil nil))

Thomas Morgan <address@hidden> writes:

> Hi, Bastien, 
> Here is a recipe for the bug where scheduling hangs.
> 1. Change the load path entry in `setup.el'.
> 2. Start Emacs with `emacs -Q -l setup.el'.
> 3. Open a TODO list with `M-x org-todo-list'.
> 4. Filter out tag with `C-u / TAB foo RET'.
> 5. Move point to first item with `C-s todo RET'.
> 6. Schedule it for today with `C-c C-s RET'.
> An indication that it was scheduled appears in the echo area:
> ,----
> | Scheduled to <2014-05-25 Sun>
> `----
> But the calendar window remains until you press `C-g'.
> Best,
> Thomas

reply via email to

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