Mercurial > emacs
comparison doc/lispref/markers.texi @ 102739:b713c93aa5ba
(The Mark) <handle-shift-selection>: Update for removal of the optional
argument DEACTIVATE.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Fri, 27 Mar 2009 14:42:36 +0000 |
parents | cb5d2387102c |
children | 17ba809d0f96 |
comparison
equal
deleted
inserted
replaced
102738:41e7ab490f69 | 102739:b713c93aa5ba |
---|---|
648 The value of this variable is the maximum size of @code{mark-ring}. If | 648 The value of this variable is the maximum size of @code{mark-ring}. If |
649 more marks than this are pushed onto the @code{mark-ring}, | 649 more marks than this are pushed onto the @code{mark-ring}, |
650 @code{push-mark} discards an old mark when it adds a new one. | 650 @code{push-mark} discards an old mark when it adds a new one. |
651 @end defopt | 651 @end defopt |
652 | 652 |
653 @defun handle-shift-selection &optional deactivate | 653 @defun handle-shift-selection |
654 This function checks whether the current command was invoked via shift | 654 This function checks whether the current command was invoked via shift |
655 translation (@pxref{Key Sequence Input, shift-translation}), and if | 655 translation (@pxref{Key Sequence Input, shift-translation}), and if |
656 so, sets the mark and temporarily activates the region, unless the | 656 so, sets the mark and temporarily activates the region, unless the |
657 region is already temporarily activated in this way. If the command | 657 region is already temporarily activated in this way. If the command |
658 was invoked without shift translation, or if the optional argument | 658 was invoked without shift translation and the region is temporarily |
659 @var{deactivate} is non-@code{nil}, the function deactivates the mark. | 659 active, or if the region was activated by the mouse, the function |
660 deactivates the mark. | |
661 | |
660 This function is called whenever a command with a @samp{^} character | 662 This function is called whenever a command with a @samp{^} character |
661 in its @code{interactive} spec (@pxref{Interactive Codes, ^}) is | 663 in its @code{interactive} spec (@pxref{Interactive Codes, ^}) is |
662 invoked while @code{shift-select-mode} (@pxref{Shift Selection,,, | 664 invoked while @code{shift-select-mode} (@pxref{Shift Selection,,, |
663 emacs, The GNU Emacs Manual}) is non-@code{nil}. | 665 emacs, The GNU Emacs Manual}) is non-@code{nil}. |
664 | |
665 @end defun | 666 @end defun |
666 | 667 |
667 @node The Region | 668 @node The Region |
668 @section The Region | 669 @section The Region |
669 @cindex region (between point and mark) | 670 @cindex region (between point and mark) |