emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 0377737: Fix prompting for large files when loading literally


From: Lars Ingebrigtsen
Subject: master 0377737: Fix prompting for large files when loading literally
Date: Mon, 21 Jun 2021 08:58:22 -0400 (EDT)

branch: master
commit 0377737c9b3c72dd45f32ec0ffa6c4fa9cb0203d
Author: Lars Ingebrigtsen <larsi@gnus.org>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    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 13dda09..5d2fe0a 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)))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]