diff options
| author | Gregory Heytings | 2023-02-09 01:09:10 +0000 |
|---|---|---|
| committer | Gregory Heytings | 2023-02-09 02:44:32 +0100 |
| commit | a4aa32bdfff7aaf54efbacbb04b7f2b52fef92a7 (patch) | |
| tree | 2a36555153fd494bc059132a8d78a09e6f701668 /src/comp.c | |
| parent | 0ec0a610ed226419269f519021cbe8fb2dde2ed5 (diff) | |
| download | emacs-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.c | 2 |
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 | ||
| 5068 | static bool | 5070 | static bool |