From mboxrd@z Thu Jan 1 00:00:00 1970 From: Matt Lundin Subject: Re: org-agenda-do-date-late and emacs freeze Date: Sun, 02 Mar 2014 22:21:18 -0600 Message-ID: <87lhwrq5dt.fsf@fastmail.fm> References: <20140218123848.GA9094@pedroche.uni-erfurt.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33182) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WKKNZ-0002Vf-R9 for emacs-orgmode@gnu.org; Sun, 02 Mar 2014 23:21:31 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WKKNU-0006wS-Jx for emacs-orgmode@gnu.org; Sun, 02 Mar 2014 23:21:25 -0500 Received: from out3-smtp.messagingengine.com ([66.111.4.27]:58596) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WKKNU-0006wO-Fn for emacs-orgmode@gnu.org; Sun, 02 Mar 2014 23:21:20 -0500 Received: from archeee (unknown [50.172.132.15]) by mail.messagingengine.com (Postfix) with ESMTPA id A6B5968020B for ; Sun, 2 Mar 2014 23:21:19 -0500 (EST) In-Reply-To: <20140218123848.GA9094@pedroche.uni-erfurt.de> (Igor Sosa Mayor's message of "Tue, 18 Feb 2014 13:38:48 +0100") 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 Igor Sosa Mayor writes: > Hi, > > is there a way to debug what is happening after pressing some key > combination. > > I have the problem that in the agenda view when I press M-+ to run the > function org-agenda-do-date-late, sometimes (and this is the problme: it > happens randomly, not always), emacs gets freezed and I have to press > C-g to cancel. Interestingly when I press C-g I see the date on the > right side updated and everything continues working OK... Does it happen when you have filtered the agenda? If so, then I can confirm this bug... I am using... - emacs 24.3.1 - org 8.2.5h ...on... Linux box 3.13.5-1-ARCH #1 SMP PREEMPT Sun Feb 23 00:10:07 CET 2014 i686 GNU/Linux Emacs freezes as you describe when whenever I attempt to reschedule an item in a *filtered* agenda that has invisible lines between it and the next visible agenda item. This is the crucial condition: there must be invisible text in the agenda buffer immediately following the agenda item being rescheduled. Take the following agenda: --8<---------------cut here---------------start------------->8--- Day-agenda (W09): Sunday 2 March 2014 inbox: Scheduled: Call Jack :phone: inbox: Scheduled: Call Jill :phone: inbox: Scheduled: Run up a hill :errands: inbox: Scheduled: Call the hospital :phone: --8<---------------cut here---------------end--------------->8--- So long as the agenda is unfiltered, then org-agenda-do-date-later works fine. If I filter the agenda by the tag "phone"... --8<---------------cut here---------------start------------->8--- Day-agenda (W09): Sunday 2 March 2014 inbox: Scheduled: Call Jack :phone: inbox: Scheduled: Call Jill :phone: inbox: Scheduled: Call the hospital :phone: --8<---------------cut here---------------end--------------->8--- ...then org-agenda-do-date-later causes Emacs to go into an infinite loop on "Call Jill" but *not* on the other phone items. This is because of the invisible "Run up a hill" that comes after "Call Jill." I have tested this several times with emacs -Q and can replicate it each time. I previously documented the issue in this thread: - http://comments.gmane.org/gmane.emacs.orgmode/75288 Matt