]> code.delx.au - gnu-emacs/commitdiff
ffap.el (ffap-read-file-or-url): Fix completing-read call
authorOleh Krehel <ohwoeowho@gmail.com>
Fri, 8 May 2015 14:43:21 +0000 (16:43 +0200)
committerOleh Krehel <ohwoeowho@gmail.com>
Fri, 8 May 2015 14:43:21 +0000 (16:43 +0200)
* lisp/ffap.el (ffap-read-file-or-url): The HIST argument of
  `completing-read' should be a symbol.

lisp/ffap.el

index 452275ab8c2a12686cb97a3e95b6a32901131915..d78fd4c4b31030c5b0860b8ac0fcc6fe8b69af8a 100644 (file)
@@ -1288,7 +1288,7 @@ which may actually result in an URL rather than a filename."
                    nil
                    nil
                    (if dir (cons guess (length dir)) guess)
-                   (list 'file-name-history)
+                   'file-name-history
                    (and buffer-file-name
                         (abbreviate-file-name buffer-file-name)))))
         ;; Remove the special handler manually.  We used to just let-bind