emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/vlf 3c2fb6b 111/310: Merge branch 'master' into chunk-o


From: Stefan Monnier
Subject: [elpa] externals/vlf 3c2fb6b 111/310: Merge branch 'master' into chunk-opt2
Date: Sat, 28 Nov 2020 00:32:57 -0500 (EST)

branch: externals/vlf
commit 3c2fb6b93ef6aa3ec94751e6253446dc97db6458
Merge: de1948e c827c3e
Author: Andrey Kotlarski <m00naticus@gmail.com>
Commit: Andrey Kotlarski <m00naticus@gmail.com>

    Merge branch 'master' into chunk-opt2
---
 README.org | 11 +++++++----
 vlfi.el    |  4 ++--
 2 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/README.org b/README.org
index a59d7a7..9dae369 100644
--- a/README.org
+++ b/README.org
@@ -33,7 +33,7 @@ Emacs' Unicode support is leveraged so you'll not see bare 
bytes but
 characters decoded as if file is normally opened.  This holds for
 editing, search and indexing.
 
-** 32-bit GNU/Emacs
+** 32-bit GNU Emacs
 
 Regular Emacs integers are used, so if you use 32-bit Emacs without
 bignum support and have really huge file (with size beyond the maximum
@@ -81,9 +81,6 @@ of the buffer name, batch size is also there - at the end.
 file.  This is done chunk by chunk so if you have really huge file -
 you'd better set somewhat bigger batch size beforehand.
 
-*l* jumps to given line in file.  This is done by searching from the
-beginning, so again the bigger current batch size, the quicker.
-
 ** Occur over whole file
 
 *o* builds index for given regular expression just like occur-mode.
@@ -91,6 +88,12 @@ It does this chunk by chunk over the whole file.  Note that 
even if
 you prematurely stop it with *C-g*, it will still show index of what's
 found so far.
 
+** Jump to line
+
+*l* jumps to given line in file.  This is done by searching from the
+beginning, so again the bigger current batch size, the quicker.  With
+negative argument, lines are counted from the end of file.
+
 ** Edit
 
 *e* enters VLFI in edit mode.  If editing doesn't change size of
diff --git a/vlfi.el b/vlfi.el
index 9b3cbc9..6df9d94 100644
--- a/vlfi.el
+++ b/vlfi.el
@@ -822,8 +822,8 @@ Save anyway? ")))
             (t (vlfi-file-shift-forward (- size-change))))
       (vlfi-move-to-chunk vlfi-start-pos vlfi-end-pos)
       (goto-char pos))
-    (vlfi-mode)
-    t))
+    (vlfi-mode))
+  t)
 
 (defun vlfi-file-shift-back (size-change)
   "Shift file contents SIZE-CHANGE bytes back."



reply via email to

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