From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: [BUG] Infinite loop in org-agenda-show-new-time Date: Sat, 10 Aug 2013 11:06:44 -0400 Message-ID: <87mwopinzv.fsf@gmail.com> References: <87zjswb0vq.fsf@fastmail.fm> <87siyojc2c.fsf@gmail.com> <87fvun6gku.fsf@fastmail.fm> <87ob9bkd4c.fsf@gmail.com> <87txj2lo0j.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40680) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V8Al1-0001a0-Ak for emacs-orgmode@gnu.org; Sat, 10 Aug 2013 11:07:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V8Aks-0005nF-LM for emacs-orgmode@gnu.org; Sat, 10 Aug 2013 11:07:07 -0400 Received: from plane.gmane.org ([80.91.229.3]:37525) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V8Aks-0005n2-FC for emacs-orgmode@gnu.org; Sat, 10 Aug 2013 11:06:58 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1V8Ako-0001Z3-H0 for emacs-orgmode@gnu.org; Sat, 10 Aug 2013 17:06:54 +0200 Received: from pool-108-7-96-134.bstnma.fios.verizon.net ([108.7.96.134]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 10 Aug 2013 17:06:54 +0200 Received: from ndokos by pool-108-7-96-134.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 10 Aug 2013 17:06:54 +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: emacs-orgmode@gnu.org Matt Lundin 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