mu4e: rename to mu4e-headers-search-hook
The old name mu4e-headers-search-pre-hook was unnecessarily long.
This commit is contained in:
4
NEWS.org
4
NEWS.org
@ -21,11 +21,11 @@
|
|||||||
no exact match; small convenience that affects most the
|
no exact match; small convenience that affects most the
|
||||||
single-char option reading in mu4e.
|
single-char option reading in mu4e.
|
||||||
- Now, just before executing any search, a hook-function
|
- Now, just before executing any search, a hook-function
|
||||||
`mu4e-headers-search-pre-hook` is invoked, which receives the
|
`mu4e-headers-search-hook` is invoked, which receives the
|
||||||
search expression as its parameter.
|
search expression as its parameter.
|
||||||
- In addition there's a `mu4e-headers-search-bookmark-hook` which
|
- In addition there's a `mu4e-headers-search-bookmark-hook` which
|
||||||
gets called when searches get invoked as a bookmark (note that
|
gets called when searches get invoked as a bookmark (note that
|
||||||
`mu4e-headers-search-pre-hook` will also be called just
|
`mu4e-headers-search-hook` will also be called just
|
||||||
afterwards). This hook also receives the search expression as its
|
afterwards). This hook also receives the search expression as its
|
||||||
parameter.
|
parameter.
|
||||||
|
|
||||||
|
|||||||
@ -164,7 +164,7 @@ query have been received and are displayed."
|
|||||||
"Hook run just after we invoke a bookmarked search. This
|
"Hook run just after we invoke a bookmarked search. This
|
||||||
function receives the query as its parameter.
|
function receives the query as its parameter.
|
||||||
|
|
||||||
The reason to use this instead of `mu4e-headers-search-pre-hook'
|
The reason to use this instead of `mu4e-headers-search-hook'
|
||||||
is if you only want to execute a hook when a search is entered
|
is if you only want to execute a hook when a search is entered
|
||||||
via a bookmark, e.g. if you'd like to treat the bookmarks as a
|
via a bookmark, e.g. if you'd like to treat the bookmarks as a
|
||||||
custom folder and change the options for the search,
|
custom folder and change the options for the search,
|
||||||
@ -173,7 +173,7 @@ e.g. `mu4e-headers-show-threads', `mu4e-headers-include-related',
|
|||||||
:type 'hook
|
:type 'hook
|
||||||
:group 'mu4e-headers)
|
:group 'mu4e-headers)
|
||||||
|
|
||||||
(defcustom mu4e-headers-search-pre-hook nil
|
(defcustom mu4e-headers-search-hook nil
|
||||||
"Hook run just before executing a new search operation. This
|
"Hook run just before executing a new search operation. This
|
||||||
function receives the query as its parameter.
|
function receives the query as its parameter.
|
||||||
|
|
||||||
@ -1032,7 +1032,7 @@ the query history stack."
|
|||||||
(mu4e-context-label)))))
|
(mu4e-context-label)))))
|
||||||
|
|
||||||
(switch-to-buffer buf)
|
(switch-to-buffer buf)
|
||||||
(run-hook-with-args 'mu4e-headers-search-pre-hook expr)
|
(run-hook-with-args 'mu4e-headers-search-hook expr)
|
||||||
(mu4e~proc-find
|
(mu4e~proc-find
|
||||||
expr
|
expr
|
||||||
mu4e-headers-show-threads
|
mu4e-headers-show-threads
|
||||||
|
|||||||
@ -828,8 +828,8 @@ found during the indexing process, and if there is no current
|
|||||||
user-interaction. If you do not want such automatic updates, set
|
user-interaction. If you do not want such automatic updates, set
|
||||||
@code{mu4e-headers-auto-update} to @code{nil}.
|
@code{mu4e-headers-auto-update} to @code{nil}.
|
||||||
@item Just before executing a search, a hook-function
|
@item Just before executing a search, a hook-function
|
||||||
@code{mu4e-headers-search-pre-hook} is invoked, which receives the
|
@code{mu4e-headers-search-hook} is invoked, which receives the search
|
||||||
search expression as its parameter.
|
expression as its parameter.
|
||||||
@item Also, there is a hook-function @code{mu4e-headers-found-hook} available which
|
@item Also, there is a hook-function @code{mu4e-headers-found-hook} available which
|
||||||
is invoked just after @t{mu4e} has completed showing the messages in the
|
is invoked just after @t{mu4e} has completed showing the messages in the
|
||||||
headers-view.
|
headers-view.
|
||||||
|
|||||||
Reference in New Issue
Block a user