diff options
| author | Gregory Heytings | 2023-02-14 20:22:50 +0000 |
|---|---|---|
| committer | Gregory Heytings | 2023-02-14 21:41:35 +0100 |
| commit | 5206a551c166fc1908edff4fdf1695f7cef3600a (patch) | |
| tree | 6865a1e4131030a6c32c7551c8441a63ea349bd2 /src/bytecode.c | |
| parent | accd88d55455b8c585b162242e6e4ede742afa99 (diff) | |
| download | emacs-5206a551c166fc1908edff4fdf1695f7cef3600a.tar.gz emacs-5206a551c166fc1908edff4fdf1695f7cef3600a.zip | |
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 '')
| -rw-r--r-- | src/bytecode.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/bytecode.c b/src/bytecode.c index 8e214560f30..124348e5b35 100644 --- a/src/bytecode.c +++ b/src/bytecode.c | |||
| @@ -942,8 +942,6 @@ exec_byte_code (Lisp_Object fun, ptrdiff_t args_template, | |||
| 942 | CASE (Bsave_restriction): | 942 | CASE (Bsave_restriction): |
| 943 | record_unwind_protect (save_restriction_restore, | 943 | record_unwind_protect (save_restriction_restore, |
| 944 | save_restriction_save ()); | 944 | save_restriction_save ()); |
| 945 | record_unwind_protect (narrowing_locks_restore, | ||
| 946 | narrowing_locks_save ()); | ||
| 947 | NEXT; | 945 | NEXT; |
| 948 | 946 | ||
| 949 | CASE (Bcatch): /* Obsolete since 25. */ | 947 | CASE (Bcatch): /* Obsolete since 25. */ |