From 0377737c9b3c72dd45f32ec0ffa6c4fa9cb0203d Mon Sep 17 00:00:00 2001 From: Lars Ingebrigtsen Date: Mon, 21 Jun 2021 14:58:15 +0200 Subject: [PATCH] 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). --- lisp/files.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lisp/files.el b/lisp/files.el index 13dda0932a2..5d2fe0a77be 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -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))) -- 2.39.2