From 88cf03caba5dace4a2583f810d266fb6b14b056b Mon Sep 17 00:00:00 2001 From: Andrey Kotlarski Date: Mon, 1 Apr 2013 11:47:49 +0300 Subject: [PATCH] Interactive change of batch size immediately updates content. --- vlfi.el | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/vlfi.el b/vlfi.el index a0a1a84..319311f 100644 --- a/vlfi.el +++ b/vlfi.el @@ -87,11 +87,10 @@ with the prefix argument DECREASE it is halved." (interactive "P") (or (assq 'vlfi-batch-size (buffer-local-variables)) (error "%s is not local in this buffer" 'vlfi-batch-size)) - (setq vlfi-batch-size - (if decrease - (/ vlfi-batch-size 2) - (* vlfi-batch-size 2))) - (vlfi-update-buffer-name)) + (setq vlfi-batch-size (if decrease + (/ vlfi-batch-size 2) + (* vlfi-batch-size 2))) + (vlfi-move-to-batch vlfi-start-pos)) (defun vlfi-format-buffer-name () "Return format for vlfi buffer name."