mu4e: update mu4e-headers-find-if documentation

This commit is contained in:
djcb
2014-11-22 17:27:15 +02:00
parent 7eac4ac918
commit 8f9499c0c9
2 changed files with 11 additions and 7 deletions

View File

@ -986,8 +986,10 @@ header."
"Move to the next header for which FUNC returns non-`nil',
starting from the current position. FUNC takes one argument, the
msg s-expression for the corresponding header. If BACKWARD is
non-`nil', search backwards."
(let ((pos) (search-func (if backward 'search-backward 'search-forward)))
non-`nil', search backwards. Returns the new position, or `nil' if
nothing was found."
(let ((pos)
(search-func (if backward 'search-backward 'search-forward)))
(save-excursion
(while (and (null pos)
(funcall search-func mu4e~headers-docid-pre nil t))