Matt Lundin <m...@imapmail.org> 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