[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/lentic e0840dbfe6 082/333: Stop location now calculated
From: |
ELPA Syncer |
Subject: |
[elpa] externals/lentic e0840dbfe6 082/333: Stop location now calculated from before functions. |
Date: |
Tue, 27 Feb 2024 13:00:09 -0500 (EST) |
branch: externals/lentic
commit e0840dbfe6c798966f6bfb46bb4250144efffe73
Author: Phillip Lord <phillip.lord@newcastle.ac.uk>
Commit: Phillip Lord <phillip.lord@newcastle.ac.uk>
Stop location now calculated from before functions.
---
linked-buffer.el | 31 ++++++++++++++++---------------
1 file changed, 16 insertions(+), 15 deletions(-)
diff --git a/linked-buffer.el b/linked-buffer.el
index b8a7a1eb1c..5c0b7ddcc0 100644
--- a/linked-buffer.el
+++ b/linked-buffer.el
@@ -178,6 +178,9 @@ of mode in the current buffer.")
:initform t)
(last-change-start-converted
:initarg :last-change-start-converted
+ :initform nil)
+ (last-change-stop-converted
+ :initarg :last-change-stop-converted
:initform nil))
"Configuration object for linked-buffer, which defines the mechanism
by which linking happens.")
@@ -306,24 +309,17 @@ Currently, this is just a clone all method but may use
regions in future."
;; buffers do not share state until we have percolated it
(converted-start
(or (oref conf :last-change-start-converted)
- (point-min))))
+ (point-min)))
+ (converted-stop
+ (or (oref conf :last-change-stop-converted)
+ (point-max))))
;; used this, so dump it
(oset conf :last-change-start-converted nil)
+ (oset conf :last-change-stop-converted nil)
(with-current-buffer that-b
(delete-region (max (point-min) converted-start)
- (min (point-max)
- (+ length-before
- converted-start)))
- (linked-buffer-log
- "delete (from,to):(%s,%s)"
- (max (point-min) converted-start)
- (min (point-max)
- (+ length-before
- converted-start)))
-
+ (min (point-max) converted-stop))
(save-excursion
- (linked-buffer-log "(point,start,converted):(%s,%s,%s)"
- (point) start converted-start)
(goto-char converted-start)
;; so this insertion is happening at the wrong place in block
;; comment -- in fact, it's happening one too early
@@ -336,7 +332,7 @@ Currently, this is just a clone all method but may use
regions in future."
(propertize
(buffer-substring-no-properties
start stop)
- 'font-lock-face 'error))))))))))
+ 'font-lock-face 'font-lock-type-face))))))))))
(defun linked-buffer-default-init ()
"Default init function.
@@ -574,7 +570,12 @@ REST is currently ignored. Currently this does nothing."
:last-change-start-converted
(linked-buffer-convert
linked-buffer-config
- start)))
+ start))
+ (oset linked-buffer-config
+ :last-change-stop-converted
+ (linked-buffer-convert
+ linked-buffer-config
+ stop)))
(linked-buffer-log
"Before-change:%s" rest)
(lambda ())
- [elpa] externals/lentic fead80b26a 078/333: First nearly working version., (continued)
- [elpa] externals/lentic fead80b26a 078/333: First nearly working version., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 9913c47912 081/333: Convert start point before changes., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 0740c92916 084/333: Pabbrev support dropped., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 783951ac3e 072/333: Use case insensitive regexp., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic d9ce04d541 087/333: Dependency updates., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 48644ea72c 083/333: Tests uncommented, and expected failures added., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 236e942322 079/333: Move point to change location., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 55c389ec2a 096/333: Cosmetic Change, ELPA Syncer, 2024/02/27
- [elpa] externals/lentic e2fc6ce904 097/333: Re-enabled orgel-org tests., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 1dad92f20a 095/333: Switch to exact-subtract., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic e0840dbfe6 082/333: Stop location now calculated from before functions.,
ELPA Syncer <=
- [elpa] externals/lentic 6ed73a2ef5 088/333: Add string transform function., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 6c5fabb400 091/333: dev options added., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 03ed3f4da2 119/333: Force loading of m-buffer on opening., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 582d4d72b3 125/333: Search and Replace to lentic., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic a00f92e432 133/333: Refactor out a variable., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic a88717f0c4 102/333: Louder output for comments., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic da6ab1268f 104/333: Change locations now use markers., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 2dd5fcd6b3 105/333: Added let like macro to auto nil markers., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic e1941d0773 106/333: Easy mechanism to disable noisy fails., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 34d05cb7f9 108/333: Now uses random face., ELPA Syncer, 2024/02/27