--- /dev/null
+Return-Path: <jani@nikula.org>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by olra.theworths.org (Postfix) with ESMTP id 16743431FDD\r
+ for <notmuch@notmuchmail.org>; Wed, 12 Mar 2014 13:34:03 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+ tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+ by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id yoPoXdFbflf7 for <notmuch@notmuchmail.org>;\r
+ Wed, 12 Mar 2014 13:33:57 -0700 (PDT)\r
+Received: from mail-ee0-f44.google.com (mail-ee0-f44.google.com\r
+ [74.125.83.44]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client\r
+ certificate requested) by olra.theworths.org (Postfix) with ESMTPS id\r
+ 57709431FC0 for <notmuch@notmuchmail.org>; Wed, 12 Mar 2014 13:33:57 -0700\r
+ (PDT)\r
+Received: by mail-ee0-f44.google.com with SMTP id e49so18719eek.31\r
+ for <notmuch@notmuchmail.org>; Wed, 12 Mar 2014 13:33:54 -0700 (PDT)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+ d=1e100.net; s=20130820;\r
+ h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to\r
+ :references;\r
+ bh=gELiUbRWvzc+cdf6GTfSoNAO+AaAssqGTh/7yGtB7yE=;\r
+ b=fD4aaAk0FxokNzXNJPsgzQ//onsvtnDIgI98HsOfTgi1PxxYOjONQI0Cx+Fkwu32wE\r
+ cUDN2SzkUVW0lJInGg3FqNTFjlDmVGPwz93fClvXz93+8/PozKSZL4OKwvTFupBEh51x\r
+ 2nma1FGwrwvkTrW9cHYrGgWtBuuj87FhFd1KTDx7mjcRfUy/X+ilRm/SR3e35ztkltRi\r
+ M06scupHmV+XrEhkUbKT7S3VpsAejsy4l3nirGmtcbTEZpPUVFfzq71Vx/ET2JukW4jS\r
+ Om1RbgfCcMWs9TSKH54fx/a3wsSYZyJnbN/mJp6mQjkFJkA8bLmI5BbKTVTNyWPCAx4R\r
+ RDQw==\r
+X-Gm-Message-State:\r
+ ALoCoQli4K+iCzfCzNghm9OSRGewNvnKWHTp0QkgvDA9YrVJ9UrsHiHLc9vF2F1Fryv1WqR7GJ0k\r
+X-Received: by 10.14.198.197 with SMTP id v45mr34563264een.9.1394656434802;\r
+ Wed, 12 Mar 2014 13:33:54 -0700 (PDT)\r
+Received: from localhost (dsl-hkibrasgw2-58c36f-91.dhcp.inet.fi.\r
+ [88.195.111.91])\r
+ by mx.google.com with ESMTPSA id m1sm11636een.7.2014.03.12.13.33.53\r
+ for <multiple recipients>\r
+ (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
+ Wed, 12 Mar 2014 13:33:54 -0700 (PDT)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH 2/2] completion: complete directory parameters to directories\r
+ only\r
+Date: Wed, 12 Mar 2014 22:33:49 +0200\r
+Message-Id: <1394656429-1409-2-git-send-email-jani@nikula.org>\r
+X-Mailer: git-send-email 1.9.0\r
+In-Reply-To: <1394656429-1409-1-git-send-email-jani@nikula.org>\r
+References: <1394656429-1409-1-git-send-email-jani@nikula.org>\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Wed, 12 Mar 2014 20:34:03 -0000\r
+\r
+i.e. don't complete to files if only directories are acceptable.\r
+---\r
+ completion/notmuch-completion.bash | 4 ++--\r
+ 1 file changed, 2 insertions(+), 2 deletions(-)\r
+\r
+diff --git a/completion/notmuch-completion.bash b/completion/notmuch-completion.bash\r
+index 59f1a3ea6431..d88c5e7d965e 100644\r
+--- a/completion/notmuch-completion.bash\r
++++ b/completion/notmuch-completion.bash\r
+@@ -78,7 +78,7 @@ _notmuch_compact()\r
+ $split &&\r
+ case "${prev}" in\r
+ --backup)\r
+- _filedir\r
++ _filedir -d\r
+ return\r
+ ;;\r
+ esac\r
+@@ -107,7 +107,7 @@ _notmuch_config()\r
+ ;;\r
+ # these will also complete on config get, but we don't care\r
+ database.path)\r
+- _filedir\r
++ _filedir -d\r
+ ;;\r
+ maildir.synchronize_flags)\r
+ COMPREPLY=( $(compgen -W "true false" -- ${cur}) )\r
+-- \r
+1.9.0\r
+\r