Variable: dired-isearch-filenames-mode-hook
dired-isearch-filenames-mode-hook is a customizable variable defined
in dired-aux.el.gz.
Value
nil
Documentation
Hook run after entering or leaving dired-isearch-filenames-mode(var)/dired-isearch-filenames-mode(fun).
No problems result if this variable is not bound.
add-hook automatically binds it. (This is true for all hook variables.)
Source Code
;; Defined in /usr/src/emacs/lisp/dired-aux.el.gz
(define-minor-mode dired-isearch-filenames-mode
"Toggle file names searching on or off.
When on, Isearch skips matches outside file names using the search function
`dired-isearch-search-filenames' that matches only at file names.
When off, it uses the default search function."
:lighter nil
(if dired-isearch-filenames-mode
(add-function :around (local 'isearch-search-fun-function)
#'dired-isearch-search-filenames
'((isearch-message-prefix . "filename ")))
(remove-function (local 'isearch-search-fun-function)
#'dired-isearch-search-filenames))
(when isearch-mode
(setq isearch-success t isearch-adjusted t)
(isearch-update)))