summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Heytings <gregory@heytings.org>2023-03-18 15:04:26 +0000
committerGregory Heytings <gregory@heytings.org>2023-03-18 16:05:31 +0100
commit11592bcfda6cf85d797d333072453c98994790e1 (patch)
tree60ae7b8df6f701214228fdeed828597141665864
parent33a26703689298819528bae689cd9a031c90b253 (diff)
downloademacs-11592bcfda6cf85d797d333072453c98994790e1.tar.gz
; * lisp/nxml/xmltok.el (xmltok-scan-attributes): Fix last change
-rw-r--r--lisp/nxml/xmltok.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/nxml/xmltok.el b/lisp/nxml/xmltok.el
index fb852e5ea5e..6f9df554da0 100644
--- a/lisp/nxml/xmltok.el
+++ b/lisp/nxml/xmltok.el
@@ -738,7 +738,7 @@ and VALUE-END, otherwise a STRING giving the value."
;; avoid slowdowns due to the quadratic
;; complexity of the regexp. See bug#61514.
(when (with-restriction
- (point) (+ (point) 10000)
+ (point) (min (+ (point) 10000) (point-max))
(looking-at (concat "[^<>\n]+?"
(xmltok-attribute regexp))))
(unless recovering