]> git.eshelyaron.com Git - emacs.git/commit
Save and restore narrowing locks in 'save-restriction'.
authorGregory Heytings <gregory@heytings.org>
Sat, 26 Nov 2022 00:14:15 +0000 (00:14 +0000)
committerGregory Heytings <gregory@heytings.org>
Sat, 26 Nov 2022 00:33:07 +0000 (01:33 +0100)
commit16b8b0d1e07d394e01f76d9eed6006219b4d745b
treea67c8a9238e131908b903a96a6dbf9f7fa8fe42d
parenta24652403951751b0bb7ed41033d3414a888310a
Save and restore narrowing locks in 'save-restriction'.

* src/editfns.c: (Fsave_restriction): Save and restore narrowing
locks.  Suggested by Stefan Monnier.
(narrowing_locks_save, narrowing_locks_restore): Helper functions.

* lisp/subr.el (with-narrowing-1): Simplify.
lisp/subr.el
src/editfns.c