mu4e: update mu4e-headers-find-if documentation
This commit is contained in:
@ -986,8 +986,10 @@ header."
|
|||||||
"Move to the next header for which FUNC returns non-`nil',
|
"Move to the next header for which FUNC returns non-`nil',
|
||||||
starting from the current position. FUNC takes one argument, the
|
starting from the current position. FUNC takes one argument, the
|
||||||
msg s-expression for the corresponding header. If BACKWARD is
|
msg s-expression for the corresponding header. If BACKWARD is
|
||||||
non-`nil', search backwards."
|
non-`nil', search backwards. Returns the new position, or `nil' if
|
||||||
(let ((pos) (search-func (if backward 'search-backward 'search-forward)))
|
nothing was found."
|
||||||
|
(let ((pos)
|
||||||
|
(search-func (if backward 'search-backward 'search-forward)))
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(while (and (null pos)
|
(while (and (null pos)
|
||||||
(funcall search-func mu4e~headers-docid-pre nil t))
|
(funcall search-func mu4e~headers-docid-pre nil t))
|
||||||
|
|||||||
@ -2380,11 +2380,13 @@ action}
|
|||||||
@end itemize
|
@end itemize
|
||||||
|
|
||||||
@noindent
|
@noindent
|
||||||
You can also write your own functions without using the above. If you want to
|
You can also write your own functions without using the above. If you
|
||||||
do so, key useful functions are @code{mu4e-message-at-point} (see below),
|
want to do so, key useful functions are @code{mu4e-message-at-point}
|
||||||
@code{mu4e-headers-for-each} (to iterate over all headers, see its docstring)
|
(see below), @code{mu4e-headers-for-each} (to iterate over all headers,
|
||||||
and @code{mu4e-view-for-each-part} (to iterate over all parts/attachments, see
|
see its docstring) and @code{mu4e-view-for-each-part} (to iterate over
|
||||||
its docstring).
|
all parts/attachments, see its docstring). Another useful function is
|
||||||
|
@code{mu4e-headers-find-if}, which searches for a message matching a
|
||||||
|
certain pattern; again, see its docstring.
|
||||||
|
|
||||||
@node Available functions
|
@node Available functions
|
||||||
@section Available functions
|
@section Available functions
|
||||||
|
|||||||
Reference in New Issue
Block a user