branch: externals/auto-overlays
commit ff75a639d411e61bc16898afa368cf57a8f212ee
Author: Toby Cubitt <[email protected]>
Commit: Toby S. Cubitt <[email protected]>
Bug-fix in auto-overlay-load-definition
---
auto-overlays.el | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/auto-overlays.el b/auto-overlays.el
index f7b332e..a35c245 100644
--- a/auto-overlays.el
+++ b/auto-overlays.el
@@ -5,7 +5,7 @@
;; Copyright (C) 2005-2008 Toby Cubitt
;; Author: Toby Cubitt <[email protected]>
-;; Version: 0.9.5
+;; Version: 0.9.6
;; Keywords: automatic, overlays
;; URL: http://www.dr-qubit.org/emacs.php
@@ -30,6 +30,9 @@
;;; Change Log:
;;
+;; Version 0.9.6
+;; * bug-fix in `auto-overlay-load-definition'
+;;
;; Version 0.9.5
;; * bug-fixes in `auto-overlay-save-overlays' and `auto-overlay-load-overlays'
;;
@@ -571,7 +574,7 @@ symbol that can be used to uniquely identify REGEXP (see
(cond
;; adding first entry or at start
((or (eq pos t) (= (length regexps) 0)
- (and (integerp pos) (<= pos (length regexps))))
+ (and (integerp pos) (<= pos 0)))
(auto-o-prepend-regexp set-id (list definition-id class)))
;; adding at end
((or (null pos) (and (integerp pos) (>= pos (length regexps))))