From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/88251 Path: news.gmane.org!.POSTED!not-for-mail From: Eric Abrahamsen Newsgroups: gmane.emacs.gnus.general Subject: Re: problem with notmuch search in recent emacs snapshots Date: Sun, 18 Nov 2018 10:59:53 -0800 Message-ID: <877ehaqkie.fsf@ericabrahamsen.net> References: <87d0r3imnk.fsf@ucl.ac.uk> <878t1rsfwh.fsf@ericabrahamsen.net> <87d0r2zk14.fsf@ucl.ac.uk> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1542567552 12096 195.159.176.226 (18 Nov 2018 18:59:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 18 Nov 2018 18:59:12 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) To: ding@gnus.org Original-X-From: ding-owner+M36461@lists.math.uh.edu Sun Nov 18 19:59:08 2018 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from lists1.math.uh.edu ([129.7.128.208]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gOSHk-00030e-2E for ding-account@gmane.org; Sun, 18 Nov 2018 19:59:08 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by lists1.math.uh.edu with smtp (Exim 4.90_1) (envelope-from ) id 1gOSJ3-0001Wn-67; Sun, 18 Nov 2018 13:00:29 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by lists1.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1gOSIt-0001Tp-Ak for ding@lists.math.uh.edu; Sun, 18 Nov 2018 13:00:19 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.90_1) (envelope-from ) id 1gOSIb-0005YQ-C6 for ding@lists.math.uh.edu; Sun, 18 Nov 2018 13:00:19 -0600 Original-Received: from [195.159.176.226] (helo=blaine.gmane.org) by quimby.gnus.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gOSIa-0007wJ-2x for ding@gnus.org; Sun, 18 Nov 2018 20:00:00 +0100 Original-Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1gOSGS-0001WM-QV for ding@gnus.org; Sun, 18 Nov 2018 19:57:48 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 42 Original-X-Complaints-To: usenet@blaine.gmane.org Cancel-Lock: sha1:VdYAh/0ZIo/kqFqrOtf38/92fS0= X-Spam-Score: -1.1 (-) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:88251 Archived-At: Eric S Fraga writes: > On Saturday, 17 Nov 2018 at 10:44, Eric Abrahamsen wrote: >> Eric S Fraga writes: >> >>> Hello, >>> >> >> [...] >> >>> Adding a space before "(" on line 1547 of nnir.el might fix this? >>> Untested. >> >> Yes! Sorry -- I added the parentheses in afterwards, and the space >> that's currently in front of " path:%s" should have been moved before >> the parenthesis. I'm surprised the other tester didn't run into this. >> Would you be willing to move the space and give it a test? > > I've tested but no luck. There's more to this than the ()s. > > Maybe I have not set something correctly but notmuch seems to expect > search terms like "path:mail/misc" and not "path:mail.misc". I'm using > nnml. Maybe maildir works differently; not sure what you have tested > this on. Yeah, maybe I should have left this off by default. You can get the correct result by adding a filter function to `nnir-notmuch-filter-group-names-function' -- the docstring of that variable shows how to do it. But all this requires users to know in advance that things have changed, and to be willing to figure out how to adjust for their setup, and that's not quite reasonable. I think what I'll do is hard-code the `gnus-group-short-name' filter into the body of the function (using fully qualified names will never be correct), then default `nnir-notmuch-filter-group-names-function' to nil, so behavior goes back to what it was, and then let user who are willing to look into the issue set their own filters. Sorry about that, Eric