summaryrefslogtreecommitdiff
path: root/src/comp.c
diff options
context:
space:
mode:
authorGregory Heytings <gregory@heytings.org>2023-02-14 20:22:50 +0000
committerGregory Heytings <gregory@heytings.org>2023-02-14 21:41:35 +0100
commit5206a551c166fc1908edff4fdf1695f7cef3600a (patch)
tree6865a1e4131030a6c32c7551c8441a63ea349bd2 /src/comp.c
parentaccd88d55455b8c585b162242e6e4ede742afa99 (diff)
Improve backward compatibility of save-restriction
* src/editfns.c (save_restriction_save_1): Renamed from 'save_restrictions_save'. Make it static. (save_restriction_restore_1): Renamed from 'save_restriction_restore'. Make it static. (save_restriction_restore): New function, combining 'save_restriction_save_1' and 'narrowing_locks_save'. (save_restriction_save): New function, combining 'save_restriction_restore_1' and 'narrowing_locks_restore'. (Fsave_restriction): Restore the previous code. (narrowing_locks_save, narrowing_locks_restore): Make them static. * src/lisp.h: Remove two functions that are not externally visible anymore. * src/comp.c (helper_save_restriction): Restore the previous code. * src/bytecode.c (exec_byte_code): Restore the previous code. * lisp/emacs-lisp/bytecomp.el (byte-compile-save-restriction): Decrement unbinding count.
Diffstat (limited to 'src/comp.c')
-rw-r--r--src/comp.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/comp.c b/src/comp.c
index 0e2dfd3913b..10cf7962ba1 100644
--- a/src/comp.c
+++ b/src/comp.c
@@ -5063,8 +5063,6 @@ helper_save_restriction (void)
{
record_unwind_protect (save_restriction_restore,
save_restriction_save ());
- record_unwind_protect (narrowing_locks_restore,
- narrowing_locks_save ());
}
static bool