From 0d8e72ca0a450c5da8fe6c47b582b6ecf66eff84 Mon Sep 17 00:00:00 2001 From: Phil Sainty Date: Wed, 19 Aug 2020 23:55:51 +1200 Subject: [PATCH] packages/vlf: Fix byte-compilation and load errors * packages/vlf/vlf-tune.el (vlf-tune-max): Handle a nil value of 'large-file-warning-threshold'. --- 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) -- 2.8.3