aboutsummaryrefslogtreecommitdiff
path: root/generic/pg-user.el
diff options
context:
space:
mode:
authorDavid Aspinall2002-08-12 14:10:43 +0000
committerDavid Aspinall2002-08-12 14:10:43 +0000
commitbb5b21393335d22729b5444dc90ee8b58b8c822b (patch)
tree7ee0cdf3de6fe0efbb84940033ac99cb06bcc851 /generic/pg-user.el
parent76be976c137d240de681f9bff8684a4fd1503d5f (diff)
Fix for moving span duplicable prob. Still not really working
Diffstat (limited to 'generic/pg-user.el')
-rw-r--r--generic/pg-user.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/generic/pg-user.el b/generic/pg-user.el
index 6055ff3a..42f1e78b 100644
--- a/generic/pg-user.el
+++ b/generic/pg-user.el
@@ -759,6 +759,11 @@ If NUM is negative, move upwards. Return new span."
;; When we delete the span, we want to duplicate it
;; to recreate in the new position.
(set-span-property span 'duplicable 't)
+ ;; FIXME: this is faulty: moving span up gives children
+ ;; list with single nil element. Hence liveness test
+ (mapcar (lambda (s) (if (span-live-p s)
+ (set-span-property s 'duplicable 't)))
+ (span-property span 'children))
(let* ((start (span-start span))
(end (span-end span))
(contents (buffer-substring start end))