]> git.eshelyaron.com Git - emacs.git/commit
* lisp/filecache.el: Use lexical-binding. Simplify.
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 7 Nov 2017 17:10:51 +0000 (12:10 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 7 Nov 2017 17:10:51 +0000 (12:10 -0500)
commit12c39211b38f641a72eb15c8f046df24d8acc4c3
tree2850bd098d99389e76722c72ec7d325efa36fde3
parent1f3f4b1296613b8cdc0632a68fde86e86ddad866
* lisp/filecache.el: Use lexical-binding.  Simplify.

Remove redundant :group args, use with-tmep-buffer and let
completion-all-completions do its work.

(file-cache-minibuffer-complete): Skip `completion-hilit-commonality`
since `completion-all-completions' already hilighted its output.
Call our setup function directly rather than via `completion-setup-hook`.
(file-cache-buffer): Remove variable.
(file-cache-buffer-default-regexp): Make it a defvar.
(file-cache--add-from-buffer): Rename from
file-cache-add-from-file-cache-buffer and use current-buffer and
match-string-no-properties.
(file-cache-add-directory-using-find)
(file-cache-add-directory-using-locate): Adjust accordingly and use
with-temp-buffer.
lisp/filecache.el