From 1fd177e6dd82855143d8115f17c8fee809068952 Mon Sep 17 00:00:00 2001 From: Jani Nikula Date: Sun, 2 Feb 2014 13:52:58 +0200 Subject: [PATCH] Re: bash completion error with 0.17 --- 14/6969a8a95e857830ca84dc7ff2d271b26288c5 | 130 ++++++++++++++++++++++ 1 file changed, 130 insertions(+) create mode 100644 14/6969a8a95e857830ca84dc7ff2d271b26288c5 diff --git a/14/6969a8a95e857830ca84dc7ff2d271b26288c5 b/14/6969a8a95e857830ca84dc7ff2d271b26288c5 new file mode 100644 index 000000000..b3c0baec7 --- /dev/null +++ b/14/6969a8a95e857830ca84dc7ff2d271b26288c5 @@ -0,0 +1,130 @@ +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 17549431FD5 + for ; Sun, 2 Feb 2014 03:53:11 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Spam-Flag: NO +X-Spam-Score: -0.7 +X-Spam-Level: +X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5 + tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 Aznv+AfDkT4y for ; + Sun, 2 Feb 2014 03:53:03 -0800 (PST) +Received: from mail-ee0-f48.google.com (mail-ee0-f48.google.com + [74.125.83.48]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client + certificate requested) by olra.theworths.org (Postfix) with ESMTPS id + A8DEB431FC0 for ; Sun, 2 Feb 2014 03:53:03 -0800 + (PST) +Received: by mail-ee0-f48.google.com with SMTP id t10so3090201eei.35 + for ; Sun, 02 Feb 2014 03:53:01 -0800 (PST) +X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; + d=1e100.net; s=20130820; + h=x-gm-message-state:from:to:cc:subject:in-reply-to:references + :user-agent:date:message-id:mime-version:content-type; + bh=HtbObAJgNaMneSOkuNaTi6m3m8yFTTab6gaNNN4vulU=; + b=mtlslVTYO0PSx2WlxLCe7byJ+Tn+0JitS/z507toS/WMZHyuaB/j0Ku0QHfJEFZk96 + avY3cV0/JJsye9wbwCXnN1FlmHsEwuwLAMt/YfTimaX/6r6NxkUODiSWnJSA+6+4WnBd + AvqeYnIaV8xjKQvZ12h5K8yOdUdsv2tUFI/r1pOYboKRedILccPk4bfW53Y5NrxwJ4r0 + AIj3FDU3GgY3dgN1yCf4D6mZtmKev2GpNNR2QkrNNs15o/kLDlzMSUa81dok3bH+Vbxa + Dob0ugh2Mgc2txPH4T9FrNtJfWmu+J5EvQUO9yyzYmYfkgTJ11xaSDlrNGY3A7TeXhWt + 4dMw== +X-Gm-Message-State: + ALoCoQmMrPyOEJl7Di5R+zenz2dlBHE7vKivcwbBkt41MO50Bw3OHaz0iTWJX7rWOVasE8kNzq05 +X-Received: by 10.14.22.5 with SMTP id s5mr1253823ees.85.1391341981069; + Sun, 02 Feb 2014 03:53:01 -0800 (PST) +Received: from localhost (dsl-hkibrasgw2-58c36f-91.dhcp.inet.fi. + [88.195.111.91]) + by mx.google.com with ESMTPSA id k41sm60968184eey.0.2014.02.02.03.52.59 + for + (version=TLSv1.2 cipher=RC4-SHA bits=128/128); + Sun, 02 Feb 2014 03:53:00 -0800 (PST) +From: Jani Nikula +To: Anand Buddhdev +Subject: Re: bash completion error with 0.17 +In-Reply-To: + +References: + + <87a9e9yeta.fsf@nikula.org> + +User-Agent: Notmuch/0.17+44~ge3b4cd9 (http://notmuchmail.org) Emacs/24.3.1 + (x86_64-pc-linux-gnu) +Date: Sun, 02 Feb 2014 13:52:58 +0200 +Message-ID: <877g9dybmt.fsf@nikula.org> +MIME-Version: 1.0 +Content-Type: text/plain +Cc: notmuch@notmuchmail.org +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: Sun, 02 Feb 2014 11:53:11 -0000 + +On Sun, 02 Feb 2014, Anand Buddhdev wrote: +> Hi Jani, +> +> I already have bash-completion installed, although it's version 1.3. + +At a glance, it seems _init_completion was introduced in bash-completion +1.90: + +http://anonscm.debian.org/gitweb/?p=bash-completion/bash-completion.git;a=commitdiff;h=32dbe76784acc39b17ee9ca7bc21c28f4f2b23b5 + +$ git tag --contains 32dbe76784acc39b17ee9ca7bc21c28f4f2b23b5 +1.90 +1.99 +2.0 +2.1 + + +BR, +Jani. + + +> +> +> On 2 February 2014 11:44, Jani Nikula wrote: +> +>> On Sun, 02 Feb 2014, Anand Buddhdev wrote: +>> > Hi people, +>> > +>> > I've just discovered notmuch. I've installed version 0.17 on my Mac using +>> > Homebrew. I've also built a forked mutt with notmuch support, and I'm +>> > exploring setting up virtual folders, and keeping all mail in a single +>> "All +>> > Mail" Maildir, with everything just tagged, a la Gmail :) I love it. +>> > +>> > I have one issue to report: when I type "notmuch" at the command-line and +>> > press tab, bash completion gives me the following error: +>> > +>> > $ notmuch -bash: _init_completion: command not found +>> > +>> > Looks like something is missing in the bash completion script. I'd +>> > appreciate if someone could make a patch. +>> +>> You'll need the bash-completion package [1] too. I'm not sure about +>> versions, but likely reasonably recent. +>> +>> The trivial "fix" patch would likely just check for the existence of +>> _init_completion, and refuse to complete without it. For anything +>> fancier, patches welcome... +>> +>> +>> BR, +>> Jani. +>> +>> +>> [1] http://bash-completion.alioth.debian.org/ +>> -- 2.26.2