From: Luc Teirlinck Date: Wed, 24 Dec 2003 02:07:48 +0000 (+0000) Subject: (ffap-read-file-or-url): Eliminate reliance of the call to X-Git-Tag: ttn-vms-21-2-B4~8201 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=220898759c7012ac9cbfe54ee505110926249014;p=emacs.git (ffap-read-file-or-url): Eliminate reliance of the call to `completing-read' on a recently fixed bug. --- diff --git a/lisp/ffap.el b/lisp/ffap.el index 668700a5c1f..b249ce8daa0 100644 --- a/lisp/ffap.el +++ b/lisp/ffap.el @@ -1216,7 +1216,7 @@ which may actually result in an url rather than a filename." 'ffap-read-file-or-url-internal dir nil - (if dir (cons guess (length dir)) guess) + (if dir (cons guess (1+ (length dir))) guess) (list 'file-name-history)))) ;; Do file substitution like (interactive "F"), suggested by MCOOK. (or (ffap-url-p guess) (setq guess (substitute-in-file-name guess)))