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: Tue, 06 Aug 2013 17:35:25 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Matt Lundin <address@hidden> writes:

> Nick Dokos <address@hidden> writes:
>
>> So you revert that commit and the infloop goes away? I looked at the
>> functions briefly and I don't understand how this commit could affect
>> what move-to-column does.
>
> Just to confirm: Did you try rescheduling with the agenda buffer
> filtered only to the home tag using the sample file I provided? To
> trigger the bug one must attempt to reschedule an item when 1) the
> agenda is filtered by tags and 2) the item being changed contains
> invisible lines immediately beneath it (b/c of the filtering). Both
> these conditions are necessary to cause the bug on my end.
>

Just a quick follow-up to this question: I believe I followed your
recipe exactly except for loading a minimal startup to set load-path and
to do initial setup (C-c a etc). The org file I used was just as in your
mail (just now, I changed the dates to today's date before trying the
recipe again). I do

     M-x org-agenda
     <
     a
     / <TAB> home <RET>

(I have to hit <TAB> before typing "home" to get the tag - not sure
that's different or whether it matters), then arrow down to the D TODO and

     M-x org-agenda-date-later

The result is shown in the attached screenshot: success afaict -
certainly no infinite loops.

Attachment: Screenshot from 2013-08-06 17:23:43.png
Description: Screenshot after rescheduling item D

Here's my minimal.org.el file:

--8<---------------cut here---------------start------------->8---
;;; -*- mode: emacs-lisp -*-
(add-to-list 'load-path (expand-file-name "~/src/emacs/org/org-mode/lisp"))
(add-to-list 'load-path (expand-file-name 
"~/src/emacs/org/org-mode/contrib/lisp"))

(add-to-list 'auto-mode-alist '("\\.\\(org\\|org_archive\\|txt\\)$" . org-mode))

(require 'org)

(setq debug-on-error t)
(setq debug-on-quit t)
(setq eval-expression-print-length nil)
(setq eval-expression-print-level nil)

(global-set-key "\C-cl" 'org-store-link)
(global-set-key "\C-ca" 'org-agenda)
--8<---------------cut here---------------end--------------->8---

here's the foo.org:

--8<---------------cut here---------------start------------->8---
* TODO A                                                               :home:
  SCHEDULED: <2013-08-06 Tue>
* TODO B                                                               :work:
  SCHEDULED: <2013-08-06 Mon>
* TODO C                                                               :play:
  SCHEDULED: <2013-08-06 Mon>
* TODO D                                                               :home:
  SCHEDULED: <2013-08-06 Tue>
* TODO E                                                               :work:
  SCHEDULED: <2013-08-06 Mon>
* TODO F                                                               :play:
  SCHEDULED: <2013-08-06 Mon>
* TODO G                                                               :home:
  SCHEDULED: <2013-08-06 Mon>
* TODO H                                                               :work:
  SCHEDULED: <2013-08-06 Mon>
* TODO I                                                               :play:
  SCHEDULED: <2013-08-06 Mon>
--8<---------------cut here---------------end--------------->8---

and here's the command line:

    emacs -Q -l minimal.org.el foo.org

Can we get some more votes perhaps? If people try the above recipe
(subject to any corrections Matt might have), does emacs go into an
infinite loop?

I haven't read through the rest of your mail yet (let alone tried
anything) but I'll try to do that later tonight.

-- 
Nick

reply via email to

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