From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from localhost (localhost [127.0.0.1]) by arlo.cworth.org (Postfix) with ESMTP id 0B9556DE02AF for ; Thu, 4 Aug 2016 09:19:19 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at cworth.org X-Spam-Flag: NO X-Spam-Score: -0.571 X-Spam-Level: X-Spam-Status: No, score=-0.571 tagged_above=-999 required=5 tests=[AWL=0.149, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Received: from arlo.cworth.org ([127.0.0.1]) by localhost (arlo.cworth.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id V8ajJIy1By28 for ; Thu, 4 Aug 2016 09:19:10 -0700 (PDT) Received: from mail-wm0-f48.google.com (mail-wm0-f48.google.com [74.125.82.48]) by arlo.cworth.org (Postfix) with ESMTPS id 0D6FC6DE01EE for ; Thu, 4 Aug 2016 09:19:10 -0700 (PDT) Received: by mail-wm0-f48.google.com with SMTP id p129so3361287wmp.0 for ; Thu, 04 Aug 2016 09:19:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nikula-org.20150623.gappssmtp.com; s=20150623; h=from:to:subject:in-reply-to:references:user-agent:date:message-id :mime-version; bh=/MVgxaiqDhzuxIje0iSDaNyP5r8LlljwkiUeBoktjzw=; b=Ph7KdoWVrQFooxASd0B3pZRWbUKBSVCNpVnPFOP53ciD3uf+pktnTPkn93C/iltjyo JaGszuXiSZLVOX+RjgU7WnXBKL/s8vy8YwQLNNNqnWS7MbV4ush21dAeQgd2rtZXUvup mazgJwCjHCwgIfoThFvRVEfLL1CbEz9U+7iZU53Fh78K9C5J/UQiDKjBjoRaQ36dwRyz 68ndQCWFDxWlil+TQEfbtUdpNrRTbSVJiF+wCO5T3VQg/wc2aCW/8N2z6QcNvL8dElfq HCLzhtN+E8lVTbdoR5QGa31LRFu65yNuYaGyHNKveopEhHvFQzY2DwkN5dhTjKMDhftJ XWnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:in-reply-to:references :user-agent:date:message-id:mime-version; bh=/MVgxaiqDhzuxIje0iSDaNyP5r8LlljwkiUeBoktjzw=; b=DgOyXHosRWhl3Iaj8O72POugbPmtOhdH6dwzrSX32pdph65NRl6NRN+bFI6SB2q31B VSi/5ljluaDkLUkTIQVvw+fR2NLO6JeHE1keAaBsymT/yoUx1lX02xYLrJp0gGvA2Ohj BgZwU+kiifnqzRTCP6jZKigLJ2BPOdrAjNYAcCmIG381DYfYD30tlHex6iXvjJmJObkp Zx2pG/a0wxo+QqHxtA6N+rnfwRsF2M7fIpU2Bj8607cimq6d72l5A1dWiLVxI66xfsHd crtZqra7Sd6MW+4K5qO62KvrKD7M89U+6O3pgDzL8fc41Y72++dams/L/68sdKl4dlkH kzsw== X-Gm-Message-State: AEkoouslAZhgjCbHXzAZh8UHpZY+iMDYktRUm7itjc2L5YW1MGlPmvlH0eS8DLM5Hz7Y3A== X-Received: by 10.28.238.88 with SMTP id m85mr70933087wmh.92.1470327548446; Thu, 04 Aug 2016 09:19:08 -0700 (PDT) Received: from localhost (mobile-access-bcee5c-212.dhcp.inet.fi. [188.238.92.212]) by smtp.gmail.com with ESMTPSA id s6sm13559495wjm.25.2016.08.04.09.19.07 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 04 Aug 2016 09:19:07 -0700 (PDT) From: Jani Nikula To: Matt Armstrong , notmuch@notmuchmail.org Subject: Re: notmuch.el: controlling what does and doesn't get expanded in searches In-Reply-To: References: User-Agent: Notmuch/0.22+35~g6a833a6 (https://notmuchmail.org) Emacs/24.4.1 (x86_64-pc-linux-gnu) Date: Thu, 04 Aug 2016 19:17:44 +0300 Message-ID: <87a8gsv787.fsf@nikula.org> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.20 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: Thu, 04 Aug 2016 16:19:19 -0000 On Thu, 04 Aug 2016, Matt Armstrong wrote: > This question pertains to notmuch built from recent git HEAD, using > notmuch.el in show mode (i.e. not tree mode). > > I sometimes read a thread with a bunch of messages and notmuch.el > collapses a bunch of them (even if unread and the search matches tags > in every message). I can't figure out the heuristic notmuch is > applying here. The idea is that all the messages matching the query are expanded, the others collapsed. Each expanded message must fully match the query. The unread or inbox tags are not special in this regard. I am not saying this is ideal, but this is how it's supposed to work. (Indeed I'd personally like to define e.g. saved search specific tags or queries to use for deciding which messages to expand.) > In particular, pressing SPC does not seem to navigate to the collapsed > messages (again, even if they are unread). SPC and n and p are supposed to navigate expanded messages only. N and P navigate all messages (but do not expand by default). Again, the tags the messages have do not matter. You can manually expand/collapse messages, and that'll affect the navigation. > Worst case: only the first messages is initially expanded and all > subsequent are collapsed. I press SPC and the cursor goes to the end of > search results. SPC again all the entire thread is archived. > > This behavior has caused me to accidentally skip messages. First step > for me is understanding what is going on so I can fix it. Yes, let's first check that notmuch behaves as it is expected, and then figure out how to improve it. BR, Jani.