From: David Bremner Date: Sat, 13 Feb 2016 16:42:33 +0000 (+2000) Subject: Re: [PATCH] emacs: hello: tell the user about help and notmuch customization X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5a0fe30ba0e2c3ffbc4a6ad8480d5ccaaf0d12d8;p=notmuch-archives.git Re: [PATCH] emacs: hello: tell the user about help and notmuch customization --- diff --git a/bd/c9c48fb7d37e33be9be7606cff081f97038278 b/bd/c9c48fb7d37e33be9be7606cff081f97038278 new file mode 100644 index 000000000..f2d665e2f --- /dev/null +++ b/bd/c9c48fb7d37e33be9be7606cff081f97038278 @@ -0,0 +1,86 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by arlo.cworth.org (Postfix) with ESMTP id 454586DE0C51 + for ; Sat, 13 Feb 2016 08:42:42 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at cworth.org +X-Spam-Flag: NO +X-Spam-Score: -0.307 +X-Spam-Level: +X-Spam-Status: No, score=-0.307 tagged_above=-999 required=5 tests=[AWL=0.244, + RP_MATCHES_RCVD=-0.55, SPF_PASS=-0.001] autolearn=disabled +Received: from arlo.cworth.org ([127.0.0.1]) + by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id wTpJRatp8KyU for ; + Sat, 13 Feb 2016 08:42:40 -0800 (PST) +Received: from fethera.tethera.net (fethera.tethera.net [198.245.60.197]) + by arlo.cworth.org (Postfix) with ESMTPS id 41A3E6DE0A9A + for ; Sat, 13 Feb 2016 08:42:40 -0800 (PST) +Received: from remotemail by fethera.tethera.net with local (Exim 4.84) + (envelope-from ) + id 1aUdGb-0003xY-Gz; Sat, 13 Feb 2016 11:41:53 -0500 +Received: (nullmailer pid 8837 invoked by uid 1000); + Sat, 13 Feb 2016 16:42:33 -0000 +From: David Bremner +To: Jani Nikula , notmuch@notmuchmail.org +Subject: Re: [PATCH] emacs: hello: tell the user about help and notmuch + customization +In-Reply-To: <1450026221-23286-1-git-send-email-jani@nikula.org> +References: <1450026221-23286-1-git-send-email-jani@nikula.org> +User-Agent: Notmuch/0.21+26~g9404723 (http://notmuchmail.org) Emacs/24.5.1 + (x86_64-pc-linux-gnu) +Date: Sat, 13 Feb 2016 12:42:33 -0400 +Message-ID: <8760xs8sue.fsf@zancas.localnet> +MIME-Version: 1.0 +Content-Type: text/plain +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.20 +Precedence: list +List-Id: "Use and development of the notmuch mail system." + +List-Unsubscribe: , + +List-Archive: +List-Post: +List-Help: +List-Subscribe: , + +X-List-Received-Date: Sat, 13 Feb 2016 16:42:42 -0000 + +Jani Nikula writes: + +> Make it easier for new users to find out about thing in notmuch-emacs. +> --- +> emacs/notmuch-hello.el | 11 +++++++++-- +> 1 file changed, 9 insertions(+), 2 deletions(-) +> +> diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el +> index b42e0f24148a..738baad23b20 100644 +> --- a/emacs/notmuch-hello.el +> +++ b/emacs/notmuch-hello.el +> @@ -915,12 +915,19 @@ following: +> (widget-insert "Edit saved searches with the `edit' button.\n")) +> (widget-insert "Hit RET or click on a saved search or tag name to view matching threads.\n") +> (widget-insert "`=' to refresh this screen. `s' to search messages. `q' to quit.\n") +> + (widget-insert "`?' in each Notmuch screen to display help for the current mode.\n") +> + (widget-insert "Customize ") +> + (widget-create 'link +> + :notify (lambda (&rest ignore) +> + (customize-group 'notmuch)) +> + :button-prefix "" :button-suffix "" +> + "Notmuch") +> + (widget-insert " or ") +> (widget-create 'link +> :notify (lambda (&rest ignore) +> (customize-variable 'notmuch-hello-sections)) +> :button-prefix "" :button-suffix "" +> - "Customize") +> - (widget-insert " this page.") +> + "this page.") +> (let ((fill-column (- (window-width) notmuch-hello-indent))) +> (center-region start (point))))) + +Unfortunately this breaks some tests. + +d