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 64D93431FB6 for ; Tue, 2 Oct 2012 13:18:14 -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 JmpIVWMPxBoW for ; Tue, 2 Oct 2012 13:18:13 -0700 (PDT) Received: from mail-qc0-f181.google.com (mail-qc0-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 0D05F431FAE for ; Tue, 2 Oct 2012 13:18:13 -0700 (PDT) Received: by qcpx40 with SMTP id x40so6183217qcp.26 for ; Tue, 02 Oct 2012 13:18:11 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:x-gm-message-state; bh=Kp9Faa4yWumRtILpKePj0uJtkMrwY0ddrXaHkFrAp7U=; b=IGVxIL9WGco/bTCdBE3TgtlWyc6h6D43HwU60h0umu509pHSNakttiuxwam0M/OuIy nHlygxHhKvhiip5KAHeM8iS/SfUUQ/yI5ETRBA4dADJNif9d8RPAEeiXlMgTbjIt5hl0 mPT7sBOfwgqomzNk9WyN61R64Vz4PiwYF/G37iXen6ttA4jy/8RPvMpaMRsP0+3G/TgX GmEfmBvlwGbZahHwnRldRv6KUtk8TTs62nI7jrl1DIUDWS5uwzQQaY9M+eyG2xEjJlom eZK5lD02G/0K1OcQQJIwoWT2DfsMJ5rReCTKHGbzoeb0KQt43cUG4F+HBAiGB0E+JuF8 kPDA== Received: by 10.49.48.43 with SMTP id i11mr7667308qen.10.1349209091303; Tue, 02 Oct 2012 13:18:11 -0700 (PDT) Received: from localhost ([2001:4b98:dc0:43:216:3eff:fe1b:25f3]) by mx.google.com with ESMTPS id em3sm2313786qab.5.2012.10.02.13.18.08 (version=SSLv3 cipher=OTHER); Tue, 02 Oct 2012 13:18:10 -0700 (PDT) From: Jani Nikula To: notmuch@notmuchmail.org Subject: [PATCH 0/2] emacs: per saved search sort order Date: Tue, 2 Oct 2012 22:18:01 +0200 Message-Id: <1349209083-7170-1-git-send-email-jani@nikula.org> X-Mailer: git-send-email 1.7.2.5 X-Gm-Message-State: ALoCoQk24R6+fRIrKSzROzM4eo5NoBXZWs3gpk8ZTVSIqa9xKp/bFKKYY5XsNIxyTl7JOpVmp66Y 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, 02 Oct 2012 20:18:14 -0000 These (fairly unpolished) patches add support for defining the sort order for each saved search individually. The approach is very low-tech and simple; providing a separate alist which maps saved search names with sort order for the saved searches that should have a sort order overriding the default notmuch-search-oldest-first. Having this embedded directly in notmuch-saved-searches would be nicer, but also much more complicated due to backwards compatibility issues. I presume the diffstat would be at least an order of magnitude bigger. The patches may not be up to notmuch standards, but I'm providing them anyway should anyone find them useful. BR, Jani. Jani Nikula (2): emacs: store sort order in the widgets in notmuch-hello emacs: add support for defining custom sort order for saved searches emacs/notmuch-hello.el | 10 +++++++--- emacs/notmuch-lib.el | 9 +++++++++ 2 files changed, 16 insertions(+), 3 deletions(-) -- 1.7.2.5