From 28a5d377b33f00ca32b25edf0cb2057ae74ac5e9 Mon Sep 17 00:00:00 2001 From: Jani Nikula Date: Wed, 19 Mar 2014 18:53:06 +0200 Subject: [PATCH] [PATCH] emacs: add path: prefix to query completion --- b5/5cc00556780e59084c879df35c0afd15b58991 | 83 +++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 b5/5cc00556780e59084c879df35c0afd15b58991 diff --git a/b5/5cc00556780e59084c879df35c0afd15b58991 b/b5/5cc00556780e59084c879df35c0afd15b58991 new file mode 100644 index 000000000..e6787b967 --- /dev/null +++ b/b5/5cc00556780e59084c879df35c0afd15b58991 @@ -0,0 +1,83 @@ +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 18831431FBF + for ; Wed, 19 Mar 2014 09:53:15 -0700 (PDT) +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 eUCcAO96hAdp for ; + Wed, 19 Mar 2014 09:53:11 -0700 (PDT) +Received: from mail-ee0-f42.google.com (mail-ee0-f42.google.com + [74.125.83.42]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client + certificate requested) by olra.theworths.org (Postfix) with ESMTPS id + 1BB2E431FAF for ; Wed, 19 Mar 2014 09:53:10 -0700 + (PDT) +Received: by mail-ee0-f42.google.com with SMTP id d17so6820668eek.15 + for ; Wed, 19 Mar 2014 09:53:09 -0700 (PDT) +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:date:message-id; + bh=U2Hh0t9qjt06AlY1BJ/0PSpCSOh1oQZPqLQpAGDJwis=; + b=Ql4KClNagYO+B9a9SS6O+QmLmZxWLUGdlP3ClOlJDxbhfQugzSJmpfyuvkH/XBoMOt + 2yW7L56CGfyM0LTXnmOB/ivHcceUkgfL94P3lWgLVMV/a1nAklfnJfEbj2zAMGvMRKlc + BDYgo2ciLmn3KL3TNiA7Y6SWxnz+WCKqkSCwiJC3X2L2JiiHUG+QfnkLz8ypSnKyg6G8 + wJ1QHN9Z9ZGrkTvtaq8ixQ00ul9Rt7ZYlhxwqU4Ru9aonLxJ+IC7RcI76ctQEcQtRNwS + HDNuB6L5yOW6jxWKTZMuQaEIxQTiwd2u24bKUNw/5mROIs56o/y0rOSLtXUXM35gbN3m + oDQw== +X-Gm-Message-State: + ALoCoQmHJqgS+EGezVXpnv1hfHF8Kbl4uAPlRSZuSIJHsW9bdQPd5JnV6cdfpAemHb+KRd3W2OgJ +X-Received: by 10.15.42.138 with SMTP id u10mr36928036eev.7.1395247989935; + Wed, 19 Mar 2014 09:53:09 -0700 (PDT) +Received: from localhost (dsl-hkibrasgw2-58c36f-91.dhcp.inet.fi. + [88.195.111.91]) by mx.google.com with ESMTPSA id + l42sm55770758eew.19.2014.03.19.09.53.08 for + (version=TLSv1.2 cipher=RC4-SHA bits=128/128); + Wed, 19 Mar 2014 09:53:09 -0700 (PDT) +From: Jani Nikula +To: notmuch@notmuchmail.org +Subject: [PATCH] emacs: add path: prefix to query completion +Date: Wed, 19 Mar 2014 18:53:06 +0200 +Message-Id: <1395247986-21323-1-git-send-email-jani@nikula.org> +X-Mailer: git-send-email 1.9.0 +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: Wed, 19 Mar 2014 16:53:15 -0000 + +Complete to the new path: prefix. +--- + emacs/notmuch.el | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/emacs/notmuch.el b/emacs/notmuch.el +index 047175001c77..65baa0cb8886 100644 +--- a/emacs/notmuch.el ++++ b/emacs/notmuch.el +@@ -829,7 +829,7 @@ See `notmuch-tag' for information on the format of TAG-CHANGES." + PROMPT is the string to prompt with." + (lexical-let + ((completions +- (append (list "folder:" "thread:" "id:" "date:" "from:" "to:" ++ (append (list "folder:" "path:" "thread:" "id:" "date:" "from:" "to:" + "subject:" "attachment:") + (mapcar (lambda (tag) + (concat "tag:" (notmuch-escape-boolean-term tag))) +-- +1.9.0 + -- 2.26.2