From: Tomi Ollila <tomi.ollila@iki.fi>
To: Uli Scholler <uli@scholler.net>, notmuch@notmuchmail.org
Subject: Re: [PATCH v2] emacs: wrap current search in parens when filtering
Date: Sun, 06 Sep 2015 12:19:07 +0300 [thread overview]
Message-ID: <m2mvwz29dg.fsf@guru.guru-group.fi> (raw)
In-Reply-To: <87oahgi8ab.fsf@maritornes.cs.unb.ca>
On Sun, Sep 06 2015, David Bremner <david@tethera.net> wrote:
> Some pretty fussy comments follow. Probably I could have fixed these in
> the time it took to write this message ;).
>
> Uli Scholler <uli@scholler.net> writes:
>> + (let ((grouped-query (notmuch-maybe-group-query-string query))
>> + (grouped-search-query (notmuch-maybe-group-query-string notmuch-search-query-string)))
>
> - I didn't find it very obvious which of these introduced variables was
> which. I thought maybe "grouped-original-query" for the second
> one. It's pretty subjective though, so your call.
Yes, naming is hard. I have an additional suggestion:
notmuch-maybe-group-query-string could be written as
notmuch-group-disjunctive-query-string
> - The lines get pretty long here. We try to keep code to 80 columns.
In this case the status quo did not change -- e.g. one line that was
replaced was even longer. Anyway, shorter lines would be welcome
improvements.
> - Your revised patch isn't in quite the right format for git am;
> the actual commit message get's lost. The unintuitive trick is to add
> commentary in the patch after the ---
Yes. A good custom is to try to git-am the file before sending if it has
been edited after git format-patch is used to create it -- or even if it
not edited, to catch any indesired "whitespace" etc. additions..
Tomi
>
>> + (notmuch-search (if (string= grouped-search-query "*")
>> grouped-query
>> - (concat notmuch-search-query-string " and " grouped-query)) notmuch-search-oldest-first)))
>> + (concat grouped-search-query " and " grouped-query)) notmuch-search-oldest-first)))
> _______________________________________________
> notmuch mailing list
> notmuch@notmuchmail.org
> http://notmuchmail.org/mailman/listinfo/notmuch
next prev parent reply other threads:[~2015-09-06 9:20 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-09-02 21:57 [PATCH] emacs: wrap current search in parens when filtering Uli Scholler
2015-09-03 7:32 ` Tomi Ollila
2015-09-03 21:54 ` [PATCH v2] " Uli Scholler
2015-09-06 2:35 ` David Bremner
2015-09-06 9:19 ` Tomi Ollila [this message]
2015-09-06 21:29 ` [PATCH v3] " Uli Scholler
2015-09-07 6:14 ` Tomi Ollila
2015-09-07 12:50 ` David Bremner
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://notmuchmail.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2mvwz29dg.fsf@guru.guru-group.fi \
--to=tomi.ollila@iki.fi \
--cc=notmuch@notmuchmail.org \
--cc=uli@scholler.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhetil.org/notmuch.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).