aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen2011-07-14 01:40:11 +0200
committerLars Magne Ingebrigtsen2011-07-14 01:40:11 +0200
commita28e4607f0c5c5812a87dd816559d1601ed146ba (patch)
tree6cf440802cfd832e87e8ea817461c001aef43699
parent15853710e143abed3bbfab05b10960a5fc9eb79a (diff)
downloademacs-a28e4607f0c5c5812a87dd816559d1601ed146ba.tar.gz
emacs-a28e4607f0c5c5812a87dd816559d1601ed146ba.zip
Doc fix for with-silent-modifications
* subr.el (with-silent-modifications): Clarify somewhat what the macro inhibits. Fixes: debbugs:6525
-rw-r--r--lisp/ChangeLog3
-rw-r--r--lisp/subr.el11
2 files changed, 12 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 71faf19b621..b78a6a4c580 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,8 @@
12011-07-13 Lars Magne Ingebrigtsen <larsi@gnus.org> 12011-07-13 Lars Magne Ingebrigtsen <larsi@gnus.org>
2 2
3 * subr.el (with-silent-modifications): Clarify somewhat what the
4 macro inhibits (bug#6525).
5
3 * simple.el (eval-expression): Note what it does if called 6 * simple.el (eval-expression): Note what it does if called
4 interactively (bug#6495). 7 interactively (bug#6495).
5 8
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'."
3072 "Execute BODY, pretending it does not modify the buffer. 3072 "Execute BODY, pretending it does not modify the buffer.
3073If BODY performs real modifications to the buffer's text, other 3073If BODY performs real modifications to the buffer's text, other
3074than cosmetic ones, undo data may become corrupted. 3074than cosmetic ones, undo data may become corrupted.
3075Typically used around modifications of text-properties which do not really 3075
3076affect the buffer's content." 3076This macro will run BODY normally, but doesn't count its buffer
3077modifications as being buffer modifications. This affects things
3078like buffer-modified-p, checking whether the file is locked by
3079someone else, running buffer modification hooks, and other things
3080of that nature.
3081
3082Typically used around modifications of text-properties which do
3083not really affect the buffer's content."
3077 (declare (debug t) (indent 0)) 3084 (declare (debug t) (indent 0))
3078 (let ((modified (make-symbol "modified"))) 3085 (let ((modified (make-symbol "modified")))
3079 `(let* ((,modified (buffer-modified-p)) 3086 `(let* ((,modified (buffer-modified-p))