From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Morgan Subject: Re: Clock-in in agenda makes some headings with links disappear Date: Sun, 25 May 2014 13:58:50 -0400 Message-ID: <87vbstbuzp.fsf@azha.ziiuu.com> References: <87egzw24es.fsf@algol.ziiuu.com> <87zjijtn1q.fsf@bzg.ath.cx> <87vbt6l98n.fsf@algol.ziiuu.com> <87ioozkuv8.fsf@bzg.ath.cx> <87egziryw3.fsf@azha.ziiuu.com> <87mwe6f2b5.fsf@azha.ziiuu.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:53162) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WodEw-0002Wx-Iw for emacs-orgmode@gnu.org; Sun, 25 May 2014 14:33:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WodEo-00010i-L8 for emacs-orgmode@gnu.org; Sun, 25 May 2014 14:33:46 -0400 Received: from mail-qc0-f178.google.com ([209.85.216.178]:53997) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WodEo-00010V-HQ for emacs-orgmode@gnu.org; Sun, 25 May 2014 14:33:38 -0400 Received: by mail-qc0-f178.google.com with SMTP id l6so10870410qcy.23 for ; Sun, 25 May 2014 11:33:38 -0700 (PDT) In-Reply-To: <87mwe6f2b5.fsf@azha.ziiuu.com> (Thomas Morgan's message of "Sun, 25 May 2014 14:52:30 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Bastien Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain 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. --=-=-= Content-Type: text/x-diff Content-Disposition: inline; filename=0001-Fix-bug-where-scheduling-in-agenda-hangs.patch >From 3181ee87106275bf947324b75054c6e2acb18ed1 Mon Sep 17 00:00:00 2001 From: Thomas Morgan 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. TINYFIX --- 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)) -- 1.7.10.4 --=-=-= Content-Type: text/plain Thomas Morgan 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 --=-=-=--