From ad3d50ef6dccf338a598332e4e7a11f477458b34 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Tue, 3 Jul 2007 02:54:27 +0000 Subject: [PATCH] (find-file-confirm-inexistent-file): Make it a defcustom. Make nil the default. --- lisp/files.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lisp/files.el b/lisp/files.el index f6fd82d0462..873eeee7199 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -1051,8 +1051,11 @@ Recursive uses of the minibuffer will not be affected." ,@body) (remove-hook 'minibuffer-setup-hook ,hook))))) -(defvar find-file-confirm-inexistent-file t - "If non-nil, `find-file' will require confirmation before visiting a new file.") +(defcustom find-file-confirm-inexistent-file nil + "If non-nil, `find-file' requires confirmation before visiting a new file." + :group 'find-file + :version "23.1" + :type 'boolean) (defun find-file-read-args (prompt mustmatch) (list (let ((find-file-default -- 2.39.2