From: David Bremner Date: Sat, 3 Jan 2015 13:29:20 +0000 (+0100) Subject: Re: [PATCH 2/2] completion: generate notmuch-completion.zsh using doc/conf.py X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=b27405213b2540af0c77bcf66c7e8b5a2bd00e9e;p=notmuch-archives.git Re: [PATCH 2/2] completion: generate notmuch-completion.zsh using doc/conf.py --- diff --git a/dc/977ca5c4135217abb367772b4b4a36ea600323 b/dc/977ca5c4135217abb367772b4b4a36ea600323 new file mode 100644 index 000000000..a74f17381 --- /dev/null +++ b/dc/977ca5c4135217abb367772b4b4a36ea600323 @@ -0,0 +1,65 @@ +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 40911431FBC + for ; Sat, 3 Jan 2015 05:29:29 -0800 (PST) +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 CGar3Cs5hvfx for ; + Sat, 3 Jan 2015 05:29:26 -0800 (PST) +Received: from yantan.tethera.net (yantan.tethera.net [199.188.72.155]) + (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id A4E51431FB6 + for ; Sat, 3 Jan 2015 05:29:26 -0800 (PST) +Received: from remotemail by yantan.tethera.net with local (Exim 4.80) + (envelope-from ) + id 1Y7Olh-0006Uw-M0; Sat, 03 Jan 2015 09:29:25 -0400 +Received: (nullmailer pid 6182 invoked by uid 1000); Sat, 03 Jan 2015 + 13:29:20 -0000 +From: David Bremner +To: notmuch@notmuchmail.org +Subject: Re: [PATCH 2/2] completion: generate notmuch-completion.zsh using + doc/conf.py +In-Reply-To: <1420289900-29717-2-git-send-email-david@tethera.net> +References: <1420289900-29717-1-git-send-email-david@tethera.net> + <1420289900-29717-2-git-send-email-david@tethera.net> +User-Agent: Notmuch/0.19+10~g215de26 (http://notmuchmail.org) Emacs/24.4.1 + (x86_64-pc-linux-gnu) +Date: Sat, 03 Jan 2015 14:29:20 +0100 +Message-ID: <87387sxaa7.fsf@maritornes.cs.unb.ca> +MIME-Version: 1.0 +Content-Type: text/plain +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: Sat, 03 Jan 2015 13:29:29 -0000 + +David Bremner writes: + +> I noticed that the (out of date) list of subcommands was simply +> repeating the summary lines from the manpage. Since those summary +> lines are already kept in machine readable form in doc/conf.py, +> it's easy to compute that part of the completion file. + +I meant to annotate this, but lost a fight with git-send-email. I'm not +sure if the change to notmuch-completions.zsh is worth the trouble (how +often will we add subcommands?), but the configuration change should +probably go in anyway, at least one person already mentioned this in a +bug report.