Infinite loop in emacs interface
Rodney Lorrimar
dev at rodney.id.au
Tue Jan 17 10:35:58 PST 2012
On Tue, 17 Jan 2012 12:37:52 -0500, Aaron Ecay <aaronecay at gmail.com> wrote:
> After converting the mbox file to Maildir and adding it to my mailstore,
> I cannot reproduce the loop. (The versions of notmuch and emacs I used
> are close to the ones you have, but not an exact match, so it may be
> something subtle about those versions. I can investigate
> more carefully if it seems like this is the case.)
Hi Aaron,
That's a pity. I am using Julien Danjou's emacs-snapshot package for
debian and actually I only noticed the infinite loop on this thread
after restarting emacs some unknown time after the package was
upgraded. The package was upgraded from 20120105 to 20120111.
I haven't been using this snapshot of emacs for very long, so possibly
the problem might occur with other threads. To test this thread, I
copied it out of my maildirs with mutt, deleted the original messages,
ran "notmuch new", copied the mbox thread back into my maildirs, then
ran "notmuch new" again, and the problem was still there.
> If you do:
> M-x set-variable RET debug-on-quit RET t RET
> then trigger the loop and press C-g, you should get a buffer showing a
> backtrace of the lisp stack. What does that say?
I copied 4 backtraces which appear below. I pressed the 'a' key when
viewing the thread, then C-g.
They were run with notmuch git commit efa5d6cb32. Since then I went back
to 0.11 because it seems like the reply function stopped working.
Cheers,
Rodney
Debugger entered--Lisp error: (quit)
mapc((lambda (del-tag) (setq result-tags (delete del-tag result-tags))) ("inbox"))
(let ((result-tags (copy-sequence current-tags))) (mapc (lambda (del-tag) (setq result-tags (delete del-tag result-tags))) del-tags) result-tags)
notmuch-show-del-tags-worker(nil ("inbox"))
(let* ((current-tags (notmuch-show-get-tags)) (new-tags (notmuch-show-del-tags-worker current-tags toremove))) (unless (equal current-tags new-tags) (apply (quote notmuch-tag) (notmuch-show-get-message-id) (mapcar (lambda (s) (concat "-" s)) toremove)) (notmuch-show-set-tags new-tags)))
notmuch-show-remove-tag("inbox")
(progn (notmuch-show-remove-tag "inbox") (not (not (notmuch-show-goto-message-next))))
(while (progn (notmuch-show-remove-tag "inbox") (not (not (notmuch-show-goto-message-next)))))
(catch (quote --cl-block-nil--) (while (progn (notmuch-show-remove-tag "inbox") (not (not (notmuch-show-goto-message-next))))) nil)
(cl-block-wrapper (catch (quote --cl-block-nil--) (while (progn (notmuch-show-remove-tag "inbox") (not (not (notmuch-show-goto-message-next))))) nil))
(block nil (while (progn (notmuch-show-remove-tag "inbox") (not (not (notmuch-show-goto-message-next))))) nil)
(loop do (notmuch-show-remove-tag "inbox") until (not (notmuch-show-goto-message-next)))
notmuch-show-archive-thread-internal(t)
notmuch-show-archive-thread()
call-interactively(notmuch-show-archive-thread nil nil)
Debugger entered--Lisp error: (quit)
notmuch-show-move-to-message-top()
(save-excursion (notmuch-show-move-to-message-top) (get-text-property (point) :notmuch-message-properties))
notmuch-show-get-message-properties()
(or props (notmuch-show-get-message-properties))
(let ((props (or props (notmuch-show-get-message-properties)))) (plist-get props prop))
notmuch-show-get-prop(:tags)
notmuch-show-get-tags()
(let* ((current-tags (notmuch-show-get-tags)) (new-tags (notmuch-show-del-tags-worker current-tags toremove))) (unless (equal current-tags new-tags) (apply (quote notmuch-tag) (notmuch-show-get-message-id) (mapcar (lambda (s) (concat "-" s)) toremove)) (notmuch-show-set-tags new-tags)))
notmuch-show-remove-tag("inbox")
(progn (notmuch-show-remove-tag "inbox") (not (not (notmuch-show-goto-message-next))))
(while (progn (notmuch-show-remove-tag "inbox") (not (not (notmuch-show-goto-message-next)))))
(catch (quote --cl-block-nil--) (while (progn (notmuch-show-remove-tag "inbox") (not (not (notmuch-show-goto-message-next))))) nil)
(cl-block-wrapper (catch (quote --cl-block-nil--) (while (progn (notmuch-show-remove-tag "inbox") (not (not (notmuch-show-goto-message-next))))) nil))
(block nil (while (progn (notmuch-show-remove-tag "inbox") (not (not (notmuch-show-goto-message-next))))) nil)
(loop do (notmuch-show-remove-tag "inbox") until (not (notmuch-show-goto-message-next)))
notmuch-show-archive-thread-internal(t)
notmuch-show-archive-thread()
call-interactively(notmuch-show-archive-thread nil nil)
Debugger entered--Lisp error: (quit)
notmuch-show-move-to-message-top()
(save-excursion (notmuch-show-move-to-message-top) (get-text-property (point) :notmuch-message-properties))
notmuch-show-get-message-properties()
(or props (notmuch-show-get-message-properties))
(let ((props (or props (notmuch-show-get-message-properties)))) (plist-get props prop))
notmuch-show-get-prop(:tags)
notmuch-show-get-tags()
(let* ((current-tags (notmuch-show-get-tags)) (new-tags (notmuch-show-del-tags-worker current-tags toremove))) (unless (equal current-tags new-tags) (apply (quote notmuch-tag) (notmuch-show-get-message-id) (mapcar (lambda (s) (concat "-" s)) toremove)) (notmuch-show-set-tags new-tags)))
notmuch-show-remove-tag("inbox")
(progn (notmuch-show-remove-tag "inbox") (not (not (notmuch-show-goto-message-next))))
(while (progn (notmuch-show-remove-tag "inbox") (not (not (notmuch-show-goto-message-next)))))
(catch (quote --cl-block-nil--) (while (progn (notmuch-show-remove-tag "inbox") (not (not (notmuch-show-goto-message-next))))) nil)
(cl-block-wrapper (catch (quote --cl-block-nil--) (while (progn (notmuch-show-remove-tag "inbox") (not (not (notmuch-show-goto-message-next))))) nil))
(block nil (while (progn (notmuch-show-remove-tag "inbox") (not (not (notmuch-show-goto-message-next))))) nil)
(loop do (notmuch-show-remove-tag "inbox") until (not (notmuch-show-goto-message-next)))
notmuch-show-archive-thread-internal(t)
notmuch-show-archive-thread()
call-interactively(notmuch-show-archive-thread nil nil)
Debugger entered--Lisp error: (quit)
(while (not (setq r (get-text-property (point) :notmuch-message-extent))) (backward-char))
(save-excursion (while (not (setq r (get-text-property (point) :notmuch-message-extent))) (backward-char)))
(let (r) (save-excursion (while (not (setq r (get-text-property (point) :notmuch-message-extent))) (backward-char))) r)
notmuch-show-message-extent()
(cdr (notmuch-show-message-extent))
notmuch-show-message-bottom()
(goto-char (notmuch-show-message-bottom))
notmuch-show-move-to-message-bottom()
(let ((start (point))) (notmuch-show-move-to-message-bottom) (if (not (eobp)) t (goto-char start) nil))
notmuch-show-goto-message-next()
(not (notmuch-show-goto-message-next))
(not (not (notmuch-show-goto-message-next)))
(progn (notmuch-show-remove-tag "inbox") (not (not (notmuch-show-goto-message-next))))
(while (progn (notmuch-show-remove-tag "inbox") (not (not (notmuch-show-goto-message-next)))))
(catch (quote --cl-block-nil--) (while (progn (notmuch-show-remove-tag "inbox") (not (not (notmuch-show-goto-message-next))))) nil)
(cl-block-wrapper (catch (quote --cl-block-nil--) (while (progn (notmuch-show-remove-tag "inbox") (not (not (notmuch-show-goto-message-next))))) nil))
(block nil (while (progn (notmuch-show-remove-tag "inbox") (not (not (notmuch-show-goto-message-next))))) nil)
(loop do (notmuch-show-remove-tag "inbox") until (not (notmuch-show-goto-message-next)))
notmuch-show-archive-thread-internal(t)
notmuch-show-archive-thread()
call-interactively(notmuch-show-archive-thread nil nil)
More information about the notmuch
mailing list