From: João Távora Date: Sun, 10 Nov 2019 23:01:46 +0000 (+0000) Subject: Fix bug when completing file names X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8a4de19dfb52551a65c360a9346ede137d0fc6e8;p=emacs.git Fix bug when completing file names * lisp/minibuffer.el (completion--nth-completion): Fix bug when requote function is needed. --- diff --git a/lisp/minibuffer.el b/lisp/minibuffer.el index 08b230d5752..fce705cd014 100644 --- a/lisp/minibuffer.el +++ b/lisp/minibuffer.el @@ -958,9 +958,9 @@ N can be 1 for to mean \"completion-try-completion\" or 2 to mean (_ n)) style string table pred point))) (completion--styles md)))) - (if requote - (funcall requote result n) - result))) + (when requote + (setcar result (funcall requote (car result) n))) + result)) (defun completion-try-completion (string table pred point &optional metadata) "Try to complete STRING using completion table TABLE.