summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2023-03-18 17:14:44 +0200
committerEli Zaretskii <eliz@gnu.org>2023-03-18 17:14:44 +0200
commitea0949853f8bdbe3292cbfd9c6c16a073e979e3e (patch)
tree1873d1365040cb776e5b5fb013293a09199f7505
parente388a77cf0b1ccae51c27303d2ab640cbc552015 (diff)
parent11592bcfda6cf85d797d333072453c98994790e1 (diff)
downloademacs-ea0949853f8bdbe3292cbfd9c6c16a073e979e3e.tar.gz
Merge branch 'emacs-29' of git.savannah.gnu.org:/srv/git/emacs into emacs-29
-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