Fix prompting for large files when loading literally

* lisp/files.el (find-file-noselect): Don't include "literally" in
the "large file" prompt if we're gonna load literally anyway
(bug#49144).
This commit is contained in:
Lars Ingebrigtsen 2021-06-21 14:58:15 +02:00
parent a1fd11a28f
commit 0377737c9b

View file

@ -2288,7 +2288,8 @@ the various files."
;; Check to see if the file looks uncommonly large.
(when (not (or buf nowarn))
(when (eq (abort-if-file-too-large
(file-attribute-size attributes) "open" filename t)
(file-attribute-size attributes) "open" filename
(not rawfile))
'raw)
(setf rawfile t))
(warn-maybe-out-of-memory (file-attribute-size attributes)))