diff options
| author | Chong Yidong | 2006-09-01 13:41:33 +0000 |
|---|---|---|
| committer | Chong Yidong | 2006-09-01 13:41:33 +0000 |
| commit | 5a8f51655f6d14e9a5e5aec99a81030bdfa0902a (patch) | |
| tree | 68b531f1ba16a633b3900a4dbe478d9c69e5ed75 | |
| parent | 70b49b72eeb81a82264c6a76069d476eb7c7d633 (diff) | |
| download | emacs-5a8f51655f6d14e9a5e5aec99a81030bdfa0902a.tar.gz emacs-5a8f51655f6d14e9a5e5aec99a81030bdfa0902a.zip | |
* buffers.texi (Buffer Modification): Document
buffer-chars-modified-tick.
| -rw-r--r-- | lispref/ChangeLog | 5 | ||||
| -rw-r--r-- | lispref/buffers.texi | 18 |
2 files changed, 22 insertions, 1 deletions
diff --git a/lispref/ChangeLog b/lispref/ChangeLog index 1f4bff3be4f..9e5095df5f8 100644 --- a/lispref/ChangeLog +++ b/lispref/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2006-09-01 Chong Yidong <cyd@stupidchicken.com> | ||
| 2 | |||
| 3 | * buffers.texi (Buffer Modification): Document | ||
| 4 | buffer-chars-modified-tick. | ||
| 5 | |||
| 1 | 2006-08-31 Richard Stallman <rms@gnu.org> | 6 | 2006-08-31 Richard Stallman <rms@gnu.org> |
| 2 | 7 | ||
| 3 | * modes.texi (Syntactic Font Lock): Mention specific faces once again. | 8 | * modes.texi (Syntactic Font Lock): Mention specific faces once again. |
diff --git a/lispref/buffers.texi b/lispref/buffers.texi index 46a886eaea6..cf683fb2ac3 100644 --- a/lispref/buffers.texi +++ b/lispref/buffers.texi | |||
| @@ -573,7 +573,6 @@ Don't use this function in programs, since it prints a message in the | |||
| 573 | echo area; use @code{set-buffer-modified-p} (above) instead. | 573 | echo area; use @code{set-buffer-modified-p} (above) instead. |
| 574 | @end deffn | 574 | @end deffn |
| 575 | 575 | ||
| 576 | @c Emacs 19 feature | ||
| 577 | @defun buffer-modified-tick &optional buffer | 576 | @defun buffer-modified-tick &optional buffer |
| 578 | This function returns @var{buffer}'s modification-count. This is a | 577 | This function returns @var{buffer}'s modification-count. This is a |
| 579 | counter that increments every time the buffer is modified. If | 578 | counter that increments every time the buffer is modified. If |
| @@ -581,6 +580,23 @@ counter that increments every time the buffer is modified. If | |||
| 581 | The counter can wrap around occasionally. | 580 | The counter can wrap around occasionally. |
| 582 | @end defun | 581 | @end defun |
| 583 | 582 | ||
| 583 | @defun buffer-chars-modified-tick &optional buffer | ||
| 584 | This function returns @var{buffer}'s character-change modification-count. | ||
| 585 | Changes to text properties leave this counter unchanged; however, each | ||
| 586 | time text is inserted or removed from the buffer, the counter is reset | ||
| 587 | to the value that would be returned @code{buffer-modified-tick}. | ||
| 588 | By comparing the values returned by two @code{buffer-chars-modified-tick} | ||
| 589 | calls, you can tell whether a character change occurred in that buffer | ||
| 590 | in between the calls. If @var{buffer} is @code{nil} (or omitted), the | ||
| 591 | current buffer is used. | ||
| 592 | @end defun | ||
| 593 | |||
| 594 | This function returns @var{buffer}'s modification-count. This is a | ||
| 595 | counter that increments every time the buffer is modified. If | ||
| 596 | @var{buffer} is @code{nil} (or omitted), the current buffer is used. | ||
| 597 | The counter can wrap around occasionally. | ||
| 598 | @end defun | ||
| 599 | |||
| 584 | @node Modification Time | 600 | @node Modification Time |
| 585 | @comment node-name, next, previous, up | 601 | @comment node-name, next, previous, up |
| 586 | @section Comparison of Modification Time | 602 | @section Comparison of Modification Time |