Re: (Emacs) Use tree view by default from notmuch-hello and notmuch-jump ?

Subject: Re: (Emacs) Use tree view by default from notmuch-hello and notmuch-jump ?

Date: Mon, 18 Mar 2024 10:02:52 -0400

To: David Bremner, notmuch@notmuchmail.org

Cc:

From: Michael Graham


David Bremner <david@tethera.net> writes:

> Michael Graham <magog@the-wire.com> writes: 
>> I have a bunch of saved searches, which I configure like this: 
>> (push '(:name "Personal Unscreened"  
>>         :query "tag:inbox AND tag:unread AND (NOT 
>>         query:screened-addresses)" :key "u" :search-type 'tree)  
>>       notmuch-saved-searches) 
>>         
>> But when I run the search, it always the results in search view 
>> (notmuch-search-mode). 
>> 
> 
> I think it's just a problem with too much quoting (try tree 
> without ', since you already quoted the outside expression). 

Thank you, David!  This fixed it:

  (push '(:name "Personal Unscreened" 
          :query "tag:inbox AND tag:unread AND (NOT 
          query:screened-addresses) :key "u" :search-type tree) 
        notmuch-saved-searches) 

I had actually tried 'tree and "tree" but not just the unquoted: 
tree
 
> Even for people that prefer not to use customize, inspecting the 
> expression that M-x customize-variable generates can help debug 
> these kind of problems (that's what I did to see what was wrong 
> with your example).
>

Thank you, that's good advice.  I think it's probably time for me 
to spend some time understanding elisp quoting.  I'm always a 
little confused by it.


Michael





_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org

Thread: