From: Stefan Monnier Date: Thu, 21 Nov 2019 22:39:38 +0000 (-0500) Subject: * lisp/files.el (locate-file-completion-table): Fix typo X-Git-Tag: emacs-27.0.90~560 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=81ab458aae931e01a940424eeea55777004f9c55;p=emacs.git * lisp/files.el (locate-file-completion-table): Fix typo --- diff --git a/lisp/files.el b/lisp/files.el index bb77dcb3c7e..2c45a8b1078 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -958,7 +958,7 @@ one or more of those symbols." ;; M-x load-library RET t/x.e TAB finds some files. Also remove elements ;; from `names' that matched `string' only when they still had ;; their suffix. - (setq names (all-completions string names)) + (setq names (all-completions string-file names)) ;; Remove duplicates of the first element, so that we can easily check ;; if `names' really contains only a single element. (when (cdr names) (setcdr names (delete (car names) (cdr names))))