mu4e.texi: update mu4e-search references

The -headers- names were obsoleted.

Resolves #2407.
This commit is contained in:
Dirk-Jan C. Binnema 2023-01-14 19:58:27 +02:00
parent d428219ee6
commit 526742af9f
1 changed files with 9 additions and 9 deletions

View File

@ -942,7 +942,7 @@ 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-hook} is invoked, which receives the search @code{mu4e-search-hook} is invoked, which receives the 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
@ -2010,7 +2010,7 @@ It is defining a function to make the code more readable.
@subsection Editing bookmarks before searching @subsection Editing bookmarks before searching
There is also @kbd{M-x mu4e-headers-search-bookmark-edit} (key @key{B}), which There is also @kbd{M-x mu4e-search-bookmark-edit} (key @key{B}), which
lets you edit the bookmarked query before invoking it. This can be useful if lets you edit the bookmarked query before invoking it. This can be useful if
you have many similar queries, but need to change some parameter. For example, you have many similar queries, but need to change some parameter. For example,
you could have a bookmark @samp{"date:today..now AND "}@footnote{Not a valid you could have a bookmark @samp{"date:today..now AND "}@footnote{Not a valid
@ -2091,11 +2091,11 @@ clauses to the current query to match fewer messages.
For example, suppose you're looking at some mailing list, perhaps by For example, suppose you're looking at some mailing list, perhaps by
jumping to a maildir (@kbd{M-x mu4e-headers-jump-to-maildir}, @key{j}) or jumping to a maildir (@kbd{M-x mu4e-headers-jump-to-maildir}, @key{j}) or
because you followed some bookmark (@kbd{M-x mu4e-headers-search-bookmark}, because you followed some bookmark (@kbd{M-x mu4e-search-bookmark},
@key{b}). Now, you want to narrow things down to only those messages that have @key{b}). Now, you want to narrow things down to only those messages that have
attachments. attachments.
This is when @kbd{M-x mu4e-headers-search-narrow} (@key{/}) comes in handy. It This is when @kbd{M-x mu4e-search-narrow} (@key{/}) comes in handy. It
asks for an additional search pattern, which is appended to the current search asks for an additional search pattern, which is appended to the current search
query, in effect getting you the subset of the currently shown headers that query, in effect getting you the subset of the currently shown headers that
also match this extra search pattern. @key{\} takes you back to the previous also match this extra search pattern. @key{\} takes you back to the previous
@ -2823,7 +2823,7 @@ sender of the message at point:
@lisp @lisp
(defun search-for-sender (msg) (defun search-for-sender (msg)
"Search for messages sent by the sender of the message at point." "Search for messages sent by the sender of the message at point."
(mu4e-headers-search (mu4e-search
(concat "from:" (concat "from:"
(mu4e-contact-email (car (mu4e-message-field msg :from)))))) (mu4e-contact-email (car (mu4e-message-field msg :from))))))
@ -3497,13 +3497,13 @@ With Hydra installed, we can add multi-character shortcuts, for instance:
@lisp @lisp
(defhydra my-mu4e-bookmarks-work (:color blue) (defhydra my-mu4e-bookmarks-work (:color blue)
"work bookmarks" "work bookmarks"
("b" (mu4e-headers-search "banana AND maildir:/work") "banana") ("b" (mu4e-search "banana AND maildir:/work") "banana")
("u" (mu4e-headers-search "flag:unread AND maildir:/work") "unread")) ("u" (mu4e-search "flag:unread AND maildir:/work") "unread"))
(defhydra my-mu4e-bookmarks-personal (:color blue) (defhydra my-mu4e-bookmarks-personal (:color blue)
"personal bookmarks" "personal bookmarks"
("c" (mu4e-headers-search "capybara AND maildir:/personal") "capybara") ("c" (mu4e-search "capybara AND maildir:/personal") "capybara")
("u" (mu4e-headers-search "flag:unread AND maildir:/personal") "unread")) ("u" (mu4e-search "flag:unread AND maildir:/personal") "unread"))
(defhydra my-mu4e-bookmarks (:color blue) (defhydra my-mu4e-bookmarks (:color blue)
"mu4e bookmarks" "mu4e bookmarks"