summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorGregory Heytings <gregory@heytings.org>2023-07-06 17:04:53 +0000
committerGregory Heytings <gregory@heytings.org>2023-07-06 17:14:17 +0000
commitb741dc7fcde0c601a01470655ceaeeef854ac32e (patch)
treee51a18878cf3197c5afa29ad5a5b6ee186a9a97a /lisp/emacs-lisp
parent9b38773a20b43e2354ddf036ffa28e397537da3f (diff)
downloademacs-b741dc7fcde0c601a01470655ceaeeef854ac32e.tar.gz
emacs-b741dc7fcde0c601a01470655ceaeeef854ac32e.tar.bz2
emacs-b741dc7fcde0c601a01470655ceaeeef854ac32e.zip
Add internal function to enter a labeled restriction
* src/editfns.c (Finternal__labeled_narrow_to_region): New function. A specific function is necessary to avoid unnecessary slowdowns when 'narrow-to-region'/'widen' are called in a loop. (Fnarrow_to_region): Remove the call to Fset, which has been moved into Finternal__labeled_narrow_to_region. (labeled_narrow_to_region): Use the new function. (syms_of_editfns): Add the symbol of the new function. * lisp/subr.el (internal--with-restriction): Use the new function.
Diffstat (limited to 'lisp/emacs-lisp')
0 files changed, 0 insertions, 0 deletions