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 1BBAC429E25 for ; Tue, 29 Nov 2011 09:58:32 -0800 (PST) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -0.799 X-Spam-Level: X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_FROM=0.001, 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 qwzI+nYtVFcA for ; Tue, 29 Nov 2011 09:58:31 -0800 (PST) Received: from mail-qy0-f181.google.com (mail-qy0-f181.google.com [209.85.216.181]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id A4FBD431FB6 for ; Tue, 29 Nov 2011 09:58:31 -0800 (PST) Received: by qyc1 with SMTP id 1so5613577qyc.26 for ; Tue, 29 Nov 2011 09:58:31 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:subject:user-agent:date:message-id:mime-version :content-type; bh=4o/GhxCYt4XA2Jtxs89cxCaLvUyx4XtCI/l2aXgv+SM=; b=xsoxLW74Gc7Snnq1la3/TUS6lgEVKNuhOYTx01NNXZYNR00YR2BAMGpOgditXNYC6e 1UUeVOJ71nXd/aFmKbq775mxzZAKyTdOcj9SlwlCf/tfpyqjDr/qtldmZJ0yYnWe/0ws dzeICpJU20BbGLrJNmv7XfX8QSkpXxdWAXgOE= Received: by 10.229.251.74 with SMTP id mr10mr5614903qcb.159.1322589510892; Tue, 29 Nov 2011 09:58:30 -0800 (PST) Received: from driftwood (S0106001f333bc36d.cg.shawcable.net. [68.144.78.164]) by mx.google.com with ESMTPS id o15sm38339291qaz.19.2011.11.29.09.58.28 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 29 Nov 2011 09:58:29 -0800 (PST) From: Chris Gray To: notmuch@notmuchmail.org Subject: [PATCH] emacs: Use notmuch-command variable in process-lines. User-Agent: Notmuch/0.10+41~g5aeca81 (http://notmuchmail.org) Emacs/24.0.91.1 (i486-pc-linux-gnu) Date: Tue, 29 Nov 2011 10:58:31 -0700 Message-ID: <87hb1m6cag.fsf@gmail.com> 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: Tue, 29 Nov 2011 17:58:32 -0000 The process-lines function calls the notmuch binary. The location of the binary may have been customized by the user, so it is better to use the customized location rather than allowing the process-lines function to search the user's PATH for the binary. --- emacs/notmuch.el | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/emacs/notmuch.el b/emacs/notmuch.el index f15a75b..8936149 100644 --- a/emacs/notmuch.el +++ b/emacs/notmuch.el @@ -885,7 +885,7 @@ PROMPT is the string to prompt with." "subject:" "attachment:") (mapcar (lambda (tag) (concat "tag:" tag)) - (process-lines "notmuch" "search" "--output=tags" "*"))))) + (process-lines notmuch-command "search" "--output=tags" "*"))))) (let ((keymap (copy-keymap minibuffer-local-map)) (minibuffer-completion-table (completion-table-dynamic -- 1.7.7.3