aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/subr.el
diff options
context:
space:
mode:
authorGregory Heytings2023-07-06 17:04:56 +0000
committerGregory Heytings2023-07-06 17:14:23 +0000
commitc52ade305edf04351045eea66d2bcf74d36a3d3a (patch)
tree0022170237d0db27d021db9bb4193fd1ed9eccaa /lisp/subr.el
parent01fb898420fe8260a1adc267993549a93b901cd8 (diff)
downloademacs-scratch/bug64391.tar.gz
emacs-scratch/bug64391.zip
Symmetrical simplification to exit a labeled restrictionscratch/bug64391
* src/editfns.c: (Finternal__labeled_widen): Add a call to 'Fwiden', and rename from 'internal--unlabel-restriction'. (unwind_labeled_narrow_to_region): Use the renamed function, and remove the call to 'Fwiden'. (syms_of_editfns): Rename the symbol. * lisp/subr.el (internal--without-restriction): Use the renamed function.
Diffstat (limited to 'lisp/subr.el')
-rw-r--r--lisp/subr.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/subr.el b/lisp/subr.el
index 0b397b7bebf..20722c52948 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -4004,7 +4004,9 @@ are lifted.
4004(defun internal--without-restriction (body &optional label) 4004(defun internal--without-restriction (body &optional label)
4005 "Helper function for `without-restriction', which see." 4005 "Helper function for `without-restriction', which see."
4006 (save-restriction 4006 (save-restriction
4007 (if label (internal--unlabel-restriction label)) 4007 (if label
4008 (internal--labeled-widen label)
4009 (widen))
4008 (widen) 4010 (widen)
4009 (funcall body))) 4011 (funcall body)))
4010 4012