From 95b83569c467be1279374c5d30878ba979084791 Mon Sep 17 00:00:00 2001 From: Jani Nikula Date: Sun, 2 Feb 2014 12:44:17 +0200 Subject: [PATCH] Re: bash completion error with 0.17 --- 34/d704e177e9d3f9bf4cccfe3cc08ee3268a9543 | 100 ++++++++++++++++++++++ 1 file changed, 100 insertions(+) create mode 100644 34/d704e177e9d3f9bf4cccfe3cc08ee3268a9543 diff --git a/34/d704e177e9d3f9bf4cccfe3cc08ee3268a9543 b/34/d704e177e9d3f9bf4cccfe3cc08ee3268a9543 new file mode 100644 index 000000000..68f5568b0 --- /dev/null +++ b/34/d704e177e9d3f9bf4cccfe3cc08ee3268a9543 @@ -0,0 +1,100 @@ +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 0FC13431FC0 + for ; Sun, 2 Feb 2014 02:44:26 -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 OIWluYzthMUD for ; + Sun, 2 Feb 2014 02:44:21 -0800 (PST) +Received: from mail-ea0-f176.google.com (mail-ea0-f176.google.com + [209.85.215.176]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id 62D2A431FBC + for ; Sun, 2 Feb 2014 02:44:21 -0800 (PST) +Received: by mail-ea0-f176.google.com with SMTP id h14so3114911eaj.21 + for ; Sun, 02 Feb 2014 02:44:20 -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:subject:in-reply-to:references + :user-agent:date:message-id:mime-version:content-type; + bh=ULt+Et5uITQoFjFqMCRqMtZLrAXI6rHnu3ZWA5tk+6s=; + b=A8QKlMlw6eOEGS0ukzZgjTTlMep6wUSY6KkkBSKMeMvfCPAaRwvhEB0kGBeTHG7RCG + MdMEbeb+FH+I0SsTHixn/iT+8v+9FpOpCpHPvuEKlxfswdbxB9zs82QBCtWCgb6ZZonP + hViEfoWHmKQK4WKmADG3HS8NAbLIAdw9GjzhUGXs+V4vv5YI/MsBk/FwYyHzVxsnD9ZG + o97NKz5e2dXDn3JXNxOdFLI4KNF2tLgDLn9lYlkZ4EL1EkW3sZQhOwWIwYn5dqMgb268 + qbVjz3Kn4JulmuNbJqypwm9IJv4BKoF9GXBk+YR7WNpel9lMHU+Dak8FmJL1DcELV+4d + T4eQ== +X-Gm-Message-State: + ALoCoQmerdO6nCFd7J0KlTRUmu9eLtYYTbtUbolGH1iCN5Javdfk3N1WAxzautolN3MSgdxfQh1m +X-Received: by 10.14.100.204 with SMTP id z52mr963806eef.68.1391337860156; + Sun, 02 Feb 2014 02:44:20 -0800 (PST) +Received: from localhost (dsl-hkibrasgw2-58c36f-91.dhcp.inet.fi. + [88.195.111.91]) + by mx.google.com with ESMTPSA id g1sm60428469eet.6.2014.02.02.02.44.18 + for + (version=TLSv1.2 cipher=RC4-SHA bits=128/128); + Sun, 02 Feb 2014 02:44:19 -0800 (PST) +From: Jani Nikula +To: Anand Buddhdev , notmuch@notmuchmail.org +Subject: Re: bash completion error with 0.17 +In-Reply-To: + +References: + +User-Agent: Notmuch/0.17+44~ge3b4cd9 (http://notmuchmail.org) Emacs/24.3.1 + (x86_64-pc-linux-gnu) +Date: Sun, 02 Feb 2014 12:44:17 +0200 +Message-ID: <87a9e9yeta.fsf@nikula.org> +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: Sun, 02 Feb 2014 10:44:26 -0000 + +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