Guest User

Untitled

a guest
May 27th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.05 KB | None | 0 0
  1. (let ((redo t))
  2. (while redo
  3. (goto-char (+ start 1))
  4. (setq redo nil)
  5. (let* ((this-block (sbw/ab-get-containing-block (point)))
  6. (start-of-block (pop this-block))
  7. (end-of-block (pop this-block)))
  8.  
  9. (mapcar
  10. (lambda (this)
  11. (let (
  12. (cnt (overlay-get this 'sbw/ab-contents))
  13. (stack (overlay-get this 'sbw/ab-stack))
  14. )
  15.  
  16. (if (or (not cnt) (> (length stack) 0))
  17. (ignore)
  18. (save-excursion
  19. (goto-char (overlay-start this))
  20. (if (< (overlay-start this) start)
  21. ;; (ignore)
  22. (message "ignoring block")
  23. (setq redo t)
  24. (sbw/ab-show-block-contents)
  25.  
  26. ))
  27. ))
  28. ) (overlays-in start-of-block end-of-block)) ; maybe sort?
  29.  
  30.  
  31. )))
Add Comment
Please, Sign In to add comment