# HG changeset patch # User Luc Teirlinck # Date 1085108968 0 # Node ID 0033865a2a2fc466e6e5e0c12088ab5ea33c99b8 # Parent 23826e112618650f93ba0464f9b40efef09830f8 (locate-prompt-for-command): Shorten first line of docstring. (locate-mode): Expand docstring and include keymap summary. diff -r 23826e112618 -r 0033865a2a2f lisp/locate.el --- a/lisp/locate.el Thu May 20 23:32:27 2004 +0000 +++ b/lisp/locate.el Fri May 21 03:09:28 2004 +0000 @@ -160,7 +160,7 @@ :group 'locate) (defcustom locate-prompt-for-command nil - "If non-nil, the default behavior of the locate command is to prompt for a command to run. + "If non-nil, the locate command prompts for a command to run. Otherwise, that behavior is invoked via a prefix argument." :group 'locate :type 'boolean @@ -329,7 +329,11 @@ ;; Default directory is set to "/" so that dired commands, which ;; expect to be in a tree, will work properly (defun locate-mode () - "Major mode for the `*Locate*' buffer made by \\[locate]." + "Major mode for the `*Locate*' buffer made by \\[locate]. +In that buffer, you can use almost all the usual dired bindings. +\\[locate-find-directory] visits the directory of the file on the current line. + +\\{locate-mode-map}" (kill-all-local-variables) ;; Avoid clobbering this variables (make-local-variable 'dired-subdir-alist)