From: Stefan Kangas Date: Fri, 29 Jul 2022 11:02:48 +0000 (+0200) Subject: Make ffap-newfile-prompt obsolete X-Git-Tag: emacs-29.0.90~1447^2~653 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ecfac493fa21deef5fb694028782eace56afc87e;p=emacs.git Make ffap-newfile-prompt obsolete * lisp/ffap.el (ffap-newfile-prompt): Obsolete in favor of 'find-file-not-found-functions'. --- diff --git a/lisp/ffap.el b/lisp/ffap.el index 9ed17125de4..528c02d0604 100644 --- a/lisp/ffap.el +++ b/lisp/ffap.el @@ -240,11 +240,10 @@ it passes it on to `dired'." :group 'ffap) (defcustom ffap-newfile-prompt nil - ;; Suggestion from RHOGEE, 11 Jul 1994. Disabled, I think this is - ;; better handled by `find-file-not-found-functions'. "Whether `find-file-at-point' prompts about a nonexistent file." :type 'boolean :group 'ffap) +(make-obsolete-variable 'ffap-newfile-prompt 'find-file-not-found-functions "29.1") (defcustom ffap-require-prefix nil ;; Suggestion from RHOGEE, 20 Oct 1994. @@ -1611,7 +1610,7 @@ Uses the face `ffap' if it is defined, or else `highlight'." If `ffap-url-regexp' is not nil, the FILENAME may also be an URL. With a prefix, this command behaves exactly like `ffap-file-finder'. If `ffap-require-prefix' is set, the prefix meaning is reversed. -See also the variables `ffap-dired-wildcards', `ffap-newfile-prompt', +See also the variables `ffap-dired-wildcards', `ffap-url-unwrap-local', `ffap-url-unwrap-remote', `ffap-file-name-with-spaces', and the functions `ffap-file-at-point' and `ffap-url-at-point'."