From: Richard M. Stallman Date: Wed, 28 Nov 2001 13:08:40 +0000 (+0000) Subject: (locate): Put point at first matching file rather than top of buffer. X-Git-Tag: ttn-vms-21-2-B4~18073 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bca3a805d5579581e24112b2ad58cd82a7fdc3a7;p=emacs.git (locate): Put point at first matching file rather than top of buffer. --- 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) ) )