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

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

[elpa] externals/vlf 3e8098a 149/310: Rename vlf-discard-edit -> vlf-ref


From: Stefan Monnier
Subject: [elpa] externals/vlf 3e8098a 149/310: Rename vlf-discard-edit -> vlf-refresh.
Date: Sat, 28 Nov 2020 00:33:05 -0500 (EST)

branch: externals/vlf
commit 3e8098af619a1cd3fd1df26a19cbf3f2b08462fe
Author: Andrey Kotlarski <m00naticus@gmail.com>
Commit: Andrey Kotlarski <m00naticus@gmail.com>

    Rename vlf-discard-edit -> vlf-refresh.
---
 README.org | 4 ++++
 vlf.el     | 4 ++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/README.org b/README.org
index ed2fa58..42ada96 100644
--- a/README.org
+++ b/README.org
@@ -86,6 +86,10 @@ from the beginning, so again the bigger current batch size, 
the
 quicker.  With negative argument, lines are counted from the end of
 file.
 
+** Reload
+
+*C-c C-v g* discards modifications (if such) and reloads chunk.
+
 ** Edit and save
 
 If editing doesn't change size of the chunk, only this chunk is saved.
diff --git a/vlf.el b/vlf.el
index f6cf4ed..4d37846 100644
--- a/vlf.el
+++ b/vlf.el
@@ -77,7 +77,7 @@
     (define-key map "]" 'vlf-end-of-file)
     (define-key map "j" 'vlf-jump-to-chunk)
     (define-key map "l" 'vlf-goto-line)
-    (define-key map "q" 'vlf-discard-edit)
+    (define-key map "g" 'vlf-refresh)
     (define-key map-prefix "\C-c\C-v" map)
     map-prefix)
   "Keymap for `vlf-mode'.")
@@ -854,7 +854,7 @@ in file: %s" total-matches line regexp file)
 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
 ;;; editing
 
-(defun vlf-discard-edit ()
+(defun vlf-refresh ()
   "Discard edit and refresh chunk from file."
   (interactive)
   (set-buffer-modified-p nil)



reply via email to

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