From: Chong Yidong Date: Mon, 19 Mar 2007 18:29:56 +0000 (+0000) Subject: Revert 2006-12-08 change by Kevin Rodgers due to lack of legal papers. X-Git-Tag: emacs-pretest-22.0.96~35 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c412f81ab8f00b9941844c24a56033a173c65db5;p=emacs.git Revert 2006-12-08 change by Kevin Rodgers due to lack of legal papers. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b119505d032..b36dc58b38c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -2471,12 +2471,6 @@ * comint.el (comint-insert-input): Delete obsolete comment. -2006-12-08 Kevin Rodgers - - * files.el (insert-file-1): Compare file size to - large-file-warning-threshold and request confirmation when - warranted. - 2006-12-08 Stefan Monnier * net/browse-url.el (browse-url): Set DISPLAY to the one of the diff --git a/lisp/files.el b/lisp/files.el index cfbbff029b6..50180dc6ebf 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -1700,16 +1700,6 @@ This function ensures that none of these modifications will take place." (if (file-directory-p filename) (signal 'file-error (list "Opening input file" "file is a directory" filename))) - ;; Check whether the file is uncommonly large (see find-file-noselect): - (let (size) - (when (and large-file-warning-threshold - (setq size (nth 7 (file-attributes filename))) - (> size large-file-warning-threshold) - (not (y-or-n-p - (format "File %s is large (%dMB), really insert? " - (file-name-nondirectory filename) - (/ size 1048576))))) - (error "Aborted"))) (let* ((buffer (find-buffer-visiting (abbreviate-file-name (file-truename filename)) #'buffer-modified-p)) (tem (funcall insert-func filename)))