[PATCH] emacs: help: add link to info node
authorMark Walters <markwalters1009@gmail.com>
Sat, 18 Jan 2014 14:52:53 +0000 (14:52 +0000)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:59:06 +0000 (09:59 -0800)
34/6fca87d3ace50147cc7b72b28203089952431f [new file with mode: 0644]

diff --git a/34/6fca87d3ace50147cc7b72b28203089952431f b/34/6fca87d3ace50147cc7b72b28203089952431f
new file mode 100644 (file)
index 0000000..b6c2464
--- /dev/null
@@ -0,0 +1,104 @@
+Return-Path: <markwalters1009@gmail.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id AC267431FBD\r
+       for <notmuch@notmuchmail.org>; Sat, 18 Jan 2014 06:53:13 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0.201\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0.201 tagged_above=-999 required=5\r
+       tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+       FREEMAIL_ENVFROM_END_DIGIT=1, FREEMAIL_FROM=0.001,\r
+       RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id hnfoeTRCc3rQ for <notmuch@notmuchmail.org>;\r
+       Sat, 18 Jan 2014 06:53:08 -0800 (PST)\r
+Received: from mail-we0-f180.google.com (mail-we0-f180.google.com\r
+       [74.125.82.180]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id 0D261431FBC\r
+       for <notmuch@notmuchmail.org>; Sat, 18 Jan 2014 06:53:07 -0800 (PST)\r
+Received: by mail-we0-f180.google.com with SMTP id q59so5627433wes.11\r
+       for <notmuch@notmuchmail.org>; Sat, 18 Jan 2014 06:53:05 -0800 (PST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+       h=from:to:cc:subject:date:message-id:in-reply-to:references;\r
+       bh=+z1/kV6bt2IkfPJuiLYN/Vev3OukB1BtEEVpT0yP9HE=;\r
+       b=X/DI/LhMGhdVS/TTbitfgB73Ds8I54mKBVmCszOKBDybbHYMQDau9e3rqwtlIbU/NB\r
+       WblGmtd3cJfUSbBXYXgk398KpVxjT99m8CvvNgaOgmpMUb12D9Rt4Rfe+h/rc1f9fx0x\r
+       sCq7FfYz1FskXgu9QAQ3NOROtZhTVUw8Zus7ZIygal70Suk8BzCEnsuNTTlCIBZe9oTa\r
+       XwbmQBi9kRillDFTxvbsmX2sCZWRbPxYpz4/ow/aDmiERnwvU9e7+/0MmyP9yovDcU6h\r
+       YUm5Oz16RidiwuRXjsqivzlcv80LOMqkdiQ8R4XKRaVsjSmhOJLE+OiqGMhPOLUBgVWe\r
+       u84g==\r
+X-Received: by 10.180.9.232 with SMTP id d8mr2903486wib.25.1390056784068;\r
+       Sat, 18 Jan 2014 06:53:04 -0800 (PST)\r
+Received: from localhost (93-97-24-31.zone5.bethere.co.uk. [93.97.24.31])\r
+       by mx.google.com with ESMTPSA id z1sm3008084wjq.19.2014.01.18.06.53.02\r
+       for <multiple recipients>\r
+       (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
+       Sat, 18 Jan 2014 06:53:03 -0800 (PST)\r
+From: Mark Walters <markwalters1009@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH] emacs: help: add link to info node\r
+Date: Sat, 18 Jan 2014 14:52:53 +0000\r
+Message-Id: <1390056773-14227-1-git-send-email-markwalters1009@gmail.com>\r
+X-Mailer: git-send-email 1.7.9.1\r
+In-Reply-To: <87y52dczwv.fsf@qmul.ac.uk>\r
+References: <87y52dczwv.fsf@qmul.ac.uk>\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sat, 18 Jan 2014 14:53:13 -0000\r
+\r
+Add a link to the info documentation from the keybindings help page.\r
+---\r
+\r
+For anyone who wants to try this out. (Only works in hello and search\r
+mode while there are no other info nodes).\r
+\r
+Best wishes\r
+\r
+Mark\r
+\r
+\r
+\r
+ emacs/notmuch-lib.el |    8 ++++++++\r
+ 1 files changed, 8 insertions(+), 0 deletions(-)\r
+\r
+diff --git a/emacs/notmuch-lib.el b/emacs/notmuch-lib.el\r
+index 2be409b..228680b 100644\r
+--- a/emacs/notmuch-lib.el\r
++++ b/emacs/notmuch-lib.el\r
+@@ -331,10 +331,18 @@ its prefixed behavior by setting the 'notmuch-prefix-doc property\r
+ of its command symbol."\r
+   (interactive)\r
+   (let* ((mode major-mode)\r
++       (parent-mode-name mode-name)\r
++       (info-node (concat "(notmuch-emacs)" mode-name))\r
+        (doc (substitute-command-keys (notmuch-substitute-command-keys (documentation mode t)))))\r
+     (with-current-buffer (generate-new-buffer "*notmuch-help*")\r
+       (insert doc)\r
+       (goto-char (point-min))\r
++      (forward-line 2)\r
++      (insert-button (concat "Info documentation for " parent-mode-name ".")\r
++                   'action `(lambda (x) (info ,info-node)))\r
++      (insert "\n\n")\r
++      (goto-char (point-min))\r
++      (forward-button 1)\r
+       (set-buffer-modified-p nil)\r
+       (view-buffer (current-buffer) 'kill-buffer-if-not-modified))))\r
\r
+-- \r
+1.7.9.1\r
+\r