]> code.delx.au - gnu-emacs/commitdiff
Mention with-silent-modifications in the lispref manual
authorLars Ingebrigtsen <larsi@gnus.org>
Sat, 30 Apr 2016 21:40:42 +0000 (23:40 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 30 Apr 2016 21:40:42 +0000 (23:40 +0200)
* doc/lispref/text.texi (Changing Properties): Document
with-silent-modifications (bug#21171).

doc/lispref/text.texi

index 0323678b8f2365898e6d7b22c94e2275a1c84ccc..0b7759347fc270d02fcfb65064a6813a7dce9e86 100644 (file)
@@ -3040,6 +3040,11 @@ construct each part with @code{propertize} and then combine them with
 @code{buffer-substring-no-properties}, which copies text from the
 buffer but does not copy its properties.
 
+@findex with-silent-modifications
+  If you wish to add or remove text properties to a buffer without
+marking the buffer as modified, you can wrap the calls above in the
+@code{with-silent-modifications} macro.
+
 @node Property Search
 @subsection Text Property Search Functions
 @cindex searching text properties