[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/auto-overlays d66bab4 11/93: Fixed "self" regexp bugs i
From: |
Stefan Monnier |
Subject: |
[elpa] externals/auto-overlays d66bab4 11/93: Fixed "self" regexp bugs in auto-overlay package. |
Date: |
Mon, 14 Dec 2020 13:00:27 -0500 (EST) |
branch: externals/auto-overlays
commit d66bab48ca6dffa1ba96add5805103626251492c
Author: Toby Cubitt <toby-predictive@dr-qubit.org>
Commit: tsc25 <toby-predictive@dr-qubit.org>
Fixed "self" regexp bugs in auto-overlay package.
Added (overlooked) predictive latex subfig support file.
---
auto-overlay-self.el | 15 ++++++++++-----
auto-overlays-compat.el | 8 ++++++--
auto-overlays.el | 15 +++++++++++++--
3 files changed, 29 insertions(+), 9 deletions(-)
diff --git a/auto-overlay-self.el b/auto-overlay-self.el
index 1f0628a..20429ef 100644
--- a/auto-overlay-self.el
+++ b/auto-overlay-self.el
@@ -5,7 +5,7 @@
;; Copyright (C) 2005 2006 Toby Cubitt
;; Author: Toby Cubitt <toby-predictive@dr-qubit.org>
-;; Version: 0.2.3
+;; Version: 0.2.4
;; Keywords: automatic, overlays, self
;; URL: http://www.dr-qubit.org/emacs.php
@@ -29,6 +29,10 @@
;;; Change Log:
;;
+;; Version 0.2.4
+;; * fixed(?) bug in auto-o-self-list that caused it to
+;; sometimes miss out the parent overlay itself from the list
+;;
;; Version 0.2.3
;; * updated to reflect changes in `auto-overlays.el'
;; * changed `auto-o-self-list' to make it run faster
@@ -322,11 +326,12 @@
;; create list of all overlays corresponding to same entry between O-START
;; and END
(setq overlay-list
- ;; Note: We add 1 to end to catch overlays that start at end. This
- ;; seems to give same results as the old version of
- ;; `auto-o-self-list' (above) in all circumstances.
+ ;; Note: We subtract 1 from start and add 1 to end to catch overlays
+ ;; that end at start or start at end. This seems to give the
+ ;; same results as the old version of `auto-o-self-list'
+ ;; (above) in all circumstances.
(auto-overlays-in
- (overlay-get o-start 'delim-start) (1+ end)
+ (1- (overlay-get o-start 'delim-start)) (1+ end)
(list
'(identity auto-overlay)
(list 'eq 'set-id (overlay-get o-start 'set-id))
diff --git a/auto-overlays-compat.el b/auto-overlays-compat.el
index b079fb7..672e926 100644
--- a/auto-overlays-compat.el
+++ b/auto-overlays-compat.el
@@ -5,7 +5,7 @@
;; Copyright (C) 2006 Toby Cubitt
;; Author: Toby Cubitt <toby-predictive@dr-qubit.org>
-;; Version: 0.2
+;; Version: 0.3
;; Keywords: auto-overlay, automatic, overlays, compatability
;; URL: http://www.dr-qubit.org/emacs.php
@@ -30,6 +30,9 @@
;;; Change Log:
;;
+;; Version 0.3
+;; * fixed bug in line-number-at-pos compatibility function
+;;
;; Version 0.2
;; * added replace-regexps-in-string compatibility function
;;
@@ -42,9 +45,10 @@
(provide 'auto-overlays-compat)
-(defun auto-overlays-compat-line-number-at-pos (pos)
+(defun auto-overlays-compat-line-number-at-pos (&optional pos)
"Return (narrowed) buffer line number at position POS.
\(Defaults to the point.\)"
+ (unless pos (setq pos (point)))
(1+ (count-lines (point-min) pos))
)
diff --git a/auto-overlays.el b/auto-overlays.el
index 985b63b..058ce1d 100644
--- a/auto-overlays.el
+++ b/auto-overlays.el
@@ -5,7 +5,7 @@
;; Copyright (C) 2005 2006 Toby Cubitt
;; Author: Toby Cubitt <toby-predictive@dr-qubit.org>
-;; Version: 0.6.1
+;; Version: 0.6.2
;; Keywords: automatic, overlays
;; URL: http://www.dr-qubit.org/emacs.php
@@ -30,6 +30,12 @@
;;; Change Log:
;;
+;; Version 0.6.2
+;; * fixed(?) bugs in `auto-o-update-exclusive' that caused it to fail if
+;; called during a suicide when parentless overlays can exist, and that
+;; caused it to infinitely recurse if an exclusive overlay partially
+;; overlapped with its match overlay
+;;
;; Version 0.6.1
;; * fixed minor bug in `auto-overlay-save-overlays'
;;
@@ -913,11 +919,16 @@ The FILE should be generated by
`auto-overlay-save-overlays'."
beg end
(list '(identity auto-overlay-match)
(list 'eq 'set-id set-id)
+ ;; note: parentless overlays are possible if a suicide is
+ ;; in progress, so need to check overlay has a parent first
+ '(identity parent)
(list (lambda (parent)
(null (overlay-get parent 'inactive)))
'parent)
(list (lambda (pri new) (or (null pri) (< pri new)))
- 'priority new-priority))))
+ 'priority new-priority))
+ 'within)) ; FIXME: this is necessary in some cases, but might
+ ; muck up other cases - check
;; call appropriate suicide function for each match overlay in list
(dolist (o overlay-list) (funcall (auto-o-suicide-function o) o)))
- [elpa] externals/auto-overlays 5edcad0 65/93: Makefile rules and utilities for ELPA packaging., (continued)
- [elpa] externals/auto-overlays 5edcad0 65/93: Makefile rules and utilities for ELPA packaging., Stefan Monnier, 2020/12/14
- [elpa] externals/auto-overlays fad8e4a 72/93: Reenable auto-overlay updates triggered by undo., Stefan Monnier, 2020/12/14
- [elpa] externals/auto-overlays bd7d56d 67/93: Refactor auto-overlays manual into a single source file., Stefan Monnier, 2020/12/14
- [elpa] externals/auto-overlays 888cba4 74/93: Refactor auto-overlay-(common|compat) into auto-overlays.el, Stefan Monnier, 2020/12/14
- [elpa] externals/auto-overlays 3eeb95a 78/93: Fix bug in delim-start and delim-end property updating., Stefan Monnier, 2020/12/14
- [elpa] externals/auto-overlays b02fbba 79/93: Added general accessor function auto-o-[regexp-]key-value., Stefan Monnier, 2020/12/14
- [elpa] externals/auto-overlays 75c2c75 82/93: Improve auto-overlays-in/at-point docstrings., Stefan Monnier, 2020/12/14
- [elpa] externals/auto-overlays d107a02 84/93: Reparse auto-overlays on loading/unloading regexp definitions., Stefan Monnier, 2020/12/14
- [elpa] externals/auto-overlays 033900e 90/93: Fix some quoting problems in doc strings, Stefan Monnier, 2020/12/14
- [elpa] externals/auto-overlays db9036a 92/93: * packages/auto-overlays/: Activate lexical-binding., Stefan Monnier, 2020/12/14
- [elpa] externals/auto-overlays d66bab4 11/93: Fixed "self" regexp bugs in auto-overlay package.,
Stefan Monnier <=
- [elpa] externals/auto-overlays 86c25df 14/93: Removed auto-overlay-functions variable, and implemented new regexp class interface, Stefan Monnier, 2020/12/14
- [elpa] externals/auto-overlays 622afa4 13/93: Another very similar bug fix to do with updating exclusive overlays., Stefan Monnier, 2020/12/14
- [elpa] externals/auto-overlays 1db0b95 22/93: Various minor bug fixes, and changes to bring packages up to date, Stefan Monnier, 2020/12/14
- [elpa] externals/auto-overlays ea600c4 27/93: Bug fixes to new update scheduling, and to loading overlays from file., Stefan Monnier, 2020/12/14
- [elpa] externals/auto-overlays 734371d 43/93: Changed @ignore Texinfo command to flat overlay class., Stefan Monnier, 2020/12/14
- [elpa] externals/auto-overlays 55e868d 30/93: auto-o-suicide also needs to remove old properties., Stefan Monnier, 2020/12/14
- [elpa] externals/auto-overlays 5d5e09e 45/93: trivial whitespace changes, Stefan Monnier, 2020/12/14
- [elpa] externals/auto-overlays 0936d26 39/93: Work around goto-line bug., Stefan Monnier, 2020/12/14
- [elpa] externals/auto-overlays ff75a63 49/93: Bug-fix in auto-overlay-load-definition, Stefan Monnier, 2020/12/14
- [elpa] externals/auto-overlays 9e8ef72 36/93: Modified interface functions for defining auto-overlay regexps., Stefan Monnier, 2020/12/14