diff options
| author | Eric Abrahamsen | 2018-11-19 10:03:16 -0800 |
|---|---|---|
| committer | Eric Abrahamsen | 2018-11-21 08:38:37 -0800 |
| commit | e01d030723aef2f90a2fc53a0b5251f29df94527 (patch) | |
| tree | 0a96b35f32c45951c8e1e5ce9479bab8960ce913 /doc/misc | |
| parent | d15d72b27de3db2f7e49398c7d3da9465b774398 (diff) | |
| download | emacs-e01d030723aef2f90a2fc53a0b5251f29df94527.tar.gz emacs-e01d030723aef2f90a2fc53a0b5251f29df94527.zip | |
Fix "Allow use of Gnus search groups as notmuch path: search term"
* lisp/gnus/nnir.el (nnir-notmuch-filter-group-names-function):
Default to nil -- getting correct behavior requires user
intervention too often to have this enabled by default.
* lisp/gnus/nnir.el (nnir-run-notmuch): If the user has turned this
on, then also hardcode `gnus-group-short-name' as a filter -- things
will never work without it. Also move leading space to before the
opening parenthesis.
* doc/misc/gnus.texi: Document option.
(Bug#33122)
Diffstat (limited to 'doc/misc')
| -rw-r--r-- | doc/misc/gnus.texi | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/misc/gnus.texi b/doc/misc/gnus.texi index fb9113f4608..d1c746c2e56 100644 --- a/doc/misc/gnus.texi +++ b/doc/misc/gnus.texi | |||
| @@ -21468,6 +21468,18 @@ The prefix to remove from each file name returned by notmuch in order | |||
| 21468 | to get a group name (albeit with @samp{/} instead of @samp{.}). This | 21468 | to get a group name (albeit with @samp{/} instead of @samp{.}). This |
| 21469 | is a regular expression. | 21469 | is a regular expression. |
| 21470 | 21470 | ||
| 21471 | @item nnir-notmuch-filter-group-names-function | ||
| 21472 | A function used to transform the names of groups being searched in, | ||
| 21473 | for use as a ``path:'' search keyword for notmuch. If nil, the | ||
| 21474 | default, ``path:'' keywords are not used. Otherwise, this should be a | ||
| 21475 | callable which accepts a single group name and returns a transformed | ||
| 21476 | name as notmuch expects to see it. In many mail backends, for | ||
| 21477 | instance, dots in group names must be converted to forward slashes: to | ||
| 21478 | achieve this, set this option to | ||
| 21479 | @example | ||
| 21480 | (lambda (g) (replace-regexp-in-string "\\." "/" g)) | ||
| 21481 | @end example | ||
| 21482 | |||
| 21471 | @end table | 21483 | @end table |
| 21472 | 21484 | ||
| 21473 | 21485 | ||