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:
parent
a1fd11a28f
commit
0377737c9b
1 changed files with 2 additions and 1 deletions
|
@ -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)))
|
||||
|
|
Loading…
Add table
Reference in a new issue