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 A93154196F3 for ; Wed, 21 Apr 2010 14:22:09 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: -1.5 X-Spam-Level: X-Spam-Status: No, score=-1.5 tagged_above=-999 required=5 tests=[BAYES_50=0.8, RCVD_IN_DNSWL_MED=-2.3] autolearn=ham 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 KTpm1ekJ2MKj for ; Wed, 21 Apr 2010 14:22:09 -0700 (PDT) Received: from ipex2.johnshopkins.edu (ipex2.johnshopkins.edu [162.129.8.151]) by olra.theworths.org (Postfix) with ESMTP id EA3C84196F2 for ; Wed, 21 Apr 2010 14:22:08 -0700 (PDT) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEAFcJz0uA3DZF/2dsb2JhbACcGnG1HIhdhQ4E X-IronPort-AV: E=Sophos;i="4.52,252,1270440000"; d="scan'208";a="323578513" Received: from watt.gilman.jhu.edu ([128.220.54.69]) by ipex2.johnshopkins.edu with ESMTP/TLS/ADH-AES256-SHA; 21 Apr 2010 17:22:08 -0400 Received: by watt.gilman.jhu.edu (Postfix, from userid 502) id 11B2D4E2BAA; Wed, 21 Apr 2010 17:22:08 -0400 (EDT) From: Jesse Rosenthal To: Carl Worth , notmuch@notmuchmail.org Subject: [PATCH] Reintroduce patch to quote args in notmuch-show to facilitate remote use In-Reply-To: <87pr23l429.fsf@yoom.home.cworth.org> References: <87pr23l429.fsf@yoom.home.cworth.org> Date: Wed, 21 Apr 2010 17:22:08 -0400 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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, 21 Apr 2010 21:22:09 -0000 This reintroduces the patch committed in 9193455fa1, which was reverted during the upgrade to the JSON emacs UI. --- emacs/notmuch-show.el | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/emacs/notmuch-show.el b/emacs/notmuch-show.el index 916b39e..12e5d28 100644 --- a/emacs/notmuch-show.el +++ b/emacs/notmuch-show.el @@ -470,8 +470,8 @@ function is used. " (save-excursion (let* ((basic-args (list thread-id)) (args (if query-context - (append basic-args (list "and (" query-context ")")) - basic-args))) + (append (list "\"") basic-args (list "and (" query-context ")\"")) + (append (list "\"") basic-args (list "\""))))) (notmuch-show-insert-forest (notmuch-query-get-threads args)) ;; If the query context reduced the results to nothing, run ;; the basic query. -- 1.6.5.3