diff options
| author | Richard M. Stallman | 2002-07-12 23:31:02 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 2002-07-12 23:31:02 +0000 |
| commit | ce218967c1fc2bc5a1ec96281d05d0e17058e28c (patch) | |
| tree | 28bb4b9ee6696fa2bafc6c1a99fcf7d56cadc73e | |
| parent | f43c34a094de55160cb4b36647bd459d5be29649 (diff) | |
| download | emacs-ce218967c1fc2bc5a1ec96281d05d0e17058e28c.tar.gz emacs-ce218967c1fc2bc5a1ec96281d05d0e17058e28c.zip | |
Document binding `deactivate-mark' around something that modifies the
buffer so as to keep the mark active.
| -rw-r--r-- | lispref/markers.texi | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lispref/markers.texi b/lispref/markers.texi index e18e987bf22..508955e39df 100644 --- a/lispref/markers.texi +++ b/lispref/markers.texi | |||
| @@ -558,6 +558,16 @@ command loop deactivates the mark after the command returns (if | |||
| 558 | Transient Mark mode is enabled). All the primitives that change the | 558 | Transient Mark mode is enabled). All the primitives that change the |
| 559 | buffer set @code{deactivate-mark}, to deactivate the mark when the | 559 | buffer set @code{deactivate-mark}, to deactivate the mark when the |
| 560 | command is finished. | 560 | command is finished. |
| 561 | |||
| 562 | To write Lisp code that modifies the buffer without causing | ||
| 563 | deactivation of the mark at the end of the command, bind | ||
| 564 | @code{deactivate-mark} to @code{nil} around the code that does the | ||
| 565 | modification. For example: | ||
| 566 | |||
| 567 | @example | ||
| 568 | (let (deactivate-mark) | ||
| 569 | (insert " ")) | ||
| 570 | @end example | ||
| 561 | @end defvar | 571 | @end defvar |
| 562 | 572 | ||
| 563 | @defun deactivate-mark | 573 | @defun deactivate-mark |