diff options
| author | Lars Magne Ingebrigtsen | 2011-07-14 01:40:11 +0200 |
|---|---|---|
| committer | Lars Magne Ingebrigtsen | 2011-07-14 01:40:11 +0200 |
| commit | a28e4607f0c5c5812a87dd816559d1601ed146ba (patch) | |
| tree | 6cf440802cfd832e87e8ea817461c001aef43699 | |
| parent | 15853710e143abed3bbfab05b10960a5fc9eb79a (diff) | |
| download | emacs-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/ChangeLog | 3 | ||||
| -rw-r--r-- | lisp/subr.el | 11 |
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 @@ | |||
| 1 | 2011-07-13 Lars Magne Ingebrigtsen <larsi@gnus.org> | 1 | 2011-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. |
| 3073 | If BODY performs real modifications to the buffer's text, other | 3073 | If BODY performs real modifications to the buffer's text, other |
| 3074 | than cosmetic ones, undo data may become corrupted. | 3074 | than cosmetic ones, undo data may become corrupted. |
| 3075 | Typically used around modifications of text-properties which do not really | 3075 | |
| 3076 | affect the buffer's content." | 3076 | This macro will run BODY normally, but doesn't count its buffer |
| 3077 | modifications as being buffer modifications. This affects things | ||
| 3078 | like buffer-modified-p, checking whether the file is locked by | ||
| 3079 | someone else, running buffer modification hooks, and other things | ||
| 3080 | of that nature. | ||
| 3081 | |||
| 3082 | Typically used around modifications of text-properties which do | ||
| 3083 | not 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)) |