1
0
mirror of https://github.com/m00natic/vlfi.git synced 2025-01-18 12:05:31 +00:00

Merge branch 'master' into chunk-opt2

This commit is contained in:
Andrey Kotlarski 2013-05-05 15:57:16 +03:00
commit 3c2fb6b93e
2 changed files with 9 additions and 6 deletions

View File

@ -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

View File

@ -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."