]> git.eshelyaron.com Git - emacs.git/commit
Improve handling of killed buffers in locked narrowings
authorGregory Heytings <gregory@heytings.org>
Sun, 27 Nov 2022 00:24:40 +0000 (00:24 +0000)
committerGregory Heytings <gregory@heytings.org>
Sun, 27 Nov 2022 00:27:05 +0000 (01:27 +0100)
commit1d1a83ba56e56c2eda5a22b3ba2d8d9578271eee
tree3310fd986d4ce786215e98ead99a2310be05f5f3
parent321d4e61551a0f6dfb1abfc0b54e6177735bde58
Improve handling of killed buffers in locked narrowings

* src/editfns.c (narrowing_locks_add, narrowing_locks_remove):
New functions, factored out.
(narrowing_lock_push, narrowing_lock_pop)
(narrowing_locks_restore): Use the new functions.
(narrowing_lock_get_bound): Return NULL for killed buffers.
(reset_outermost_narrowings, unwind_reset_outermost_narrowing):
Remove killed buffers from the 'narrowing_locks' alist.
src/editfns.c