On Tue, Nov 15, 2016 at 11:44:44AM -0800, David Champion wrote:
> * On 15 Nov 2016, Damien Riegel wrote: 
> > 
> > Exactly, I should have written "mutt will now try to *additionnaly*
> > locate [...]". So it will search at these locations in that order:
> > 
> >     ~/.muttrc(-MUTT_VERSION)
> >     ~/.mutt/muttrc(-MUTT_VERSION)
> >     ~/.config/mutt/muttrc(-MUTT_VERSION)
> > 
> > My personal preference would have been to search in ~/.config first, but
> > it's more conservative this way. The order can be easily changed though.
> 
> Great, thank you!  I do like using the extensible search algorithm
> instead of a list of possible files.  Good improvement.
> 
> Idea: for your next trick, want to make it find [/etc/]Muttrc using
> the same search procedure (in a different invocation with different
> parameters, of course)?

Yes, that's the next step. XDG defines the XDG_CONFIG_DIRS environment
variable to look for configuration files, so I will use that in addition
to SYSCONFDIR and PKGDATADIR.

(Thanks Kevin for fixing the stop condition in the for loop in previous
patch)

-- 
Damien

Reply via email to