summaryrefslogtreecommitdiff
path: root/lisp/subr.el
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen <larsi@gnus.org>2011-07-14 01:40:11 +0200
committerLars Magne Ingebrigtsen <larsi@gnus.org>2011-07-14 01:40:11 +0200
commita28e4607f0c5c5812a87dd816559d1601ed146ba (patch)
tree6cf440802cfd832e87e8ea817461c001aef43699 /lisp/subr.el
parent15853710e143abed3bbfab05b10960a5fc9eb79a (diff)
downloademacs-a28e4607f0c5c5812a87dd816559d1601ed146ba.tar.gz
Doc fix for with-silent-modifications
* subr.el (with-silent-modifications): Clarify somewhat what the macro inhibits. Fixes: debbugs:6525
Diffstat (limited to 'lisp/subr.el')
-rw-r--r--lisp/subr.el11
1 files changed, 9 insertions, 2 deletions
diff --git a/lisp/subr.el b/lisp/subr.el
index a2f560461eb..5c890eefa29 100644
--- a/lisp/subr.el
+++ b/lisp/subr.el
@@ -3072,8 +3072,15 @@ See also `with-temp-file' and `with-output-to-string'."
"Execute BODY, pretending it does not modify the buffer.
If BODY performs real modifications to the buffer's text, other
than cosmetic ones, undo data may become corrupted.
-Typically used around modifications of text-properties which do not really
-affect the buffer's content."
+
+This macro will run BODY normally, but doesn't count its buffer
+modifications as being buffer modifications. This affects things
+like buffer-modified-p, checking whether the file is locked by
+someone else, running buffer modification hooks, and other things
+of that nature.
+
+Typically used around modifications of text-properties which do
+not really affect the buffer's content."
(declare (debug t) (indent 0))
(let ((modified (make-symbol "modified")))
`(let* ((,modified (buffer-modified-p))