Minor copyedits of doc of 'with-silent-modifications'
* doc/lispref/text.texi (Changing Properties): * doc/lispref/buffers.texi (Buffer Modification): Improve documentation and indexing of 'with-silent-modifications'.
This commit is contained in:
parent
759399cdb1
commit
fcd599bbea
2 changed files with 3 additions and 3 deletions
|
@ -596,8 +596,8 @@ and features that react to buffer modifications, use the
|
||||||
Execute @var{body} pretending it does not modify the buffer. This
|
Execute @var{body} pretending it does not modify the buffer. This
|
||||||
includes checking whether the buffer's file is locked (@pxref{File
|
includes checking whether the buffer's file is locked (@pxref{File
|
||||||
Locks}), running buffer modification hooks (@pxref{Change Hooks}),
|
Locks}), running buffer modification hooks (@pxref{Change Hooks}),
|
||||||
etc. Note that if @var{body} actually modifies the buffer text, its
|
etc. Note that if @var{body} actually modifies the buffer text (as
|
||||||
undo data may become corrupted.
|
opposed to its text properties), its undo data may become corrupted.
|
||||||
@end defmac
|
@end defmac
|
||||||
|
|
||||||
@node Modification Time
|
@node Modification Time
|
||||||
|
|
|
@ -3069,7 +3069,7 @@ construct each part with @code{propertize} and then combine them with
|
||||||
@code{buffer-substring-no-properties}, which copies text from the
|
@code{buffer-substring-no-properties}, which copies text from the
|
||||||
buffer but does not copy its properties.
|
buffer but does not copy its properties.
|
||||||
|
|
||||||
@findex with-silent-modifications
|
@findex with-silent-modifications, and changes in text properties
|
||||||
If you wish to add text properties to a buffer or remove them
|
If you wish to add text properties to a buffer or remove them
|
||||||
without marking the buffer as modified, you can wrap the calls above
|
without marking the buffer as modified, you can wrap the calls above
|
||||||
in the @code{with-silent-modifications} macro. @xref{Buffer
|
in the @code{with-silent-modifications} macro. @xref{Buffer
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue