* lisp/subr.el (with-restriction): Tweak indent rule

This commit is contained in:
Stefan Monnier 2023-06-12 22:43:44 -04:00
parent 36aa9bd818
commit 4da479920e
2 changed files with 2 additions and 2 deletions

View file

@ -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) (min (+ (point) 10000) (point-max))
(point) (min (+ (point) 10000) (point-max))
(looking-at (concat "[^<>\n]+?"
(xmltok-attribute regexp))))
(unless recovering

View file

@ -3971,7 +3971,7 @@ to other portions of the buffer, use `without-restriction' with the
same LABEL argument.
\(fn START END [:label LABEL] BODY)"
(declare (indent 0) (debug t))
(declare (indent 2) (debug t))
(if (eq (car rest) :label)
`(internal--with-restriction ,start ,end (lambda () ,@(cddr rest))
,(cadr rest))