1 |
@c -*-texinfo-*- |
@c -*-texinfo-*- |
2 |
@c This is part of the GNU Emacs Lisp Reference Manual. |
@c This is part of the GNU Emacs Lisp Reference Manual. |
3 |
@c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999 |
@c Copyright (C) 1990, 1991, 1992, 1993, 1994, 1995, 1998, 1999 |
4 |
@c Free Software Foundation, Inc. |
@c Free Software Foundation, Inc. |
5 |
@c See the file elisp.texi for copying conditions. |
@c See the file elisp.texi for copying conditions. |
6 |
@setfilename ../info/markers |
@setfilename ../info/markers |
7 |
@node Markers, Text, Positions, Top |
@node Markers, Text, Positions, Top |
558 |
Transient Mark mode is enabled). All the primitives that change the |
Transient Mark mode is enabled). All the primitives that change the |
559 |
buffer set @code{deactivate-mark}, to deactivate the mark when the |
buffer set @code{deactivate-mark}, to deactivate the mark when the |
560 |
command is finished. |
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 |
571 |
@end defvar |
@end defvar |
572 |
|
|
573 |
@defun deactivate-mark |
@defun deactivate-mark |
595 |
@example |
@example |
596 |
@group |
@group |
597 |
mark-ring |
mark-ring |
598 |
@result{} (#<marker at 11050 in markers.texi> |
@result{} (#<marker at 11050 in markers.texi> |
599 |
#<marker at 10832 in markers.texi> |
#<marker at 10832 in markers.texi> |
600 |
@dots{}) |
@dots{}) |
601 |
@end group |
@end group |