emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Thomas Morgan <tlm@ziiuu.com>
To: Bastien <bzg@gnu.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: Clock-in in agenda makes some headings with links disappear
Date: Sun, 25 May 2014 13:58:50 -0400	[thread overview]
Message-ID: <87vbstbuzp.fsf@azha.ziiuu.com> (raw)
In-Reply-To: <87mwe6f2b5.fsf@azha.ziiuu.com> (Thomas Morgan's message of "Sun, 25 May 2014 14:52:30 +0200")

[-- Attachment #1: Type: text/plain, Size: 158 bytes --]

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.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: 0001-Fix-bug-where-scheduling-in-agenda-hangs.patch --]
[-- Type: text/x-diff, Size: 1338 bytes --]

From 3181ee87106275bf947324b75054c6e2acb18ed1 Mon Sep 17 00:00:00 2001
From: Thomas Morgan <tlm@ziiuu.com>
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


[-- Attachment #3: Type: text/plain, Size: 608 bytes --]


Thomas Morgan <tlm@ziiuu.com> 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	other threads:[~2014-05-25 18:33 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-05-14  7:41 Clock-in in agenda makes some headings with links disappear Thomas Morgan
2014-05-15  9:21 ` Bastien
2014-05-16  2:59   ` Thomas Morgan
2014-05-19  3:29     ` Thomas Morgan
2014-05-21  2:25     ` Bastien
2014-05-21 15:35     ` Bastien
2014-05-22 10:51       ` Bastien
2014-05-25  9:27       ` Thomas Morgan
2014-05-25 12:52         ` Thomas Morgan
2014-05-25 17:58           ` Thomas Morgan [this message]
2014-05-26 13:03             ` Bastien
2014-05-26 13:02           ` Bastien

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

  List information: https://www.orgmode.org/

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

  git send-email \
    --in-reply-to=87vbstbuzp.fsf@azha.ziiuu.com \
    --to=tlm@ziiuu.com \
    --cc=bzg@gnu.org \
    --cc=emacs-orgmode@gnu.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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).