aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2022-07-29 10:08:50 +0300
committerEli Zaretskii2022-07-29 10:08:50 +0300
commitc6029ed34ea83c7c0adbd723d63bd78ff0ec0796 (patch)
tree6d7313ce717dcb5e1eddb897b6b6120bd313765d /src
parent67a218d33926931b20096edce3eaba2958283bde (diff)
downloademacs-c6029ed34ea83c7c0adbd723d63bd78ff0ec0796.tar.gz
emacs-c6029ed34ea83c7c0adbd723d63bd78ff0ec0796.zip
Minor improvements of recent documentation changes
* src/editfns.c (Fwiden): * doc/lispref/display.texi (Auto Faces): * src/xdisp.c (syms_of_xdisp) <fontification-functions>: * etc/NEWS: Clarify and improve wording of documentation changes.
Diffstat (limited to 'src')
-rw-r--r--src/editfns.c4
-rw-r--r--src/xdisp.c7
2 files changed, 6 insertions, 5 deletions
diff --git a/src/editfns.c b/src/editfns.c
index 40e65dda0c9..d15d4dc68b9 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -2661,8 +2661,8 @@ DEFUN ("widen", Fwiden, Swiden, 0, 0, "",
2661This allows the buffer's full text to be seen and edited. 2661This allows the buffer's full text to be seen and edited.
2662 2662
2663When called from Lisp inside a body form in which `narrow-to-region' 2663When called from Lisp inside a body form in which `narrow-to-region'
2664was called with an optional argument LOCK non-nil, this does not 2664was called with an optional argument LOCK non-nil, this function does
2665produce any effect. */) 2665not produce any effect. */)
2666 (void) 2666 (void)
2667{ 2667{
2668 if (! NILP (Vrestrictions_locked)) 2668 if (! NILP (Vrestrictions_locked))
diff --git a/src/xdisp.c b/src/xdisp.c
index 8867406c4e2..3ef3c0d3796 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -36653,12 +36653,13 @@ The tool bar style must also show labels for this to have any effect, see
36653 doc: /* List of functions to call to fontify regions of text. 36653 doc: /* List of functions to call to fontify regions of text.
36654Each function is called with one argument POS. Functions must 36654Each function is called with one argument POS. Functions must
36655fontify a region starting at POS in the current buffer, and give 36655fontify a region starting at POS in the current buffer, and give
36656fontified regions the property `fontified'. 36656fontified regions the property `fontified' with a non-nil value.
36657 36657
36658Note that, when the buffer contains one or more lines whose length is 36658Note that, when the buffer contains one or more lines whose length is
36659above `long-line-threshold', the restrictions of the buffer are locked 36659above `long-line-threshold', the narrowing of the buffer is locked
36660(see `narrow-to-region'), and these functions only have access to a 36660(see `narrow-to-region'), and these functions only have access to a
36661small portion of the buffer around POS. */); 36661small portion of the buffer around POS and cannot use `widen' to gain
36662access to other portions of buffer text. */);
36662 Vfontification_functions = Qnil; 36663 Vfontification_functions = Qnil;
36663 Fmake_variable_buffer_local (Qfontification_functions); 36664 Fmake_variable_buffer_local (Qfontification_functions);
36664 36665