[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/vlf 177c680 147/310: Revert to showing batch size in bu
From: |
Stefan Monnier |
Subject: |
[elpa] externals/vlf 177c680 147/310: Revert to showing batch size in buffer name instead of the mode-line. |
Date: |
Sat, 28 Nov 2020 00:33:04 -0500 (EST) |
branch: externals/vlf
commit 177c68028892687c5181c915276ecc6709b3dd96
Author: Andrey Kotlarski <m00naticus@gmail.com>
Commit: Andrey Kotlarski <m00naticus@gmail.com>
Revert to showing batch size in buffer name instead of the mode-line.
---
README.org | 12 ++++++------
vlf.el | 24 +++++++-----------------
2 files changed, 13 insertions(+), 23 deletions(-)
diff --git a/README.org b/README.org
index efe161a..ed2fa58 100644
--- a/README.org
+++ b/README.org
@@ -62,8 +62,8 @@ respectively.
*C-c C-v j* jumps to given chunk. To see where you are in file and
how many chunks there are (using the current batch size), look at the
-bracketed part of the buffer name, batch size is indicated in the
-mode-line.
+parenthesized part of the buffer name, batch size is also indicated at
+the end.
** Search whole file
@@ -74,10 +74,10 @@ beforehand.
** Occur over whole file
-*C-c C-v o* builds index for given regular expression just like M-x
-occur*. It does this batch by batch 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.
+*C-c C-v o* builds index for given regular expression just like
+*M-x occur*. It does this batch by batch 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
diff --git a/vlf.el b/vlf.el
index 19d04b5..ce0855b 100644
--- a/vlf.el
+++ b/vlf.el
@@ -209,24 +209,14 @@ with the prefix argument DECREASE it is halved."
(* vlf-batch-size 2)))
(vlf-move-to-batch vlf-start-pos))
-(defun vlf-format-buffer-name ()
- "Return format for vlf buffer name."
- (format "%s(%d/%d)"
- (file-name-nondirectory buffer-file-name)
- (/ vlf-end-pos vlf-batch-size)
- (/ vlf-file-size vlf-batch-size)))
-
(defun vlf-update-buffer-name ()
- "Update the current buffer name and modeline."
- (rename-buffer (vlf-format-buffer-name) t)
- (setq minor-mode-alist
- (mapcar (lambda (x)
- (if (eq 'vlf-mode (car x))
- `(vlf-mode ,(format " VLF[%s]"
- (file-size-human-readable
- vlf-batch-size)))
- x))
- minor-mode-alist)))
+ "Update the current buffer name."
+ (rename-buffer (format "%s(%d/%d)[%s]"
+ (file-name-nondirectory buffer-file-name)
+ (/ vlf-end-pos vlf-batch-size)
+ (/ vlf-file-size vlf-batch-size)
+ (file-size-human-readable vlf-batch-size))
+ t))
(defun vlf-get-file-size (file)
"Get size in bytes of FILE."
- [elpa] externals/vlf efae918 138/310: Turn vlf into minor mode., (continued)
- [elpa] externals/vlf efae918 138/310: Turn vlf into minor mode., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf e36492b 182/310: Optimize chunk jumping for current GNU Emacs releases. Fix moving by, Stefan Monnier, 2020/11/28
- [elpa] externals/vlf f1ade81 069/310: Add go to line command., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 3fb898e 070/310: Add automatic batching when scrolling., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf fc689d5 071/310: Make coding system conversion on write more idiomatic., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 74febeb 072/310: Remove ability to launch VLFI from file end. It's superseded by, Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 4699008 074/310: Make chunk adjusting automatic., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 538a9e6 075/310: Apply chunk decoding adjustment implicitly., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 0dc6d06 190/310: Completely decouple vlf integration from other functionality., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf c533bce 207/310: Add command to set batch size explicitly., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 177c680 147/310: Revert to showing batch size in buffer name instead of the mode-line.,
Stefan Monnier <=
- [elpa] externals/vlf d6c7223 151/310: Delete obsolete vlfi.el., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 655805c 174/310: Fix vlf-next-batch-from-point behaviour near end of file., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf db1da30 175/310: Use buffer-file-truename for file size determination and remove, Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 429a8ff 196/310: Widen region when measuring encoded content length., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf df8c9ea 191/310: Detect change of file when loading chunk and act more cautiously. Move, Stefan Monnier, 2020/11/28
- [elpa] externals/vlf cc9b115 214/310: Update docstring for vlf-ediff-adjust., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 82fd5b9 203/310: Refine diff adjustment and in case of equality after it - make another, Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 0199c24 218/310: Lower tramp verbosity level when dealing with multiple batches., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf ee19f81 228/310: Load hexl advices after load and move vlf group definition., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 2c231df 226/310: Disable hexl-save-buffer and hexl revert when vlf-mode is active., Stefan Monnier, 2020/11/28