mirror of
https://github.com/m00natic/vlfi.git
synced 2025-01-31 02:00:47 +00:00
Merge branch 'master' into chunk-opt2
This commit is contained in:
commit
3c2fb6b93e
11
README.org
11
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
|
characters decoded as if file is normally opened. This holds for
|
||||||
editing, search and indexing.
|
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
|
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
|
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 -
|
file. This is done chunk by chunk so if you have really huge file -
|
||||||
you'd better set somewhat bigger batch size beforehand.
|
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
|
** Occur over whole file
|
||||||
|
|
||||||
*o* builds index for given regular expression just like occur-mode.
|
*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
|
you prematurely stop it with *C-g*, it will still show index of what's
|
||||||
found so far.
|
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
|
** Edit
|
||||||
|
|
||||||
*e* enters VLFI in edit mode. If editing doesn't change size of
|
*e* enters VLFI in edit mode. If editing doesn't change size of
|
||||||
|
4
vlfi.el
4
vlfi.el
@ -822,8 +822,8 @@ Save anyway? ")))
|
|||||||
(t (vlfi-file-shift-forward (- size-change))))
|
(t (vlfi-file-shift-forward (- size-change))))
|
||||||
(vlfi-move-to-chunk vlfi-start-pos vlfi-end-pos)
|
(vlfi-move-to-chunk vlfi-start-pos vlfi-end-pos)
|
||||||
(goto-char pos))
|
(goto-char pos))
|
||||||
(vlfi-mode)
|
(vlfi-mode))
|
||||||
t))
|
t)
|
||||||
|
|
||||||
(defun vlfi-file-shift-back (size-change)
|
(defun vlfi-file-shift-back (size-change)
|
||||||
"Shift file contents SIZE-CHANGE bytes back."
|
"Shift file contents SIZE-CHANGE bytes back."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user