(locate-prompt-for-search-string): New function.
(locate): Make locate-local-prompt buffer-local. Use
locate-prompt-for-search-string.
(locate-with-filter): New optional arg. Use
locate-prompt-for-search-string.
(locate-update): Bind locate-prompt-for-command.
(locate-local-filter, locate-local-search): New vars.
(locate): Make variables local.
(locate-update): Bind locate-buffer-name. Call locate using
locate-local-filter and locate-local-search.
(locate): Set buffer local value. Use current buffer if it is in Locate mode.
(locate-mode): Disable undo here.
(locate-do-setup): Use locate-current-filter from buffer to be killed.
(locate-update): Use locate-current-search and locate-current-filter.
(locate-update-path): New option (suggested by Michael Albinus).
(locate-prompt-for-command): Whitespace change.
(locate-update): No longer offer to update the locate database by
default. Implement the two new options.
(locate-fcodes-file, locate-update-command)
(locate-prompt-for-command, locate, locate-with-filter)
(locate-get-file-positions): Doc fixes.
(locate-buffer-name, locate-header-face): Remove leading `*' in defcustom.
(locate-filter-output): Use `keep-lines' instead of its alias
`delete-non-matching-lines'.
(locate-get-filename, locate-get-dirname): Add introductory comment.
(locate-find-directory-other-window): Give appropriate error
message if used outside main listing.
defvar. Replaces `dired-move-to-filename-regexp' from dired.el.
* dired.el (dired-move-to-filename-regexp): Removed. All
occurences replaced by `directory-listing-before-filename-regexp'.
* dired-x.el, locate.el, vc.el: Replace
`dired-move-to-filename-regexp' by
`directory-listing-before-filename-regexp'. In vc.el it is
overwritten locally; maybe this can be handled in files.el too.
* net/ange-ftp.el (ange-ftp-date-regexp): Removed. All occurences
replaced by `directory-listing-before-filename-regexp'.
* faq.texi (Bugs and problems): Replace
`dired-move-to-filename-regexp' by
`directory-listing-before-filename-regexp'.
(locate-ls-subdir-switches): New user option.
(locate): Update for other changes.
(locate-mode-map): Restore Dired binding for mouse-2.
Bind `locate-mouse-view-file' to M-mouse-2.
Bind `l' to `locate-do-redisplay'.
(locate-main-listing-line-p, locate-do-redisplay): New functions.
(locate-mouse-view-file, locate-tags, locate-find-directory):
Print message if used outside main listing.
(locate-mode): Update docstring. Make `*Locate*' buffer read-only.
Various changes to support inserted subdirectories.
(locate-insert-header): Change header of *Locate* buffer.
(locate): Added locate-post-command-hook.
(locate-prompt-for-command): Added this variable.
(locate): If locate-prompt-for-command is set, prompt for a command
to run to populate the locate buffer as the default behavior.
(locate-update): Add prefix arg to locate call.
(locate-with-filter): Add prefix arg to locate call.
(locate): Add prefix arg. If set, the function prompts the user
(locate-mouse-face): No longer needed.
(locate-mode): Setup `dired-subdir-alist' cleanly using `dired-alist-add-1'.
(locate-set-properties): Set properties cleanly using
`dired-insert-set-properties', giving dired like output.
for a command to run instead of the default one.
(locate-grep-history-list): Added this variable.
(locate-with-filter): Use locate-grep-history-list instead of grep-history.
(locate-filter-output): filter is not regexp-quoted.
(locate-mode-map): Added keybinding for locate-find-directory.
Changed keybinding for "U" from dired-unmark-all-files-no-query
to dired-unmark-all-files.
(locate-find-directory): Added this function.
(locate-find-directory-other-window): Added this function.
(locate-get-dirname): Added this function.
(locate-mouse-view-file): Renamed mouse-locate-view-file to this name.