Function: locate-update
locate-update is a byte-compiled function defined in locate.el.gz.
Signature
(locate-update IGNORE1 IGNORE2)
Documentation
Revert the *Locate* buffer.
If locate-update-when-revert is non-nil, offer to update the
locate database using the shell command in locate-update-command.
Source Code
;; Defined in /usr/src/emacs/lisp/locate.el.gz
;; From Stephen Eglen <stephen@cns.ed.ac.uk>
(defun locate-update (_ignore1 _ignore2)
"Revert the *Locate* buffer.
If `locate-update-when-revert' is non-nil, offer to update the
locate database using the shell command in `locate-update-command'."
(let ((locate-buffer-name (buffer-name))
(locate-prompt-for-command locate-local-prompt))
(and locate-update-when-revert
(yes-or-no-p "Update locate database (may take a few seconds)? ")
;; `expand-file-name' is used in order to autoload Tramp if
;; necessary. It cannot be loaded when `default-directory'
;; is remote.
(let ((default-directory (expand-file-name locate-update-path)))
(shell-command locate-update-command)))
(locate locate-local-search locate-local-filter)))