emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] [BUG] Infinite loop in org-agenda-show-new-time


From: Nick Dokos
Subject: Re: [O] [BUG] Infinite loop in org-agenda-show-new-time
Date: Sat, 10 Aug 2013 11:06:44 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Matt Lundin <address@hidden> writes:

> ...
> In other words, within the agenda buffer, move-to-column and
> move-end-of-line will move to the point to the end of the entire
> invisible region. That is why removing the local binding of
> buffer-invisibility-spec to nil triggers this bug, because when that
> variable is nil, the function org-agenda-show-new-time temporarily
> treats the agenda buffer as if it were visible (i.e., it ignores the
> invisible overlay).
>

I haven't been able to work on the problem, but assuming that your
diagnosis above is correct, perhaps the thing to do is to bind
buffeer-invisibility-spec to nil inside org-move-to-column:

--8<---------------cut here---------------start------------->8---
(defun org-move-to-column (column &optional force buffer)
  (let ((buffer-invisibility-spec nil))
        (if (featurep 'xemacs)
            (org-xemacs-without-invisibility (move-to-column column force 
buffer))
          (move-to-column column force))))
--8<---------------cut here---------------end--------------->8---

What do you think?
-- 
Nick




reply via email to

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