-;;; locate.el --- interface to the locate command
+;;; locate.el --- interface to the locate command -*- lexical-binding:t -*-
;; Copyright (C) 1996, 1998, 2001-2019 Free Software Foundation, Inc.
"Run locate (like this): "
(cons
(concat (car locate-cmd) " "
- (mapconcat 'identity (cdr locate-cmd) " "))
+ (mapconcat #'identity (cdr locate-cmd) " "))
(+ 2 (length (car locate-cmd))))
nil nil 'locate-history-list))
(let* ((default (locate-word-at-point))
(and (not arg) locate-prompt-for-command))))
;; Find the Locate buffer
- (save-window-excursion
+ (save-window-excursion ;FIXME: What window-excursion?
(set-buffer (get-buffer-create locate-buffer-name))
(locate-mode)
(let ((inhibit-read-only t)
(if run-locate-command
(shell-command search-string locate-buffer-name)
- (apply 'call-process locate-cmd nil t nil locate-cmd-args))
+ (apply #'call-process locate-cmd nil t nil locate-cmd-args))
(and filter
(locate-filter-output filter))
;; Avoid clobbering this variable
(make-local-variable 'dired-subdir-alist)
(setq default-directory "/"
- buffer-read-only t
- selective-display t)
+ buffer-read-only t)
+ (add-to-invisibility-spec '(dired . t))
(dired-alist-add-1 default-directory (point-min-marker))
(set (make-local-variable 'dired-directory) "/")
(set (make-local-variable 'dired-subdir-switches) locate-ls-subdir-switches)
locate-regexp-match
(concat locate-regexp-match ":\n"))
- (insert (apply 'format locate-format-string (reverse locate-format-args)))
+ (insert (apply #'format locate-format-string (reverse locate-format-args)))
(save-excursion
(goto-char (point-min))