We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e0f0d7 commit 0030f49Copy full SHA for 0030f49
lisp/init-utils.el
@@ -232,8 +232,9 @@ If HINT is empty, use symbol at point."
232
233
(defun my-file-too-big-p (file)
234
"Test if FILE is too big."
235
- (> (nth 7 (file-attributes file))
236
- (* 5000 64)))
+ (let ((file-size (nth 7 (file-attributes file))))
+ ;; file might not exist
237
+ (and file-size (> file-size (* 5000 64)))))
238
239
(defvar my-force-buffer-file-temp-p nil)
240
(defun my-buffer-file-temp-p ()
0 commit comments