[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/vlf ac1aa16 296/310: Standard naming for chunk update h
From: |
Stefan Monnier |
Subject: |
[elpa] externals/vlf ac1aa16 296/310: Standard naming for chunk update hooks. |
Date: |
Sat, 28 Nov 2020 00:33:35 -0500 (EST) |
branch: externals/vlf
commit ac1aa160e69ae5dc39dea8d8629260cb93165034
Author: Andrey Kotlarski <m00naticus@gmail.com>
Commit: Andrey Kotlarski <m00naticus@gmail.com>
Standard naming for chunk update hooks.
---
README.org | 2 +-
vlf-base.el | 14 +++++++-------
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/README.org b/README.org
index 335621e..e5bc0bb 100644
--- a/README.org
+++ b/README.org
@@ -189,7 +189,7 @@ first one.
** Move hooks
A couple of hooks are run whenever updating chunk:
-*vlf-before-chunk-update* and *vlf-after-chunk-update*.
+*vlf-before-chunk-update-hook* and *vlf-after-chunk-update-hook*.
** Batch move hooks
diff --git a/vlf-base.el b/vlf-base.el
index 7b7f406..701506d 100644
--- a/vlf-base.el
+++ b/vlf-base.el
@@ -1,6 +1,6 @@
;;; vlf-base.el --- VLF primitive operations -*- lexical-binding: t -*-
-;; Copyright (C) 2014 Free Software Foundation, Inc.
+;; Copyright (C) 2014-2015 Free Software Foundation, Inc.
;; Keywords: large files, chunk
;; Author: Andrey Kotlarski <m00naticus@gmail.com>
@@ -29,11 +29,11 @@
(require 'vlf-tune)
-(defcustom vlf-before-chunk-update nil
+(defcustom vlf-before-chunk-update-hook nil
"Hook that runs before chunk update."
:group 'vlf :type 'hook)
-(defcustom vlf-after-chunk-update nil
+(defcustom vlf-after-chunk-update-hook nil
"Hook that runs after chunk update."
:group 'vlf :type 'hook)
@@ -146,7 +146,7 @@ bytes added to the end."
((or (not modified)
(and (<= start vlf-start-pos) (<= edit-end end))
(y-or-n-p "Chunk modified, are you sure? "))
- (run-hooks 'vlf-before-chunk-update)
+ (run-hooks 'vlf-before-chunk-update-hook)
(when (and hexl (not restore-hexl))
(if (consp buffer-undo-list)
(setq buffer-undo-list nil))
@@ -215,7 +215,7 @@ bytes added to the end."
(when hexl
(vlf-tune-hexlify)
(setq restore-hexl nil))
- (run-hooks 'vlf-after-chunk-update)
+ (run-hooks 'vlf-after-chunk-update-hook)
(cons shift-start shift-end))))))
(when restore-hexl
(vlf-tune-hexlify)
@@ -226,7 +226,7 @@ bytes added to the end."
"Unconditionally move to chunk enclosed by START END bytes.
Return number of bytes moved back for proper decoding and number of
bytes added to the end."
- (run-hooks 'vlf-before-chunk-update)
+ (run-hooks 'vlf-before-chunk-update-hook)
(let ((adjust-start t)
(adjust-end t)
(is-hexl (derived-mode-p 'hexl-mode)))
@@ -259,7 +259,7 @@ bytes added to the end."
(set-buffer-modified-p nil)
(or (eq buffer-undo-list t)
(setq buffer-undo-list nil))
- (run-hooks 'vlf-after-chunk-update)
+ (run-hooks 'vlf-after-chunk-update-hook)
shifts)))
(defun vlf-insert-file-contents (start end adjust-start adjust-end
- [elpa] externals/vlf c3a308c 271/310: Optimize save performance over the temp file if such is used. Add, (continued)
- [elpa] externals/vlf c3a308c 271/310: Optimize save performance over the temp file if such is used. Add, Stefan Monnier, 2020/11/28
- [elpa] externals/vlf ce13609 278/310: Fix vlf-ediff at the borders of hexl buffers., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf f43ada1 282/310: Fix byte compilation warnings., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 305d802 280/310: Use shared profiling info for encode, write and hexl operations., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 5dd9e2c 281/310: Adjust address parts of hexlified buffer according to vlf-start-pos., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 68d6c1b 289/310: vlf-occur changes:, Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 0fa6248 288/310: Optimize unconditional chunk loading and prefer it in more cases of, Stefan Monnier, 2020/11/28
- [elpa] externals/vlf bd5f9ca 286/310: Back to using per buffer profiling for encode speed., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf 726f50b 294/310: Fix byte-compilation warnings on install., Stefan Monnier, 2020/11/28
- [elpa] externals/vlf eaa3629 299/310: Fix cursor position after search, Stefan Monnier, 2020/11/28
- [elpa] externals/vlf ac1aa16 296/310: Standard naming for chunk update hooks.,
Stefan Monnier <=
- [elpa] externals/vlf cc02f25 306/310: Fix typos, Stefan Monnier, 2020/11/28