]> git.eshelyaron.com Git - emacs.git/commit
Simplify 'with-restriction' and 'without-restriction'
authorGregory Heytings <gregory@heytings.org>
Wed, 16 Aug 2023 15:58:39 +0000 (15:58 +0000)
committerGregory Heytings <gregory@heytings.org>
Wed, 16 Aug 2023 16:06:38 +0000 (16:06 +0000)
commitc287a0fdc7e3f70d819ef8efd1d7922b33df164c
tree843fc9f866f1e110934066d7e7ecf0eefa8cfd31
parent9e9e11648d3d5514de85edfb69f0949a062f4716
Simplify 'with-restriction' and 'without-restriction'

* lisp/subr.el (with-restriction, without-restriction): Merge the
bodies of the 'internal--with-restriction' and
'internal--without-restriction' function into the macros.  The
result is more efficient than a funcall.
(internal--with-restriction, internal--without-restriction):
Remove.
Suggested by Mattias EngdegĂ„rd.
lisp/subr.el