X-Git-Url: http://git.hcoop.net/bpt/emacs.git/blobdiff_plain/9efd720d16c6a8adba600cfb303b4bd75d7c6cdf..73b1b3ad6196234984a29298bc66eabf1299de66:/lisp/locate.el diff --git a/lisp/locate.el b/lisp/locate.el index 4c4312b959..ab0417070e 100644 --- a/lisp/locate.el +++ b/lisp/locate.el @@ -1,7 +1,6 @@ ;;; locate.el --- interface to the locate command -;; Copyright (C) 1996, 1998, 2001, 2002, 2003, 2004, 2005, 2006, 2007, -;; 2008, 2009, 2010 Free Software Foundation, Inc. +;; Copyright (C) 1996, 1998, 2001-2013 Free Software Foundation, Inc. ;; Author: Peter Breton ;; Keywords: unix files @@ -35,7 +34,7 @@ ;; ;; SHELLPROGRAM Name-to-find ;; -;; set the variable `locate-command' in your .emacs file. +;; set the variable `locate-command' in your init file. ;; ;; To use a more complicated expression, create a function which ;; takes a string (the name to find) as input and returns a list. @@ -497,6 +496,7 @@ do not work in subdirectories. (setq revert-buffer-function 'locate-update) (set (make-local-variable 'page-delimiter) "\n\n") (run-mode-hooks 'locate-mode-hook)) +(put 'locate-mode 'derived-mode-parent 'dired-mode) (defun locate-do-setup (search-string) (goto-char (point-min)) @@ -589,7 +589,7 @@ do not work in subdirectories. (message "This command only works inside main listing."))) ;; From Stephen Eglen -(defun locate-update (ignore1 ignore2) +(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'."