summaryrefslogtreecommitdiff
path: root/lisp/locate.el
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>2001-11-28 13:08:40 +0000
committerRichard M. Stallman <rms@gnu.org>2001-11-28 13:08:40 +0000
commitbca3a805d5579581e24112b2ad58cd82a7fdc3a7 (patch)
tree8b9c1d8abff2388829a9c92a4a2ee8801156892b /lisp/locate.el
parent7e6b76ac19c26287bb3e972abe003200425c60da (diff)
(locate): Put point at first matching file rather than top of buffer.
Diffstat (limited to 'lisp/locate.el')
-rw-r--r--lisp/locate.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/locate.el b/lisp/locate.el
index 6d5967a5750..12eb08a0326 100644
--- a/lisp/locate.el
+++ b/lisp/locate.el
@@ -240,6 +240,7 @@ With prefix arg, prompt for the locate command to run."
(switch-to-buffer-other-window locate-buffer-name))
(run-hooks 'dired-mode-hook)
+ (dired-next-line 2) ;move to first matching file.
(run-hooks 'locate-post-command-hook)
)
)