[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] master 42e7309: Make vlf handle nil large-file-warning-threshold
From: |
Lars Ingebrigtsen |
Subject: |
[elpa] master 42e7309: Make vlf handle nil large-file-warning-threshold value |
Date: |
Wed, 19 Aug 2020 10:19:08 -0400 (EDT) |
branch: master
commit 42e7309b05c6323288c5ceca88035a49f69f87e7
Author: Phil Sainty <psainty@orcon.net.nz>
Commit: Lars Ingebrigtsen <larsi@gnus.org>
Make vlf handle nil large-file-warning-threshold value
* packages/vlf/vlf-tune.el (vlf-tune-max): Handle a nil value of
'large-file-warning-threshold' (bug#42930).
---
packages/vlf/vlf-tune.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/packages/vlf/vlf-tune.el b/packages/vlf/vlf-tune.el
index 566f2d6..df92551 100644
--- a/packages/vlf/vlf-tune.el
+++ b/packages/vlf/vlf-tune.el
@@ -60,7 +60,9 @@ but don't change batch size. If t, measure and change."
(if ram-size
(/ ram-size 20)
0))
- large-file-warning-threshold)
+ (or large-file-warning-threshold
+ (eval (car (get 'large-file-warning-threshold
+ 'standard-value)))))
"Maximum batch size in bytes when auto tuning.
Avoid increasing this after opening file with VLF."
:group 'vlf :type 'integer)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] master 42e7309: Make vlf handle nil large-file-warning-threshold value,
Lars Ingebrigtsen <=