Add 'declare' specs to with- and without-restriction
* lisp/subr.el (with-restriction): (without-restriction): Add 'declare' specs.
This commit is contained in:
parent
f9b7913656
commit
971ded31c4
1 changed files with 2 additions and 0 deletions
|
@ -3959,6 +3959,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))
|
||||
(if (eq (car rest) :label)
|
||||
`(internal--with-restriction ,start ,end (lambda () ,@(cddr rest))
|
||||
,(cadr rest))
|
||||
|
@ -3981,6 +3982,7 @@ restrictions set by `with-restriction' with the same LABEL argument
|
|||
are lifted.
|
||||
|
||||
\(fn [:label LABEL] BODY)"
|
||||
(declare (indent 0) (debug t))
|
||||
(if (eq (car rest) :label)
|
||||
`(internal--without-restriction (lambda () ,@(cddr rest))
|
||||
,(cadr rest))
|
||||
|
|
Loading…
Add table
Reference in a new issue