unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Rodney Lorrimar <dev@rodney.id.au>
To: Aaron Ecay <aaronecay@gmail.com>, notmuch@notmuchmail.org
Subject: Re: Infinite loop in emacs interface
Date: Tue, 17 Jan 2012 19:35:58 +0100	[thread overview]
Message-ID: <87y5t6kwhd.fsf@boekje.home> (raw)
In-Reply-To: <m2k44qb573.fsf@gmail.com>

On Tue, 17 Jan 2012 12:37:52 -0500, Aaron Ecay <aaronecay@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)

  reply	other threads:[~2012-01-17 18:33 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-01-17 17:17 Infinite loop in emacs interface Rodney Lorrimar
2012-01-17 17:37 ` Aaron Ecay
2012-01-17 18:35   ` Rodney Lorrimar [this message]
2012-01-17 22:44   ` Rodney Lorrimar
2012-01-23 14:26     ` Florian Friesdorf
2012-01-23 14:38       ` Florian Friesdorf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://notmuchmail.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87y5t6kwhd.fsf@boekje.home \
    --to=dev@rodney.id.au \
    --cc=aaronecay@gmail.com \
    --cc=notmuch@notmuchmail.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).