]> git.eshelyaron.com Git - emacs.git/commitdiff
* lisp/subr.el (with-restriction): Tweak indent rule
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 13 Jun 2023 02:43:44 +0000 (22:43 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 13 Jun 2023 02:43:44 +0000 (22:43 -0400)
lisp/nxml/xmltok.el
lisp/subr.el

index 6f9df554da0da940b9877af25a0dfdea49d91cfe..78fa91b5cdc541e4e9cd1c3b20d17ca972b4209e 100644 (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
index 950902039b1d384a57e6cadb56c26465c934bac1..85adef5b68992cb5ed4e0f9de5c811cb576a1c81 100644 (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))