Re: performance in emacs displaying a huge thread
On 2021-09-21 21:27, Tomi Ollila writes: > I'd be interested to know if changing max-lisp-eval-depth to a larger value > made difference. > > e.g (set max-lisp-eval-depth 1600) Thank you for the suggestion. I tried with 1600, and I get a different error (and the numbers are larger now). Debugger entered--Lisp error: (error "Variable binding depth exceeds max-specpdl-size") notmuch-show-insert-tree((nil ((nil ((nil ((nil ...))) 394) #f(compiled-function (tree) #)((nil ((nil ((nil ((nil ... mapc(#f(compiled-function (tree) #) ((nil ((nil ((nil (... notmuch-show-insert-thread(((nil ((nil ((nil (...))) 394) notmuch-show-insert-tree((nil ((nil ((nil ((nil ...))) 393) #f(compiled-function (tree) #)((nil ((nil ((nil ((nil ... mapc(#f(compiled-function (tree) #) ((nil ((nil ((nil (... notmuch-show-insert-thread(((nil ((nil ((nil (...))) 393) notmuch-show-insert-tree((nil ((nil ((nil ((nil ...))) 392) Best, Alan signature.asc Description: PGP signature ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org
Re: performance in emacs displaying a huge thread
On Tue, Sep 21 2021, Alan Schmitt wrote: > On 2021-09-21 09:42, David Bremner writes: > >> That's not completely unexpected. The change in question only really fixes >> it for >> unthreaded view. Try notmuch-unthreaded-from-search-current-query (bound >> to 'U' by default). > > Thank you for bearing with me. I confirm that I can see messages at the > beginning of the thread using both an unthreaded search and > notmuch-show-only-matching-messages set to t. Unfortunately, messages > later in the thread still result in an error: > > Debugger entered--Lisp error: (error "Lisp nesting exceeds > ‘max-lisp-eval-depth’") I'd be interested to know if changing max-lisp-eval-depth to a larger value made difference. --8<8<8<8<8<8<8<8<8<8<8<8<--- max-lisp-eval-depth is a variable defined in ‘C source code’. Its value is 800 This variable may be risky if used as a file-local variable. Documentation: Limit on depth in ‘eval’, ‘apply’ and ‘funcall’ before error. This limit serves to catch infinite recursions for you before they cause actual stack overflow in C, which would be fatal for Emacs. You can safely make it considerably larger than its default value, if that proves inconveniently small. However, if you increase it too far, Emacs could overflow the real C stack, and crash. --8<8<8<8<8<8<8<8<8<8<8<8<--- e.g (set max-lisp-eval-depth 1600) (more interesting thing is what causes such a deep recursion...) Tomi > > Thanks, > > Alan ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org
Re: performance in emacs displaying a huge thread
Hello, On 2021-09-21 12:38, David Bremner writes: > Alan Schmitt writes: > >> Thank you for bearing with me. I confirm that I can see messages at the >> beginning of the thread using both an unthreaded search and >> notmuch-show-only-matching-messages set to t. Unfortunately, messages >> later in the thread still result in an error: >> >> Debugger entered--Lisp error: (error "Lisp nesting exceeds >> ‘max-lisp-eval-depth’") >> mapc(#f(compiled-function (tree) #) ((nil ((nil >> ((nil (...)) (nil ((nil ((nil nil))) >> notmuch-show-insert-thread(((nil ((nil ((nil (...)) (nil ((nil ((nil >> nil)) 197) >> notmuch-show-insert-tree((nil ((nil ((nil ((nil ...) (nil ((nil ((nil >> nil))) 196) > > I don't really understand how you got here. For me, if I type U from > notmuch-search to get an unthreaded view, then just shows the > single message, and "notmuch-show-insert-tree" is not called. > > In this way I can view arbitrary messages threads of up to 1024 in > length. I didn't test with encrypted messages, maybe that changes > something. I can view a thread with more than 7000 messages (with show-only-matching-messages to t) if they are not encrypted. In fact I already could with 0.32 if I remember correctly. The fact that messages are encrypted seems to matter here. If it matters, here is the bottom of the debug stack: notmuch-show-insert-thread(((nil ((nil ((nil nil) (nil (... ...))) 1) notmuch-show-insert-tree((nil ((nil ((nil ((nil nil) (nil ...))) 0) #f(compiled-function (tree) #)((nil ((nil ((nil ((nil nil) (nil ... mapc(#f(compiled-function (tree) #) ((nil ((nil ((nil (... ... notmuch-show-insert-thread(((nil ((nil ((nil (... ...))) 0) #f(compiled-function (thread) #)(((nil ((nil ((nil (... ... mapc(#f(compiled-function (thread) #) (((nil ((nil ((nil ... notmuch-show-insert-forestnil ((nil ((nil ... notmuch-show--build-buffer() notmuch-show("id:mr.ye1axfhsd2e.vd_os17a...@polytechnique.org") notmuch-tree-show-message-out() notmuch-tree-show-message(nil) funcall-interactively(notmuch-tree-show-message nil) call-interactively(notmuch-tree-show-message nil nil) command-execute(notmuch-tree-show-message) Best, Alan signature.asc Description: PGP signature ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org
Re: performance in emacs displaying a huge thread
Alan Schmitt writes: > On 2021-09-21 09:42, David Bremner writes: > >> That's not completely unexpected. The change in question only really fixes >> it for >> unthreaded view. Try notmuch-unthreaded-from-search-current-query (bound >> to 'U' by default). > > Thank you for bearing with me. I confirm that I can see messages at the > beginning of the thread using both an unthreaded search and > notmuch-show-only-matching-messages set to t. Unfortunately, messages > later in the thread still result in an error: > > Debugger entered--Lisp error: (error "Lisp nesting exceeds > ‘max-lisp-eval-depth’") > mapc(#f(compiled-function (tree) #) ((nil ((nil > ((nil (...)) (nil ((nil ((nil nil))) > notmuch-show-insert-thread(((nil ((nil ((nil (...)) (nil ((nil ((nil > nil)) 197) > notmuch-show-insert-tree((nil ((nil ((nil ((nil ...) (nil ((nil ((nil > nil))) 196) I don't really understand how you got here. For me, if I type U from notmuch-search to get an unthreaded view, then just shows the single message, and "notmuch-show-insert-tree" is not called. In this way I can view arbitrary messages threads of up to 1024 in length. I didn't test with encrypted messages, maybe that changes something. ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org
Re: performance in emacs displaying a huge thread
On 2021-09-21 09:42, David Bremner writes: > That's not completely unexpected. The change in question only really fixes it > for > unthreaded view. Try notmuch-unthreaded-from-search-current-query (bound > to 'U' by default). Thank you for bearing with me. I confirm that I can see messages at the beginning of the thread using both an unthreaded search and notmuch-show-only-matching-messages set to t. Unfortunately, messages later in the thread still result in an error: Debugger entered--Lisp error: (error "Lisp nesting exceeds ‘max-lisp-eval-depth’") mapc(#f(compiled-function (tree) #) ((nil ((nil ((nil (...)) (nil ((nil ((nil nil))) notmuch-show-insert-thread(((nil ((nil ((nil (...)) (nil ((nil ((nil nil)) 197) notmuch-show-insert-tree((nil ((nil ((nil ((nil ...) (nil ((nil ((nil nil))) 196) #f(compiled-function (tree) #)((nil ((nil ((nil ((nil ...) (nil ((nil ((nil nil mapc(#f(compiled-function (tree) #) ((nil ((nil ((nil (... (nil ((nil (... notmuch-show-insert-thread(((nil ((nil ((nil (... (nil ((nil (...))) 196) notmuch-show-insert-tree((nil ((nil ((nil ((nil ...))) (nil ((nil ...))) 195) #f(compiled-function (tree) #)((nil ((nil ((nil ((nil ...))) (nil ((nil ... mapc(#f(compiled-function (tree) #) ((nil ((nil ((nil (...)) (nil (... notmuch-show-insert-thread(((nil ((nil ((nil (...)) (nil (...))) 195) notmuch-show-insert-tree((nil ((nil ((nil ((nil ...) (nil ...))) 194) #f(compiled-function (tree) #)((nil ((nil ((nil ((nil ...) (nil ... mapc(#f(compiled-function (tree) #) ((nil ((nil ((nil (... ... notmuch-show-insert-thread(((nil ((nil ((nil (... ...))) 194) notmuch-show-insert-tree((nil ((nil ((nil ((nil ...))) 193) I searched through our conversations and I found references to notmuch-show-single-message, but I don’t seem to find how to set it (it’s not known when I search for it). Has it been renamed? Thanks, Alan signature.asc Description: PGP signature ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org
Re: performance in emacs displaying a huge thread
Alan Schmitt writes: > Hello, > > I’m on notmuch 0.33.1 and I’m still having issues displaying messages in > long threads when the messages are encrypted. I have such a thread with > more than 600 messages, and when I do the following: > - search for the messages > - run notmuch-tree-from-search-current-query That's not completely unexpected. The change in question only really fixes it for unthreaded view. Try notmuch-unthreaded-from-search-current-query (bound to 'U' by default). ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org
Re: performance in emacs displaying a huge thread
Hello, I’m on notmuch 0.33.1 and I’m still having issues displaying messages in long threads when the messages are encrypted. I have such a thread with more than 600 messages, and when I do the following: - search for the messages - run notmuch-tree-from-search-current-query I get an error (I only show the top of the backtrace, it’s really huge): Debugger entered--Lisp error: (error "Lisp nesting exceeds ‘max-lisp-eval-depth’") apply(concat "...") replace-regexp-in-string("^\\([Rr]e: *\\)+" "" "...") notmuch-show-strip-re("...") notmuch-tree-format-field("subject" "%s" (:id "mr.isfiqdkyzxd.glhhrezi...@polytechnique.org" :match t :excluded nil :filename ("/home/schmitta/.Maildir/o2switch/.INBOX.DeltaChat/...") :timestamp 1629630478 :date_relative "August 22" :tags ("encrypted") :crypto nil :headers (:Subject "..." :From "" :To "***" :Date "Sun, 22 Aug 2021 11:07:58 +") :first nil :tree-status ("┬►" "╰" " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " ...) :orig-tags ("encrypted"))) notmuch-tree-format-field-list((("tree" . "%s") ("subject" . "%s")) (:id "mr.isfiqdkyzxd.glhhrezi...@polytechnique.org" :match t :excluded nil :filename ("/home/schmitta/.Maildir/o2switch/.INBOX.DeltaChat/...") :timestamp 1629630478 :date_relative "August 22" :tags ("encrypted") :crypto nil :headers (:Subject "..." :From "" :To "***" :Date "Sun, 22 Aug 2021 11:07:58 +") :first nil :tree-status ("┬►" "╰" " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " ...) :orig-tags ("encrypted"))) notmuch-tree-format-field((("tree" . "%s") ("subject" . "%s")) " %-54s " (:id "mr.isfiqdkyzxd.glhhrezi...@polytechnique.org" :match t :excluded nil :filename ("/home/schmitta/.Maildir/o2switch/.INBOX.DeltaChat/...") :timestamp 1629630478 :date_relative "August 22" :tags ("encrypted") :crypto nil :headers (:Subject "..." :From "" :To "***" :Date "Sun, 22 Aug 2021 11:07:58 +") :first nil :tree-status ("┬►" "╰" " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " " ...) :orig-tags ("encrypted"))) I can see the earlier messages in the thread, but the later ones cannot be shown. Best, Alan signature.asc Description: PGP signature ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org
Re: emacs frontend and quote highlight
Hi David, On Sat, 21 Aug 2021 at 08:22, David Bremner wrote: > zimoun writes: > I tried with this value, and still could not duplicate the problem. > >> Well, maybe I misconfigure something but if I open a quote " then all >> the text after is highlighted until the next quote. And sometime, this >> next quote does not happen. :-) > > I wonder of this is some other minor mode you have enabled. Can you try > with a minimal configuration of emacs, using e.g. emacs -q and manually > loading notmuch? There is a script devel/try-emacs-mua in the notmuch > source that can make this easier. Indeed, it comes from ’font-lock-mode’, IIUC. My questions was: 1) Is it possible to control the open/closing message per message? Even when viewing all the thread. 2) Is it possible to globally turn off the highlight of quotes? Therefore, ’font-lock-mode’ answers to #2. :-) About #1, I simply switch to the tree view; for now, it is enough for my needs. I will invest energy when I need more. :-) Thanks for the help. Cheers, simon ___ notmuch mailing list -- notmuch@notmuchmail.org To unsubscribe send an email to notmuch-le...@notmuchmail.org