From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id wANINVPva2LDCQAAbAwnHQ (envelope-from ) for ; Fri, 29 Apr 2022 15:59:47 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id eLEtNVPva2I8VwEAauVa8A (envelope-from ) for ; Fri, 29 Apr 2022 15:59:47 +0200 Received: from mail.notmuchmail.org (yantan.tethera.net [IPv6:2a01:4f9:c011:7a79::1]) (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 2D13225F57 for ; Fri, 29 Apr 2022 15:59:47 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id 82F8A5F72A; Fri, 29 Apr 2022 13:59:44 +0000 (UTC) Received: from lahtoruutu.iki.fi (lahtoruutu.iki.fi [IPv6:2a0b:5c81:1c1::37]) by mail.notmuchmail.org (Postfix) with ESMTPS id 8C6E45F70A for ; Fri, 29 Apr 2022 13:59:42 +0000 (UTC) Received: from guru.guru-group.fi (unknown [IPv6:2a02:2380:1:9:5054:ff:feb7:a4bc]) (using TLSv1.2 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: too) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id 2F5621B001CF; Fri, 29 Apr 2022 16:59:41 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1651240781; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=EYOr0QZZjc7LNFBSsyZ/XX6wtM3vQ8M29TnHk6ZOwzA=; b=bFVDnJZVviliwQxCZArjwsteUWdHi2QII6mrB0dLYCsQRj0MsGkO8lIOtQfgMMmQeqiQXI dYQBl3wMV9JUzS2/dPTSHP/jNvw/jyuDL+TVQK7YZZq9oMUsMUVyO11HfCjhTZLKeGFJCv y5+BugKAlFu5DQYtKM7SVV2B1iQ7NZZegtCvvUQNxldNwMPZJSqN98RjCtXa1yRymFXCRC 5WgidzawMLeJrMfUKpSEj61eC8HRu+dQHNPOmRCJN6DNEZVXZsIuv2d2uLIXfDZmhI6WRq 9F253g3L4OODh5cIz04p0Ju0KPnNayz3HSGe1RElHmok3ZKnQFBMEvIypxoiMQ== From: Tomi Ollila To: Leo , notmuch@notmuchmail.org Subject: Re: [PATCH 1/1] emacs: Make notmuch-show-next-thread return nil on failure In-Reply-To: <20220428101217.23844-2-git@relevant-information.com> References: <20220428101217.23844-1-git@relevant-information.com> <20220428101217.23844-2-git@relevant-information.com> User-Agent: Notmuch/0.36+7~g75125c5 (https://notmuchmail.org) Emacs/27.1 X-Face: HhBM'cA~ MIME-Version: 1.0 ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1651240781; a=rsa-sha256; cv=none; b=TPR77/oLN0Q7E34/5kHvguAE3s2n1ntZP2e3HcALW5GOFQosrHHgFeUMAZntVhynYgjIlA nWNwSU3auEglTmcXJM3yk0lVXu5JOiowa0BxfHuK9eLm2R83/YNPAr2UsSzNaOVTSGzwZO 5YESQ9RkkpXgTXuDp31VqzEltlEGG6tyHOpk5QIMIvsHqeTC1CxlrLp1hEQ7xJG3Cc1Lg3 qbvElxPA06sejvVgJUPpD/D7rSvfBh4bEPqaYN6VEMFPqOJWLouTTEPr5Q2PxX5D8E8C0i tOvuqHtYejwlH1QGU1fKV0P2nGd6pAzFYr/p5jLjoR9FkKF34aIN4X2Cm9wMfg== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=too smtp.mailfrom=tomi.ollila@iki.fi ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1651240781; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=EYOr0QZZjc7LNFBSsyZ/XX6wtM3vQ8M29TnHk6ZOwzA=; b=CkZexbllh0+OvwpcglUfjSI5z+XYUDGAI2iIe68y2udRl9lq40LMj95fNAgqOlE6KMaHyM v+JiY07zGKQc26JSpZ6GVe3MNNeYGXm5SLZH5ur2X2npz/ya6P7uy85462C8hxvGsttnfA D5KQySSP6qnvkDvqHaC37x5Zb7ZaKNjzvVNIp52mOmCr9VDdC1zNMCasr5+tl5k/zTiGEL r9TCM6glorFjZeDihV45r8rJ7L8a1YkwQnG/Ucj8XeZH5/HQE0OvWg+tSca3YuswfTUBKU vCB4qZw4s3FWVXVsXdQ19vNyOEnCjJJndvs5dZoGiC558J2Jhu5J5Zg8ZRlMzA== Message-ID-Hash: OVLV7EY5J7XUGWF6MONVJCXZSPCXZXZB X-Message-ID-Hash: OVLV7EY5J7XUGWF6MONVJCXZSPCXZXZB X-MailFrom: tomi.ollila@iki.fi 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; digests; suspicious-header CC: Leo Okawa Ericson X-Mailman-Version: 3.3.3 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: DE ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1651240787; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-owner:list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=ZAUvGMo6F8ezrGUqB4hr0cxdrHJ1sFW2GL9NQAOGdKw=; b=E/oCUvBLDwVlC9UYbBHcCHcSn+BiF9FBYdrethtHJXO6K3aJZ15nQOgXtKHGBcivqAinyK 8wV3yNKhzcRzdGak1GJetY+FZR5df07kLkcSYn9MnfQd/mkRsinqEEIAFA4TDngv5Gc2ME Y7iYBnZm4uagRTpmph37Lv5hTOPKxYERGVvkJeWB8uDdZcYdBNX+huZjktO4Jw9UMpEY9g rmUJFNReLnvQiF0A23KDx6iuccfL54JFt7E8EK/FEQd1CvcBvuw9tPf2mE0i8KkKKDD9Aq 3PXERT77wZP6HnYAURAF6dnda1dXSdQu04QUyejm2qpwr8Wb8DxsUFsB4CvcRw== ARC-Seal: i=2; s=key1; d=yhetil.org; t=1651240787; a=rsa-sha256; cv=fail; b=Hf0k+UD8g6tbRgOWNa1jVE4xNEZl+e6YFWpmEHIo8+Z9e+inUUTWLUu9eu/Q2eVgQLsCUb EvhEdo7PuBVaVbUdHzOfus8JAG/82LUqv68EcJeXI2q4xoPzLHJPL3X9HyCpBne8EouI/V 9usAyrYjcMtxi3N01aT9uzaadSGBriPh8sFiKS669vcQGS1jR4pnKSqDrcXlOmSzsEJ5Xe LwPFWLChdu1KMwNzyu6nYqH0nf5WhqzGXNtzd8QsrDar8g0hc5hm5ilh/cpExAgqQm/x5U AslCdcyJNyEOC7ixmJQqY/i0KDkCo1+VC6SCZPPimRfFviApE5fjURTbVPXK+w== ARC-Authentication-Results: i=2; aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=lahtoruutu header.b=bFVDnJZV; arc=reject ("signature check failed: fail, {[1] = sig:iki.fi:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: 3.75 Authentication-Results: aspmx1.migadu.com; dkim=fail ("body hash did not verify") header.d=iki.fi header.s=lahtoruutu header.b=bFVDnJZV; arc=reject ("signature check failed: fail, {[1] = sig:iki.fi:reject}"); dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2a01:4f9:c011:7a79::1 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 2D13225F57 X-Spam-Score: 3.75 X-Migadu-Scanner: scn1.migadu.com X-TUID: zW0d7+OrI5bY On Thu, Apr 28 2022, Leo wrote: > From: Leo Okawa Ericson > > Having notmuch-show-next-thread return non-nil on success and nil on > failure makes it easier for users to interact with notmuch via elisp. > --- > emacs/notmuch.el | 17 +++++++++-------- > 1 file changed, 9 insertions(+), 8 deletions(-) > > diff --git a/emacs/notmuch.el b/emacs/notmuch.el > index c9cf80dc..a6198f4e 100644 > --- a/emacs/notmuch.el > +++ b/emacs/notmuch.el > @@ -525,14 +525,15 @@ (defun notmuch-search-show-thread (&optional elide-toggle) > (let ((thread-id (notmuch-search-find-thread-id))) > (if thread-id > (notmuch-show thread-id > - elide-toggle > - (current-buffer) > - notmuch-search-query-string > - ;; Name the buffer based on the subject. > - (format "*%s*" (truncate-string-to-width > - (notmuch-search-find-subject) > - 30 nil nil t))) > - (message "End of search results.")))) > + elide-toggle I don't see why this indentation change is happening... > + (current-buffer) > + notmuch-search-query-string > + ;; Name the buffer based on the subject. > + (format "*%s*" (truncate-string-to-width > + (notmuch-search-find-subject) > + 30 nil nil t))) > + (message "End of search results.") > + nil))) > > (defun notmuch-tree-from-search-current-query () > "Tree view of current query." > -- > 2.36.0 > > _______________________________________________ > notmuch mailing list -- notmuch@notmuchmail.org > To unsubscribe send an email to notmuch-leave@notmuchmail.org