From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cJbgHjopt2COlwAAgWs5BA (envelope-from ) for ; Wed, 02 Jun 2021 08:46:18 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id YHGNGTopt2BbKQAAB5/wlQ (envelope-from ) for ; Wed, 02 Jun 2021 06:46:18 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id C201728BBD for ; Wed, 2 Jun 2021 08:46:17 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id EF0E929906; Wed, 2 Jun 2021 02:46:09 -0400 (EDT) Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by mail.notmuchmail.org (Postfix) with ESMTPS id DD0B527E2B for ; Wed, 2 Jun 2021 02:46:06 -0400 (EDT) IronPort-HdrOrdr: =?us-ascii?q?A9a23=3AaNhin62gRVXlGbCm6MqXYwqjBNUkLtp133Aq?= =?us-ascii?q?2lEZdPUzSKOlfqGV8cjzuiWE6wr5NEtApTniAsW9qBHnhPxICOAqVN/INjUO01?= =?us-ascii?q?HHEGgN1+vf/wE=3D?= X-IronPort-AV: E=Sophos;i="5.83,241,1616454000"; d="asc'?scan'208";a="383166410" Received: from clt-128-93-181-7.vpn.inria.fr (HELO set) ([128.93.181.7]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Jun 2021 08:46:03 +0200 From: Alan Schmitt To: David Bremner , notmuch Subject: Re: show a single message in a huge thread In-Reply-To: <87r1hll9j4.fsf@tethera.net> References: <871r9rkw2i.fsf@m4x.org> <878s3zniei.fsf@tethera.net> <87y2bzj651.fsf@m4x.org> <87k0neoywi.fsf@m4x.org> <87r1hll9j4.fsf@tethera.net> Date: Wed, 02 Jun 2021 08:46:01 +0200 Message-ID: <87lf7sojbq.fsf@m4x.org> MIME-Version: 1.0 Message-ID-Hash: I3UDAFVDS64XBOV6WHBWNQZLLSO737V2 X-Message-ID-Hash: I3UDAFVDS64XBOV6WHBWNQZLLSO737V2 X-MailFrom: alan.schmitt@polytechnique.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; suspicious-header X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============2126679113280140671==" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1622616378; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=yBw7lsfWdsoYg+aJ6w4jsJ8C3PEcdgQxfz2xOzN+4Xw=; b=agNamUhULbGjZfTtdAfZIySdtKfE2soOjVId+e0XZZjGNQd3ud1M1Bnv5+46gwB2f9zWKh oH6EoXWyjoMO4ARA18n6Bcy6Ps9g1pH1LQclXysu6l94mHflAyGp8TdSBuYpY4EsW4TERU FEpQUxdbhQ6JqqYmaTV8e4sHd8iP+W6EA6PAgro71PivPP0dNaL56e2ifDSos94RGpDafU wCyEIMnnSDeTKvp+ofF00r7dXm6K61aRjCghjuOo3AxeBLMvtgSGtsyTca7Sfe5bTT+oyK n8Y/ETlevX4cQ7xMRI+Oj082p+ZP6LAJkIIzyjswrdDSSv23vovkTDcWNcBh1w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1622616378; a=rsa-sha256; cv=none; b=HG7ebvDCperlfYjaCorhX1vrdEe9aKX38lauStlwLPU8LE6QdaBvcpmQEwN4g3Pe70Uhj2 D8XaB/aB3cQ4mg/nWATtwJ+hedm1aN84c9hknzndq9jeBQB/gi29ZZwe5uNZC+zSuFIjMG ztYLLiK9KBWs5jbOvQpFmqaHKEB+XshzaPnQ7zcQyd6/kY9lFdtoodmEoj/Yg68P/TzEFj nm0eRfKLKfmUSAyFKoVCF2YRlJuqoVUZ0n1BqOuE/5SlZmX9ZemqX21PtOzWqZm+TDpki7 i9rHSjwe+V2fgCr0sV43rbiTZt2t/JxUMPRtWYMIhXcfSELGh6f3EGbNVsue2w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -4.14 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: C201728BBD X-Spam-Score: -4.14 X-Migadu-Scanner: scn1.migadu.com X-TUID: NwJ1t40A7G41 --===============2126679113280140671== Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Hello, On 2021-06-01 15:33, David Bremner writes: >> Is this a bug of notmuch-emacs? Is there a way to display a single >> message independently of its context? >> > > I'm not sure what the best UI is, but here is a start: > > (defun notmuch-show-single-message (query) > (interactive "sQuery: ") > (message query) > (let ((notmuch-show-indent-messages-width 0) > (notmuch-show-only-matching-messages t)) > (notmuch-show query))) Thank you for the suggestion, unfortunately I get a very similar error. I found the id of the message I want, and when I run this function, I get this backtrace. Debugger entered--Lisp error: (error "Lisp nesting exceeds =E2=80=98max-lis= p-eval-depth=E2=80=99") #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) #f(compiled-function (tree) #)((nil ((nil ((nil = ((nil ...)))))))) mapc(#f(compiled-function (tree) #) ((nil ((nil = ((nil (...)))))))) notmuch-show-insert-thread(((nil ((nil ((nil (...))))))) 193) =E2=80=A6many line elided=E2=80=A6 notmuch-show-insert-tree((nil ((nil ((nil nil) (nil ((nil ...) (nil nil))= ))))) 1) #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 (... ...))))))) 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 ((n= il (... ...)))))))) mapc(#f(compiled-function (thread) #) (((nil ((n= il ((nil ...)))))))) notmuch-show-insert-forest((((nil ((nil ((nil ...)))))))) notmuch-show--build-buffer() notmuch-show("id:Mr.mCS31Ym4nF_.pqMxIMnhICF@petitepomme.net") (let ((notmuch-show-indent-messages-width 0) (notmuch-show-only-matching-= messages t)) (notmuch-show query)) notmuch-show-single-message("id:Mr.mCS31Ym4nF_.pqMxIMnhICF@petitepomme.ne= t") funcall-interactively(notmuch-show-single-message "id:Mr.mCS31Ym4nF_.pqMx= IMnhICF@petitepomme.net") call-interactively(notmuch-show-single-message record nil) command-execute(notmuch-show-single-message record) This seems to be the same problem as when hitting RET on a tree-view buffer. Some huge forest is built, instead of showing the single message. (Or maybe the forest is built before deciding to show only the message, but there is a stack overflow before that.) Best, Alan --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQFTBAEBCAA9FiEE6lXof/BsSVW56ZmGBA0KO07S5ccFAmC3KSkfHGFsYW4uc2No bWl0dEBwb2x5dGVjaG5pcXVlLm9yZwAKCRAEDQo7TtLlxw7RB/9WruPyJoGtRVNi dFLbZO+NHi1WcL8VXBpL1qyJLxqNYRve2+HDV3HrMd+bFwpKMJLGo8r2SCVKgR/C roSAGBhZ14qyLLdDE8HywT9vWvkUB+JmIs0anQK2gL2uJ4SIEolWElZbU3mUZBWk Se2EOpKFfBrhJfZEsKB608cTRHw17Elw0yDgwJf5fPYDatWGTIAybUvJMdHU5RwU ORd/uuhfcDTu2Uf9UdDaugqj0s+157/Fmp1rlX8Oc7v2DfR4a/mkQzPdBsNmVDZm PvrjYv41X1eN5z+Z9MIurfEEY9oJye9KozsDT+5AQ9ftzHW99sM9ygp8TR4yf1Td 4SWwS27o =P2p8 -----END PGP SIGNATURE----- --=-=-=-- --===============2126679113280140671== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline --===============2126679113280140671==--