summaryrefslogtreecommitdiff
path: root/lisp/files.el
diff options
context:
space:
mode:
authorChong Yidong <cyd@stupidchicken.com>2007-03-19 18:29:56 +0000
committerChong Yidong <cyd@stupidchicken.com>2007-03-19 18:29:56 +0000
commitc412f81ab8f00b9941844c24a56033a173c65db5 (patch)
tree4e9adb7b26c327ee3b9dda9099018e3831df8752 /lisp/files.el
parent39a8d88a7f9d5f08cd7c17d5101748337cd72abd (diff)
downloademacs-c412f81ab8f00b9941844c24a56033a173c65db5.tar.gz
Revert 2006-12-08 change by Kevin Rodgers due to lack of legal papers.
Diffstat (limited to 'lisp/files.el')
-rw-r--r--lisp/files.el10
1 files changed, 0 insertions, 10 deletions
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)))