From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 73V1HYyGBGGkEgEAgWs5BA (envelope-from ) for ; Sat, 31 Jul 2021 01:09:00 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id SAqQGIyGBGE+EgAAB5/wlQ (envelope-from ) for ; Fri, 30 Jul 2021 23:09:00 +0000 Received: from mail.notmuchmail.org (nmbug.tethera.net [IPv6:2607:5300:201:3100::1657]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 3058620E9A for ; Sat, 31 Jul 2021 01:09:00 +0200 (CEST) Received: from nmbug.tethera.net (localhost [127.0.0.1]) by mail.notmuchmail.org (Postfix) with ESMTP id F0079291FF; Fri, 30 Jul 2021 19:08:54 -0400 (EDT) X-Greylist: delayed 479 seconds by postgrey-1.36 at nmbug; Tue, 26 Jan 2021 21:16:06 EST Received: from lxc-smtp.ens-lyon.fr (lxc-smtp.ens-lyon.fr [140.77.167.80]) by mail.notmuchmail.org (Postfix) with ESMTP id A02442829B for ; Tue, 26 Jan 2021 21:16:06 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by lxc-smtp.ens-lyon.fr (Postfix) with ESMTP id F235122A76 for ; Wed, 27 Jan 2021 03:08:05 +0100 (CET) X-Virus-Scanned: by amavisd-new-2.11.0 (20160426) (Debian) at ens-lyon.fr Received: from lxc-smtp.ens-lyon.fr ([127.0.0.1]) by localhost (lxc-smtp.ens-lyon.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AHgVqUE5yeGW for ; Wed, 27 Jan 2021 03:08:05 +0100 (CET) Received: from Inspiron (lfbn-idf2-1-1362-224.w92-169.abo.wanadoo.fr [92.169.171.224]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (Client did not present a certificate) by lxc-smtp.ens-lyon.fr (Postfix) with ESMTPSA id C9CE5225DD for ; Wed, 27 Jan 2021 03:08:05 +0100 (CET) From: Firmin Martin To: notmuch@notmuchmail.org Subject: (setq notmuch-search-oldest-first nil) doesn't behave as expected Date: Wed, 27 Jan 2021 03:08:03 +0100 Message-ID: <87r1m7169o.fsf@Inspiron.i-did-not-set--mail-host-address--so-tickle-me> MIME-Version: 1.0 X-MailFrom: firmin.martin@ens-lyon.fr X-Mailman-Rule-Hits: nonmember-moderation X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0 Message-ID-Hash: 27PCBEPHQQLDG5XGTG4FLVWWSUVPLTV4 X-Message-ID-Hash: 27PCBEPHQQLDG5XGTG4FLVWWSUVPLTV4 X-Mailman-Approved-At: Fri, 30 Jul 2021 23:08:52 -0400 X-Mailman-Version: 3.2.1 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Help: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1627686540; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=zOOkZkzn+bbnKljq3IgLR5jPKtgUvSEzdZgXi+sXVlc=; b=BWB6uGKaAVAx4z1g3A3+54wA9QoiBVHKLTvS3ywNGQLsVZc3Y5nSsyaAZslj5jRqhjs85y 6gKzImQv5ybmrfZiGWeCrfXytNxhwUhPqDHQwGMK+/LMmCpw1qBqLtTxvTDxHOGzb2VS/Y Rrc94XRjoT0sXEze09Bzwmx7xO+NLm/WrzP6TA8FIi3/GexvfiM85jIwVk3LbTQg1GttXc wIy1JphqeKMMqUVSVc6u6CL1ePZoq7Ek0BiTYk6fq4VlrIo2hif8sQubVZwckcRbJVLISo I8iBQ57fm7xdEARTZLia4sEhGmyAORophkUj+whZ1BDfzrSYLyrv5d+pLunKEg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1627686540; a=rsa-sha256; cv=none; b=AiK0Tc9y7wtUxsrfW18F6v3dC2pARVuOEWfkVfdfo/LZh1GZ+gSl90FmWx1AOD84w8nJUA r/a5t0fyZSYH/kY1FSA/aTMC2wA+/WTsywVKmEztHw/yhNep9wfCbK70yHZtF/BLjw7r1+ YL0J8EC31XSe/q9kN1VtV4CH7SYg32oq802+WUBckB1cOQprFv2VQLXQMf1ZxMOXVLM8+E N/LNhQYtOWIZ5swpFRvU/GAnRRqjorzpqa7eJY5Sa5wStk5nIQE6fngRE2kLuolu7tYYHJ b0bnRMJuktF6oPVonoDsLlQaIT39tFaFi7geslYd7z+TOEMOEc2uIEv4Q7ivcg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Spam-Score: -0.48 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of notmuch-bounces@notmuchmail.org designates 2607:5300:201:3100::1657 as permitted sender) smtp.mailfrom=notmuch-bounces@notmuchmail.org X-Migadu-Queue-Id: 3058620E9A X-Spam-Score: -0.48 X-Migadu-Scanner: scn1.migadu.com X-TUID: YGnA9EONk8D9 After upgraded notmuch (now 0.29.3), I realized that the following line in my init file (setq notmuch-search-oldest-first nil) didn't work anymore when I entered in "all mail". That is, my oldest emails show up firstly. However, when I evaled (notmuch-search "*") my newest emails are displayed. I checked the source code of notmuch-search and cannot understand why notmuch-search sorts my email oldest-first when it is called interactively. > (interactive > (list > ;; Prompt for a query > nil > ;; Use the default search order (if we're doing a search from a > ;; search buffer, ignore any buffer-local overrides) > (default-value 'notmuch-search-oldest-first))) For now, I can sort my email newest-first by customized the variable. But I would prefer to use setq if possible. Best, Firmin Martin