[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/lentic 29688f7ec6 089/333: Logging alterations.
From: |
ELPA Syncer |
Subject: |
[elpa] externals/lentic 29688f7ec6 089/333: Logging alterations. |
Date: |
Tue, 27 Feb 2024 13:00:10 -0500 (EST) |
branch: externals/lentic
commit 29688f7ec6b0d60136507c1099a2f102b234d6f9
Author: Phillip Lord <phillip.lord@newcastle.ac.uk>
Commit: Phillip Lord <phillip.lord@newcastle.ac.uk>
Logging alterations.
---
linked-buffer.el | 81 ++++++++++++++++++++------------------------------------
1 file changed, 28 insertions(+), 53 deletions(-)
diff --git a/linked-buffer.el b/linked-buffer.el
index 136ddee6f2..793b40daa0 100644
--- a/linked-buffer.el
+++ b/linked-buffer.el
@@ -272,32 +272,6 @@ created."
the linked-buffer."
location)
-;; before-change-functions (beginning-of-region-b4 end-of-region-b4)
-;; after-change-functions (beginning-of-region-af end-of-region-af
length-of-text-before-change)
-
-
-;; Addition *2
-;; Before-change:(192 192)
-;; Updating after-change (current:linked:rest): *linked:
*scratch**,*scratch*,(192 193 0)
-
-;; Before-change:(193 193)
-;; Updating after-change (current:linked:rest): *linked:
*scratch**,*scratch*,(193 194 0)
-
-;; Deletion
-
-;; Before-change:(192 194)
-;; Updating after-change (current:linked:rest): *linked:
*scratch**,*scratch*,(192 192 2)
-
-;; Do we have enough data from the after change? I think so -- we go to the
-;; point at the start of the region (whcih can surely never change?), then we
-;; delete the size before (2 or 0 in this case), then we put the new text in
place.
-
-;;
-;; Before-change:(192 192)
-;; Updating after-change (current:linked:rest): *linked:
*scratch**,*scratch*,(192 193 0)
-
-
-
(defmethod linked-buffer-clone ((conf linked-buffer-configuration)
&optional start stop length-before)
"Updates that-buffer to reflect the contents in this-buffer.
@@ -306,7 +280,7 @@ Currently, this is just a clone all method but may use
regions in future."
(let ((this-b (oref conf :this-buffer))
(that-b (oref conf :that-buffer)))
(with-current-buffer this-b
- (linked-buffer-log "this-b (point,start,stop)(%s,%s,%s)" (point) start
stop)
+ ;;(linked-buffer-log "this-b (point,start,stop)(%s,%s,%s)" (point) start
stop)
(let* ((start (or start (point-min)))
(stop (or stop (point-max)))
(length-before (or length-before (buffer-size that-b)))
@@ -335,10 +309,9 @@ Currently, this is just a clone all method but may use
regions in future."
(widen)
;; want to see where it goes
;; hence the property
- (propertize
+ (linked-buffer-insertion-string-transform
(buffer-substring-no-properties
- start stop)
- 'font-lock-face 'font-lock-type-face))))))))))
+ start stop)))))))))))
(defun linked-buffer-default-init ()
"Default init function.
@@ -553,10 +526,8 @@ Errors are handled. REST is currently just ignored."
REST is currently just ignored."
(linked-buffer-when-linked
(linked-buffer-log
- "Updating after-change (current:linked:rest): %s,%s,%s"
- (current-buffer)
- (linked-buffer-that linked-buffer-config)
- (list start stop length-before))
+ "After-change (start, stop, length-before): %s,%s,%s"
+ start stop length-before)
(linked-buffer-update-contents linked-buffer-config
start stop length-before)))
@@ -567,24 +538,28 @@ REST is currently just ignored."
;; (until the change has been percolated). and the convert function
;; may not work properly under these circumstances.
(defun linked-buffer-before-change-function (start stop)
- "Run before change update.
-REST is currently ignored. Currently this does nothing."
+ "Run before change update."
(unless linked-buffer-emergency
(condition-case err
- (linked-buffer-when-linked
- (oset linked-buffer-config
- :last-change-start-converted
- (linked-buffer-convert
- linked-buffer-config
- start))
- (oset linked-buffer-config
- :last-change-stop-converted
- (linked-buffer-convert
- linked-buffer-config
- stop)))
- (linked-buffer-log
- "Before-change:%s" rest)
- (lambda ())
+ (progn
+ (linked-buffer-when-linked
+ (oset linked-buffer-config
+ :last-change-start-converted
+ (linked-buffer-convert
+ linked-buffer-config
+ start))
+ (oset linked-buffer-config
+ :last-change-stop-converted
+ (linked-buffer-convert
+ linked-buffer-config
+ stop)))
+ (linked-buffer-log
+ "Before change:(%s,%s,%s,%s)"
+ start stop
+ (oref linked-buffer-config
+ :last-change-start-converted)
+ (oref linked-buffer-config
+ :last-change-stop-converted)))
(error
(linked-buffer-hook-fail err "before change")))))
@@ -594,8 +569,8 @@ Update mechanism depends on CONF."
(unwind-protect
(progn
(setq inhibit-read-only t)
- (linked-buffer-log
- "Update config: %s" linked-buffer-config)
+ ;;(linked-buffer-log
+ ;;"Update config: %s" linked-buffer-config)
(linked-buffer-clone conf start stop length-before))
(setq inhibit-read-only nil)))
@@ -619,7 +594,7 @@ same top-left location. Update details depend on CONF."
(linked-buffer-this conf))))))
;; clone point in buffer important when the buffer is NOT visible in a
;; window at all
- (linked-buffer-log "sync(front-point)(%s)" from-point)
+ ;;(linked-buffer-log "sync(front-point)(%s)" from-point)
(with-current-buffer
(linked-buffer-that conf)
(goto-char from-point))
- [elpa] externals/lentic 19a85aadf8 007/333: Reworked form to circumvent byte-compiler warning., (continued)
- [elpa] externals/lentic 19a85aadf8 007/333: Reworked form to circumvent byte-compiler warning., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 580c5b315d 011/333: Clone point now operates on buffers with no visible windows also., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 9697d9d4de 003/333: Initial commit., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 7bc58a4813 014/333: Delayed linkage added. Typo in v0.2 fixed., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 9ff8e5a75a 024/333: Bug added., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 9f337f08f2 027/333: Initial commit: sort dependencies during test., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic ed64dff0c7 031/333: Support for asciidoc->latex transformation, ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 73fe35fa77 023/333: Refactoring to remove code duplication., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic d72b413ac8 037/333: Moved file name, ELPA Syncer, 2024/02/27
- [elpa] externals/lentic ec206bf673 060/333: Update in preparation for 0.5 release., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 29688f7ec6 089/333: Logging alterations.,
ELPA Syncer <=
- [elpa] externals/lentic b0c705c488 093/333: Removed :numeric option., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 8ee4c01fe5 086/333: Fixed some errant blocks., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic b2e4d953f1 053/333: Support for Org to Elisp transformation., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic e9369029fe 055/333: Having this in git is a pain!, ELPA Syncer, 2024/02/27
- [elpa] externals/lentic c88b7ccbe2 057/333: Update to add emacs temp files., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 8b7966fd4e 066/333: Test files added for org-orgel, ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 95feec5f21 075/333: Move to MELPA, ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 4f5f1bb96a 092/333: Add support for logging non-matching buffers., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic bba710c2f0 100/333: Further tests for incremental updates., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic a85fe6d8d5 101/333: Merge branch 'feature/incremental-update' into feature/incremental-blocks-update, ELPA Syncer, 2024/02/27