aboutsummaryrefslogtreecommitdiffstats
path: root/src/comp.c
diff options
context:
space:
mode:
authorGregory Heytings2023-02-09 01:09:10 +0000
committerGregory Heytings2023-02-09 02:44:32 +0100
commita4aa32bdfff7aaf54efbacbb04b7f2b52fef92a7 (patch)
tree2a36555153fd494bc059132a8d78a09e6f701668 /src/comp.c
parent0ec0a610ed226419269f519021cbe8fb2dde2ed5 (diff)
downloademacs-a4aa32bdfff7aaf54efbacbb04b7f2b52fef92a7.tar.gz
emacs-a4aa32bdfff7aaf54efbacbb04b7f2b52fef92a7.zip
Fix 'save-restriction' for narrowing locks
* src/editfns.c (narrowing_locks_save): (narrowing_locks_restore): Make them non-static. * src/lisp.h: Make them externally visible. * src/bytecode.c (exec_byte_code): Save and restore narrowing locks. * lisp/emacs-lisp/bytecomp.el (byte-compile-save-restriction): Increment unbinding count. * src/comp.c (helper_save_restriction): Save and restore narrowing locks.
Diffstat (limited to 'src/comp.c')
-rw-r--r--src/comp.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/comp.c b/src/comp.c
index 10cf7962ba1..0e2dfd3913b 100644
--- a/src/comp.c
+++ b/src/comp.c
@@ -5063,6 +5063,8 @@ helper_save_restriction (void)
5063{ 5063{
5064 record_unwind_protect (save_restriction_restore, 5064 record_unwind_protect (save_restriction_restore,
5065 save_restriction_save ()); 5065 save_restriction_save ());
5066 record_unwind_protect (narrowing_locks_restore,
5067 narrowing_locks_save ());
5066} 5068}
5067 5069
5068static bool 5070static bool