[PATCH] emacs: hello: tell the user about help and notmuch customization
authorJani Nikula <jani@nikula.org>
Sun, 13 Dec 2015 17:03:41 +0000 (19:03 +0200)
committerW. Trevor King <wking@tremily.us>
Sat, 20 Aug 2016 21:50:12 +0000 (14:50 -0700)
3a/b85d845f8d1ad5883afb8d8753a33e80cb5bf5 [new file with mode: 0644]

diff --git a/3a/b85d845f8d1ad5883afb8d8753a33e80cb5bf5 b/3a/b85d845f8d1ad5883afb8d8753a33e80cb5bf5
new file mode 100644 (file)
index 0000000..5b488a1
--- /dev/null
@@ -0,0 +1,104 @@
+Return-Path: <jani@nikula.org>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by arlo.cworth.org (Postfix) with ESMTP id 64C8A6DE02CE\r
+ for <notmuch@notmuchmail.org>; Sun, 13 Dec 2015 09:04:32 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at cworth.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.539\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.539 tagged_above=-999 required=5 tests=[AWL=0.181,\r
+  DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7,\r
+ RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled\r
+Received: from arlo.cworth.org ([127.0.0.1])\r
+ by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id 6Re_9zFYil-C for <notmuch@notmuchmail.org>;\r
+ Sun, 13 Dec 2015 09:04:30 -0800 (PST)\r
+Received: from mail-wm0-f52.google.com (mail-wm0-f52.google.com\r
+ [74.125.82.52]) by arlo.cworth.org (Postfix) with ESMTPS id 0D0836DE0231 for\r
+ <notmuch@notmuchmail.org>; Sun, 13 Dec 2015 09:04:30 -0800 (PST)\r
+Received: by mail-wm0-f52.google.com with SMTP id p66so15705757wmp.0\r
+ for <notmuch@notmuchmail.org>; Sun, 13 Dec 2015 09:04:29 -0800 (PST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+ d=nikula-org.20150623.gappssmtp.com; s=20150623;\r
+ h=from:to:cc:subject:date:message-id;\r
+ bh=jVHB0bVQN+KPkYEuw7s0cUJH1W8RVIIZuF4Goo+pI9I=;\r
+ b=OlXQtgwUV7hZZ+8KhixQe4SQ4XXmkVleJRxiGXqM9iCEwrJzH8SegFjnQf3+ptZokY\r
+ gzMk2i7roAVDfsD56r5Mvwz+snVfaKxoLSKP0NWM8ZhH4SdvL7W3geiCVJmH35Qe1+d8\r
+ 52GLet7wA51zqc38v/ZYvjDJabhmI+ApZFZdaCEGwDYPya9Hc9q6vJQg5elTHw+RiJ1F\r
+ F042q+KxQLo80PCgPHXNXq2UJfEDRXI+GRSCPmGPheMfX+9DuIRTjHm6E4P7TeR0RQ7w\r
+ DbeuhfmcKGxqnVX2DH47SR+cfIkqqaaxp3K9WjvpLG2LIiunZERnPNPpWLnF22fkkVFy\r
+ 7wnw==\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+ d=1e100.net; s=20130820;\r
+ h=x-gm-message-state:from:to:cc:subject:date:message-id;\r
+ bh=jVHB0bVQN+KPkYEuw7s0cUJH1W8RVIIZuF4Goo+pI9I=;\r
+ b=iL6FC7yDyy1gLg6ZnloRLIP6FFiodKmjV+7VxH15+WRV66F1krgwo0unDxEfMICnvL\r
+ 8oyx/8s4O47qx4tMQ2OOkczM3eLL2kE/rAgD8b8N7IcIHkEs/vYv/iDBd5FMHeJeDTYW\r
+ Pnb5F6E36hTAsVdF9l9HnNoZpdhlQ5W3+d9LYVEtQfQN1fJHKGyXvBZf8KpoHQbWpJty\r
+ /3lEKnh+lE9EaXN2qmd1AqGGnJxEZOfRPWkUj1/WtNqanVkxR/u0e0v4sSoEDghJhU5b\r
+ HMj1540EiTldS5ugotXDklbbkE6dPZeGoElOVaATl5QCYNnIOQ9e93oNegb7PM+cYZ7S\r
+ 5fWQ==\r
+X-Gm-Message-State: ALoCoQmf3hJigiffN0RlZYtuAd1ytUH67unV+r9aC7+LHgQYmms/3fNoRb8ZgfsU2HuIMXTWeYCG9soS9EJFToon3R9E+RlEkQ==\r
+X-Received: by 10.194.112.131 with SMTP id iq3mr32437943wjb.35.1450026268016; \r
+ Sun, 13 Dec 2015 09:04:28 -0800 (PST)\r
+Received: from localhost (mobile-access-bcee05-14.dhcp.inet.fi.\r
+ [188.238.5.14]) by smtp.gmail.com with ESMTPSA id\r
+ jz1sm25923651wjc.27.2015.12.13.09.04.27 (version=TLSv1/SSLv3 cipher=OTHER);\r
+ Sun, 13 Dec 2015 09:04:27 -0800 (PST)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH] emacs: hello: tell the user about help and notmuch\r
+ customization\r
+Date: Sun, 13 Dec 2015 19:03:41 +0200\r
+Message-Id: <1450026221-23286-1-git-send-email-jani@nikula.org>\r
+X-Mailer: git-send-email 2.1.4\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.20\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <https://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: <https://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Sun, 13 Dec 2015 17:04:32 -0000\r
+\r
+Make it easier for new users to find out about thing in notmuch-emacs.\r
+---\r
+ emacs/notmuch-hello.el | 11 +++++++++--\r
+ 1 file changed, 9 insertions(+), 2 deletions(-)\r
+\r
+diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el\r
+index b42e0f24148a..738baad23b20 100644\r
+--- a/emacs/notmuch-hello.el\r
++++ b/emacs/notmuch-hello.el\r
+@@ -915,12 +915,19 @@ following:\r
+       (widget-insert "Edit saved searches with the `edit' button.\n"))\r
+     (widget-insert "Hit RET or click on a saved search or tag name to view matching threads.\n")\r
+     (widget-insert "`=' to refresh this screen. `s' to search messages. `q' to quit.\n")\r
++    (widget-insert "`?' in each Notmuch screen to display help for the current mode.\n")\r
++    (widget-insert "Customize ")\r
++    (widget-create 'link\r
++                 :notify (lambda (&rest ignore)\r
++                           (customize-group 'notmuch))\r
++                 :button-prefix "" :button-suffix ""\r
++                 "Notmuch")\r
++    (widget-insert " or ")\r
+     (widget-create 'link\r
+                  :notify (lambda (&rest ignore)\r
+                            (customize-variable 'notmuch-hello-sections))\r
+                  :button-prefix "" :button-suffix ""\r
+-                 "Customize")\r
+-    (widget-insert " this page.")\r
++                 "this page.")\r
+     (let ((fill-column (- (window-width) notmuch-hello-indent)))\r
+       (center-region start (point)))))\r
\r
+-- \r
+2.1.4\r
+\r