From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id kHN/IsPC5WLUAQAAbAwnHQ (envelope-from ) for ; Sun, 31 Jul 2022 01:46:11 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id cIOfIcPC5WJVeAEAG6o9tA (envelope-from ) for ; Sun, 31 Jul 2022 01:46:11 +0200 Received: from mail.notmuchmail.org (yantan.tethera.net [135.181.149.255]) (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 546BCFC07 for ; Sun, 31 Jul 2022 01:46:11 +0200 (CEST) Received: from yantan.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id A3C9A5F392; Sat, 30 Jul 2022 23:46:04 +0000 (UTC) Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) by mail.notmuchmail.org (Postfix) with ESMTP id AFCA35F389 for ; Sat, 30 Jul 2022 23:46:01 +0000 (UTC) Received: by fethera.tethera.net (Postfix, from userid 1001) id C7EA15FBC2; Sat, 30 Jul 2022 19:46:00 -0400 (EDT) Received: (nullmailer pid 2623919 invoked by uid 1000); Sat, 30 Jul 2022 23:45:58 -0000 From: David Bremner To: notmuch@notmuchmail.org Subject: [PATCH 2/3] emacs: add docstring for notmuch-show-choose-duplicate Date: Sat, 30 Jul 2022 20:45:50 -0300 Message-Id: <20220730234551.2623885-2-david@tethera.net> X-Mailer: git-send-email 2.35.2 In-Reply-To: <20220730234551.2623885-1-david@tethera.net> References: <20220730234551.2623885-1-david@tethera.net> MIME-Version: 1.0 Message-ID-Hash: ZIPWZFAAJG66DYMIX2RKL4CKRIJBSYOK X-Message-ID-Hash: ZIPWZFAAJG66DYMIX2RKL4CKRIJBSYOK X-MailFrom: bremner@tethera.net 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 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=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1659224771; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to: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; bh=ucm6P5NltnOWd37BQfJvXfzaw/hYvxLSkCYd+feFXeU=; b=FRW08jShGJckcrxcTDA/gqIUKFgRJe8MqC0QYiiEshB2I6O8NKzes1+Dr8v2jlurN+icxN vYmM22iPDK0sORlglYjMRsQ4HSqQWtAIJfWfWTMdYUljQry2cT0ON2HRomXUBTSwhZDavr 7ONCYfz/C0Fql21ysPRc+qQ8tIL8g6zFt7H02pyp/DFoULr5VlzCh6nQQDWzD7M30ft2wS GQBWT4Zw5HPHmQ++Q6cH2UPgz2QEnGigYD6PUMZQoqeqv3Odc8Ae88HC5ZelqOMN9G+4x0 IQZvpJdjMMJeD4XhDvV+AHegSmpNDMMZB45YkVYIRG0nG2+i70aO6KU0gQVLbA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659224771; a=rsa-sha256; cv=none; b=bK0+Hd3EHLG7k5teMdIrRwKmPMyZi8oxiDOxf87r7ZMZwnye47jh09c44vLL6PQpH3PDMg LyFf1eULTF6wlL++HOexkj2vFgffAVERKVbP3gSERdzu76sh54TTeblM0hswA/iOd5j3KS odnUguZv+TkhgiJadlLOSs9XA9iGb9wlnvO9nzc/nDEOXOo3V6OTm9HpR347Vh2VY9Uw/j ug4zG1vfIDU2JDWgE6RGL/7LkMjk9+X6FGbjW927i2f45azohQmpXBdZKG3zjqwbd3IPxn VX5DgCndIXnbbIOIL/rH1YUUlDvbotxCxWgZFPBKiwUUIWzr8L3MHTedGra8HA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -0.78 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 135.181.149.255 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 546BCFC07 X-Spam-Score: -0.78 X-Migadu-Scanner: scn1.migadu.com X-TUID: Q5pv33e5/CMb It should have one in any case, but in particular it is needed for the manual. --- emacs/notmuch-show.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index 1bc3b319..a729ce77 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -1135,6 +1135,10 @@ is t, hide the part initially and show the button." (make-variable-buffer-local 'notmuch-show-previous-subject) (defun notmuch-show-choose-duplicate (duplicate) + "Display message file DUPLICATE in place of the current one. + +The numbering is consistent with that used by the CLI. An error +will be signaled if DUPLICATE is out of range." (interactive "Nduplicate: ") (let ((count (length (notmuch-show-get-prop :filename)))) (when (or (> duplicate count) -- 2.35.2