aboutsummaryrefslogtreecommitdiffstats
path: root/src/editfns.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/editfns.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/editfns.c')
-rw-r--r--src/editfns.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/editfns.c b/src/editfns.c
index 78d2c73ecbf..21e22181b82 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -2787,7 +2787,7 @@ reset_outermost_narrowings (void)
2787 2787
2788/* Helper functions to save and restore the narrowing locks of the 2788/* Helper functions to save and restore the narrowing locks of the
2789 current buffer in Fsave_restriction. */ 2789 current buffer in Fsave_restriction. */
2790static Lisp_Object 2790Lisp_Object
2791narrowing_locks_save (void) 2791narrowing_locks_save (void)
2792{ 2792{
2793 Lisp_Object buf = Fcurrent_buffer (); 2793 Lisp_Object buf = Fcurrent_buffer ();
@@ -2798,7 +2798,7 @@ narrowing_locks_save (void)
2798 return Fcons (buf, Fcopy_sequence (locks)); 2798 return Fcons (buf, Fcopy_sequence (locks));
2799} 2799}
2800 2800
2801static void 2801void
2802narrowing_locks_restore (Lisp_Object buf_and_saved_locks) 2802narrowing_locks_restore (Lisp_Object buf_and_saved_locks)
2803{ 2803{
2804 if (NILP (buf_and_saved_locks)) 2804 if (NILP (buf_and_saved_locks))