branch: externals/auto-overlays
commit 8859d17e4c800c534adba373927d8944b013478a
Author: Toby Cubitt <[email protected]>
Commit: tsc25 <[email protected]>

    Minor bug fixes.
---
 auto-overlay-self.el | 12 +++++++++---
 1 file changed, 9 insertions(+), 3 deletions(-)

diff --git a/auto-overlay-self.el b/auto-overlay-self.el
index c34f4cc..174d6ad 100644
--- a/auto-overlay-self.el
+++ b/auto-overlay-self.el
@@ -5,7 +5,7 @@
 ;; Copyright (C) 2005 2006 Toby Cubitt
 
 ;; Author: Toby Cubitt <[email protected]>
-;; Version: 0.2.6
+;; Version: 0.2.7
 ;; Keywords: automatic, overlays, self
 ;; URL: http://www.dr-qubit.org/emacs.php
 
@@ -29,6 +29,11 @@
 
 ;;; Change Log:
 ;;
+;; Version 0.2.7
+;; * fixed bug in `auto-o-parse-self-match' which caused a matched self match
+;;   to have null 'parent property if a new self match was created inside an
+;;   existing self overlay
+;;
 ;; Version 0.2.6
 ;; * set overlay properties straight after creation in `auto-o-make-self',
 ;;   rather than leaving it to `auto-overlay-update', in case matching causes
@@ -143,8 +148,9 @@
                       (when overlay-list
                         (overlay-get (overlay-get (car overlay-list) 'start)
                                      'delim-start))))
-         ;; match existing one with the new match
-         (auto-o-match-overlay o nil o-match 'no-props))
+         ;; match end of existing one with the new match, protecting its old
+         ;; end match which is now matched with start of new one
+         (auto-o-match-overlay o nil o-match 'no-props nil 'protect-match))
       
       ;; return newly created overlay
       o-new))

Reply via email to