[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/lentic 449c4d0bc1 098/333: Pass start and end through.
From: |
ELPA Syncer |
Subject: |
[elpa] externals/lentic 449c4d0bc1 098/333: Pass start and end through. |
Date: |
Tue, 27 Feb 2024 13:00:11 -0500 (EST) |
branch: externals/lentic
commit 449c4d0bc1b67123224712828e4cad4086679846
Author: Phillip Lord <phillip.lord@newcastle.ac.uk>
Commit: Phillip Lord <phillip.lord@newcastle.ac.uk>
Pass start and end through.
---
linked-buffer-block.el | 40 ++++++++++++++++++++++++++++++++++++++--
1 file changed, 38 insertions(+), 2 deletions(-)
diff --git a/linked-buffer-block.el b/linked-buffer-block.el
index c1bd7d811f..6ce4343880 100644
--- a/linked-buffer-block.el
+++ b/linked-buffer-block.el
@@ -243,7 +243,25 @@ between the two buffers; we don't care which one has
comments."
;; if the delimitors are unmatched, then we can do nothing other than clone.
(condition-case e
(linked-buffer-blk-uncomment-buffer
- conf (point-min) (point-max) (linked-buffer-that conf))
+ conf
+ ;; the buffer at this point has been copied over, but is in an
+ ;; inconsistent state (because it may have comments that it should
+ ;; not). Still, the convertor should still work because it counts from
+ ;; the end
+ (linked-buffer-convert
+ conf
+ ;; point-min if we know nothing else
+ (or start (point-min)))
+ (linked-buffer-convert
+ conf
+ ;; if we have a stop
+ (if stop
+ ;; take stop (if we have got longer) or
+ ;; start length before (if we have got shorter)
+ (max stop
+ (+ start length-before))
+ (point-max)))
+ (linked-buffer-that conf))
(unmatched-delimiter-error
nil)))
@@ -275,7 +293,25 @@ between the two buffers; we don't care which one has
comments."
(call-next-method conf start stop length-before)
(condition-case e
(linked-buffer-blk-comment-buffer
- conf (point-min) (point-max) (linked-buffer-that conf))
+ conf
+ ;; the buffer at this point has been copied over, but is in an
+ ;; inconsistent state (because it may have comments that it should
+ ;; not). Still, the convertor should still work because it counts from
+ ;; the end
+ (linked-buffer-convert
+ conf
+ ;; point-min if we know nothing else
+ (or start (point-min)))
+ (linked-buffer-convert
+ conf
+ ;; if we have a stop
+ (if stop
+ ;; take stop (if we have got longer) or
+ ;; start length before (if we have got shorter)
+ (max stop
+ (+ start length-before))
+ (point-max)))
+ (linked-buffer-that conf))
(unmatched-delimiter-error nil)))
(defmethod linked-buffer-invert
- [elpa] externals/lentic e80d2346e6 070/333: Split local variables string., (continued)
- [elpa] externals/lentic e80d2346e6 070/333: Split local variables string., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic f7ad2e9267 077/333: Small documentation update., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 191e7b3c66 080/333: Initial incorporation of incremental change., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic e3032a6ebc 067/333: v0.5 release, ELPA Syncer, 2024/02/27
- [elpa] externals/lentic a188840402 090/333: Incremental updates for block mode., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 475d8e14ba 071/333: Case sensitivity an option for blocks., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic e195259aac 076/333: linked-buffer-org documentation completed., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic bf5a5cfbf1 085/333: Add long test file., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 070c94118e 074/333: Added .dir-locals, ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 08cb364e4c 094/333: Nil markers after use., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 449c4d0bc1 098/333: Pass start and end through.,
ELPA Syncer <=
- [elpa] externals/lentic 10c91c51d5 110/333: Specialised beginning of line treatment., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 8ab992a0d0 113/333: Added a test to bug with orgel->org mode., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 48d809a4af 115/333: Use unwind-protect in test forms., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic abcdc7f422 117/333: m-buffer-with-markers used., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 934c7bc313 118/333: Fixes for incremental updates., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 779c2d05e3 120/333: Treat start of line properly in blocks., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 30d9141686 121/333: m-buffer update -- move to stable., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic a740327d41 126/333: More efficient detection of first line., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 37eb0a74cd 128/333: More Emacs versions added., ELPA Syncer, 2024/02/27
- [elpa] externals/lentic 6ce64ab475 131/333: Test only two versions!, ELPA Syncer, 2024/02/27