From: Jani Nikula Date: Fri, 7 Feb 2014 11:25:52 +0000 (+0100) Subject: [PATCH 1/2] emacs: store sort order in the widgets in notmuch-hello X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=fef1ea4f13330a3cfda69f6ed6fbe8d6bec03f0f;p=notmuch-archives.git [PATCH 1/2] emacs: store sort order in the widgets in notmuch-hello --- diff --git a/fb/476d5f8f64e5fcb4db753683bb833e4b37920e b/fb/476d5f8f64e5fcb4db753683bb833e4b37920e new file mode 100644 index 000000000..ce9bb034e --- /dev/null +++ b/fb/476d5f8f64e5fcb4db753683bb833e4b37920e @@ -0,0 +1,99 @@ +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 9541A431FC3 + for ; Fri, 7 Feb 2014 03:26:10 -0800 (PST) +X-Virus-Scanned: Debian amavisd-new at olra.theworths.org +X-Amavis-Alert: BAD HEADER SECTION, Duplicate header field: "References" +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 S2uRrT-Lu33V for ; + Fri, 7 Feb 2014 03:26:05 -0800 (PST) +Received: from mail-qc0-f179.google.com (mail-qc0-f179.google.com + [209.85.216.179]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) + (No client certificate requested) + by olra.theworths.org (Postfix) with ESMTPS id BD8D2431FB6 + for ; Fri, 7 Feb 2014 03:26:05 -0800 (PST) +Received: by mail-qc0-f179.google.com with SMTP id e16so5524184qcx.38 + for ; Fri, 07 Feb 2014 03:26:04 -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:cc:subject:date:message-id:in-reply-to + :references:in-reply-to:references; + bh=jYsM7On4Beguz6giSphEjIvJSc4SWC3fX+jkM80euTQ=; + b=joAJdCKfgilB2Pt5iIDsiCMx9/QrrDnrcZFjRv8ImWSBXspL0cCU8VyRwfIismxZzr + ddwT0KO36W7rQRlux8q63ajYz+Dn2mJB09ZxelO2o7a+Ysm5exqMtENN/HFtW7vC8c9P + 8eSsAsnX3pZNnF0zijp3xgIlRno7zkck+L+Bc97Kcv+OEoL2WX2o8zHfd8+RjsqxszW0 + JBBk6AsHhHkVWHTcZ7Rx8EalbGM/nz50y9ElgN7L+cT16FfNXe2K+/T9uGZic1iNnMuS + 47G9TIfFHrId+6+P2nY18lqntqJZARHmZTaGlnw7yJZoqCIsYC1SaINTjuwhlzl//kkE + Xxlg== +X-Gm-Message-State: + ALoCoQl2M0WfzFIuU3GzXKleJge9LXiMQeQGqTsbOwtfBtNV5cGzXE+7kkv/mBJDGHJzK8GHHFSn +X-Received: by 10.140.51.109 with SMTP id t100mr19372074qga.50.1391772364216; + Fri, 07 Feb 2014 03:26:04 -0800 (PST) +Received: from localhost ([2001:4b98:dc0:43:216:3eff:fe1b:25f3]) + by mx.google.com with ESMTPSA id 30sm8322371qgt.4.2014.02.07.03.26.03 + for + (version=TLSv1.1 cipher=RC4-SHA bits=128/128); + Fri, 07 Feb 2014 03:26:03 -0800 (PST) +From: Jani Nikula +To: notmuch@notmuchmail.org, + cworth@cworth.org +Subject: [PATCH 1/2] emacs: store sort order in the widgets in notmuch-hello +Date: Fri, 7 Feb 2014 12:25:52 +0100 +Message-Id: + <4c3876274126985683e888641b29cf18142a5eb8.1391771337.git.jani@nikula.org> +X-Mailer: git-send-email 1.7.2.5 +In-Reply-To: <1391727088-22172-1-git-send-email-cworth@cworth.org> +References: <1391727088-22172-1-git-send-email-cworth@cworth.org> +In-Reply-To: +References: +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: Fri, 07 Feb 2014 11:26:10 -0000 + +--- + emacs/notmuch-hello.el | 4 +++- + 1 files changed, 3 insertions(+), 1 deletions(-) + +diff --git a/emacs/notmuch-hello.el b/emacs/notmuch-hello.el +index 7b3d76b..1c30b47 100644 +--- a/emacs/notmuch-hello.el ++++ b/emacs/notmuch-hello.el +@@ -325,7 +325,8 @@ diagonal." + (defun notmuch-hello-widget-search (widget &rest ignore) + (notmuch-search (widget-get widget + :notmuch-search-terms) +- notmuch-search-oldest-first)) ++ (widget-get widget ++ :notmuch-search-oldest-first))) + + (defun notmuch-saved-search-count (search) + (car (process-lines notmuch-command "count" search))) +@@ -462,6 +463,7 @@ Such a list can be computed with `notmuch-hello-query-counts'." + (widget-create 'push-button + :notify #'notmuch-hello-widget-search + :notmuch-search-terms query ++ :notmuch-search-oldest-first notmuch-search-oldest-first + name) + (setq column-indent + (1+ (max 0 (- column-width (length name))))))) +-- +1.7.2.5 +