aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
authorEli Zaretskii2023-02-13 20:11:28 +0200
committerEli Zaretskii2023-02-13 20:11:28 +0200
commit3d572ae0d507bba07f3cfc5ae2d2c7dd4937472c (patch)
treeddff8ab3f26f07bcb3694a7a5493871a9410ca85 /src/buffer.c
parentdd8b720ee74e72359eb174aa5a27ab1770a349bd (diff)
downloademacs-3d572ae0d507bba07f3cfc5ae2d2c7dd4937472c.tar.gz
emacs-3d572ae0d507bba07f3cfc5ae2d2c7dd4937472c.zip
Rename with/without-narrowing to with/without-restriction
* doc/lispref/commands.texi: * doc/lispref/display.texi: * doc/lispref/positions.texi: * etc/NEWS: * lisp/subr.el: * src/buffer.c: * src/editfns.c: * src/keyboard.c: * src/xdisp.c: * test/src/buffer-tests.el: Rename with-narrowing and without-narrowing to with-restriction and without-restriction. Likewise with internal--with-narrowing and internal--without-narrowing. All callers and documentation changed.
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 755061d0dee..df1f5206668 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -5924,7 +5924,7 @@ This variable has effect only in buffers in which
5924`long-line-optimizations-p' is non-nil. For performance reasons, in 5924`long-line-optimizations-p' is non-nil. For performance reasons, in
5925such buffers, the `fontification-functions', `pre-command-hook' and 5925such buffers, the `fontification-functions', `pre-command-hook' and
5926`post-command-hook' hooks are executed on a narrowed buffer around 5926`post-command-hook' hooks are executed on a narrowed buffer around
5927point, as if they were called in a `with-narrowing' form with a label. 5927point, as if they were called in a `with-restriction' form with a label.
5928This variable specifies the size of the narrowed region around point. 5928This variable specifies the size of the narrowed region around point.
5929 5929
5930To disable that narrowing, set this variable to 0. 5930To disable that narrowing, set this variable to 0.
@@ -5942,7 +5942,7 @@ This variable has effect only in buffers in which
5942`long-line-optimizations-p' is non-nil. For performance reasons, in 5942`long-line-optimizations-p' is non-nil. For performance reasons, in
5943such buffers, the `fontification-functions', `pre-command-hook' and 5943such buffers, the `fontification-functions', `pre-command-hook' and
5944`post-command-hook' hooks are executed on a narrowed buffer around 5944`post-command-hook' hooks are executed on a narrowed buffer around
5945point, as if they were called in a `with-narrowing' form with a label. 5945point, as if they were called in a `with-restriction' form with a label.
5946The variable `long-line-optimizations-region-size' specifies the 5946The variable `long-line-optimizations-region-size' specifies the
5947size of the narrowed region around point. This variable, which should 5947size of the narrowed region around point. This variable, which should
5948be a small integer, specifies the number of characters by which that 5948be a small integer, specifies the number of characters by which that