From 32d0cba04f1c4f2ecd37cab43f056bb8cc468a2f Mon Sep 17 00:00:00 2001 From: Daniel Kahn Gillmor Date: Fri, 6 Sep 2013 10:43:41 +2000 Subject: [PATCH] notmuch emacs mode could be friendlier when the user has never run "notmuch setup" --- 65/3dba63156007c338b358163fe693bda43b2645 | 108 ++++++++++++++++++++++ 1 file changed, 108 insertions(+) create mode 100644 65/3dba63156007c338b358163fe693bda43b2645 diff --git a/65/3dba63156007c338b358163fe693bda43b2645 b/65/3dba63156007c338b358163fe693bda43b2645 new file mode 100644 index 000000000..50a855e07 --- /dev/null +++ b/65/3dba63156007c338b358163fe693bda43b2645 @@ -0,0 +1,108 @@ +Return-Path: +X-Original-To: notmuch@notmuchmail.org +Delivered-To: notmuch@notmuchmail.org +Received: from localhost (localhost [127.0.0.1]) + by olra.theworths.org (Postfix) with ESMTP id 0E2C6431FDD + for ; Thu, 5 Sep 2013 07:43:51 -0700 (PDT) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: 0 +X-Spam-Level: +X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none] + autolearn=disabled +Received: from olra.theworths.org ([127.0.0.1]) + by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) + with ESMTP id jpm6hMPLIAww for ; + Thu, 5 Sep 2013 07:43:45 -0700 (PDT) +Received: from che.mayfirst.org (che.mayfirst.org [209.234.253.108]) + by olra.theworths.org (Postfix) with ESMTP id 91F25431FDB + for ; Thu, 5 Sep 2013 07:43:45 -0700 (PDT) +Received: from [192.168.13.192] (lair.fifthhorseman.net [108.58.6.98]) + by che.mayfirst.org (Postfix) with ESMTPSA id D8D4DF984 + for ; Thu, 5 Sep 2013 10:43:42 -0400 (EDT) +Message-ID: <5228989D.8030607@fifthhorseman.net> +Date: Thu, 05 Sep 2013 10:43:41 -0400 +From: Daniel Kahn Gillmor +User-Agent: Mozilla/5.0 (X11; Linux x86_64; + rv:17.0) Gecko/20130821 Icedove/17.0.8 +MIME-Version: 1.0 +To: notmuch +Subject: notmuch emacs mode could be friendlier when the user has never run + "notmuch setup" +X-Enigmail-Version: 1.5.1 +Content-Type: multipart/signed; micalg=pgp-sha512; + protocol="application/pgp-signature"; + boundary="----enig2HSBGNXKHXPDKHBGHSIOI" +X-BeenThere: notmuch@notmuchmail.org +X-Mailman-Version: 2.1.13 +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: Thu, 05 Sep 2013 14:43:51 -0000 + +This is an OpenPGP/MIME signed message (RFC 4880 and 3156) +------enig2HSBGNXKHXPDKHBGHSIOI +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: quoted-printable + +in testing out notmuch on a new user account, i just noticed that +bringing up notmuch mode in emacs chokes with an unhelpful error for +users who have never run "notmuch setup". it seems like there ought to +be a way for the emacs mode to detect this error state and prompt the +user to walk through "notmuch setup" directly from within emacs. + +my emacs-fu (and my time) is too limited for me to try to implement this +bit of user-friendliness, but i just wanted to put the idea out there +for folks who might want to take it on as a well-scoped project. + +At the very least, the error message could say "please run 'notmuch +setup' from a shell". + +The current behavior (notmuch and notmuch-emacs 0.16-1 on debian) is to +open a *notmuch-hello* buffer that says : + + Welcome to notmuch. You have + +And in the minibuffer, a message says "notmuch exited with status 1" + +*Messages* shows: + +process-lines: notmuch exited with status 1 + + --dkg + + +------enig2HSBGNXKHXPDKHBGHSIOI +Content-Type: application/pgp-signature; name="signature.asc" +Content-Description: OpenPGP digital signature +Content-Disposition: attachment; filename="signature.asc" + +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.14 (GNU/Linux) +Comment: Using GnuPG with Icedove - http://www.enigmail.net/ + +iQJ8BAEBCgBmBQJSKJidXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w +ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRFQjk2OTEyODdBN0FEREUzNzU3RDkxMUVB +NTI0MDFCMTFCRkRGQTVDAAoJEKUkAbEb/fpcwjgP/0+DszIUI9R0U72pha4TgCmJ +aG5aP4kwSe3ghvwvCZEoPXSD3BXsQ3GsaXWFXOqAk11HQ9sXMO8f47G/1PbbdKgA +45vdNklg86bx0pF9F8JdPRqyDEtSG3LoVBtPK1dn2IuIAW/fvXFTrKyxK3+Uds90 +FqDx0kT/pn1r9P8iqaMMIBqeNmPpfhcApk7sf7noY92bWsR0IUBpdEJIhsb7voo6 +pft9FKiZeszyuLi1I62rpcNqJZ3Q4EYFu8L2CuRNc5M7esEYHBPPBQcvNXVl9iz0 +Zv7zQT1YHUfFqCZIA5PUlhgjUwkuBb2JALs1FZXt46GTmKlcIYYTy3we61WFKX50 +We87LXAOnWBZegQLZ8a0Ke3LLvSs4AJdgJRICto/Kp/3luSgcNDgYFUFY724p2p6 +lF7Rbbhy3YxdPXGzqjn0QDd3/uMs1vlybcz6MujZcRG7BeLyG4a2VEoi1djuGotH +EwkepatJVWWxP8CoiBqShukjRKX6+FcJuOrcX5GPpdoFuzwINAt2BQrdCAYPok1G +PKrfYi6oFBB+UnVha31dLpU9nKgPX2D2bpSMzZbZrh5lf7drTB6224SUgaN5H2EX +q6ivCTAXwVG/91b+/ECLwxjHpwjYAxpvPwtO6XSir1kU8AxavXNcUzobUQctH1+7 +pU9y97Ie5WRiPVMysoMY +=kUkZ +-----END PGP SIGNATURE----- + +------enig2HSBGNXKHXPDKHBGHSIOI-- -- 2.26.2