diff options
| author | Eli Zaretskii | 2024-11-21 11:47:07 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2024-11-21 11:47:07 +0200 |
| commit | 4d80c4f4858916becd528b236b29085d29cf3706 (patch) | |
| tree | c5af9394020adba9fecb7539c9fb445c6207f039 /doc | |
| parent | 70dd5705e11f2259dd1890cee6c72ddcf9d7dd33 (diff) | |
| download | emacs-4d80c4f4858916becd528b236b29085d29cf3706.tar.gz emacs-4d80c4f4858916becd528b236b29085d29cf3706.zip | |
; More accurate documentation of 'set-mark-command'
* doc/emacs/mark.texi (Setting Mark, Global Mark Ring): Explain
that activating an existing mark doesn't set a new mark, and
doesn't push the mark onto the global mark ring. (Bug#74438)
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/mark.texi | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/doc/emacs/mark.texi b/doc/emacs/mark.texi index 0d705769f55..0a63f289011 100644 --- a/doc/emacs/mark.texi +++ b/doc/emacs/mark.texi | |||
| @@ -112,7 +112,8 @@ to @code{set-mark-command}, so unless you are unlucky enough to have | |||
| 112 | a text terminal that behaves differently, you might as well think of | 112 | a text terminal that behaves differently, you might as well think of |
| 113 | @kbd{C-@@} as @kbd{C-@key{SPC}}.}. This sets the mark where point is, | 113 | @kbd{C-@@} as @kbd{C-@key{SPC}}.}. This sets the mark where point is, |
| 114 | and activates it. You can then move point away, leaving the mark | 114 | and activates it. You can then move point away, leaving the mark |
| 115 | behind. | 115 | behind. If the mark is already set where point is, this command doesn't |
| 116 | set another mark, but only activates the existing mark. | ||
| 116 | 117 | ||
| 117 | For example, suppose you wish to convert part of the buffer to upper | 118 | For example, suppose you wish to convert part of the buffer to upper |
| 118 | case. To accomplish this, go to one end of the desired text, type | 119 | case. To accomplish this, go to one end of the desired text, type |
| @@ -398,6 +399,11 @@ of buffers that you have been in, and, for each buffer, a place where | |||
| 398 | you set the mark. The length of the global mark ring is controlled by | 399 | you set the mark. The length of the global mark ring is controlled by |
| 399 | @code{global-mark-ring-max}, and is 16 by default. | 400 | @code{global-mark-ring-max}, and is 16 by default. |
| 400 | 401 | ||
| 402 | Note that a mark is recorded in the global mark ring only when some | ||
| 403 | command sets the mark. If an existing mark is merely activated, as is | ||
| 404 | the case when you use @kbd{C-@key{SPC}} where a mark is already set | ||
| 405 | (@pxref{Setting Mark}), that doesn't push the mark onto the global ring. | ||
| 406 | |||
| 401 | @kindex C-x C-SPC | 407 | @kindex C-x C-SPC |
| 402 | @findex pop-global-mark | 408 | @findex pop-global-mark |
| 403 | The command @kbd{C-x C-@key{SPC}} (@code{pop-global-mark}) jumps to | 409 | The command @kbd{C-x C-@key{SPC}} (@code{pop-global-mark}) jumps to |