all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: charles@aurox.ch (Charles A. Roelli)
To: 32956@debbugs.gnu.org
Subject: bug#32956: 26.1.50; t-m-m mark deactivation documentation
Date: Sat, 06 Oct 2018 16:19:55 +0200	[thread overview]
Message-ID: <m2in2f17jo.fsf@aurox.ch> (raw)

t-m-m's documentation currently states:

	      The mark is "deactivated" by changing the buffer,
  and after certain other operations that set the mark but whose
  main purpose is something else--for example, incremental search,
  M-<, and M->.

All of the examples (incremental search, M-<, and M->) do not always
deactivate the mark.  For example, for incremental search, try from
emacs -Q:

M-< C-SPC C-s buffer RET	> the mark is not deactivated

For M-< and M->, try:

M-< M-@ M-</M->			> neither M-< nor M-> deactivate the mark

There does seem to be at least one case where M-< and M-> do
deactivate the mark.  Try:

double-clicking the word "buffer" in *scratch*
M-</M->

Both M-< and M-> deactivate the mark in this case.  IIUC, this
behavior is explained in (info "(emacs) Shift Selection"):

     A mark set via mouse commands behaves the same as a mark set via
  shift-selection (*note Setting Mark::).  For example, if you specify a
  region by dragging the mouse, you can continue to extend the region
  using shifted cursor motion commands.  In either case, any unshifted
  cursor motion command deactivates the mark.

In light of this, here's a change for review on emacs-26:

diff --git a/lisp/simple.el b/lisp/simple.el
index d5674aa..8bbafe4 100644
--- a/lisp/simple.el
+++ b/lisp/simple.el
@@ -5793,10 +5793,10 @@ transient-mark-mode
 
 Transient Mark mode is a global minor mode.  When enabled, the
 region is highlighted with the `region' face whenever the mark
-is active.  The mark is \"deactivated\" by changing the buffer,
-and after certain other operations that set the mark but whose
-main purpose is something else--for example, incremental search,
-\\[beginning-of-buffer], and \\[end-of-buffer].
+is active.  The mark is \"deactivated\" after certain non-motion
+commands, including those that change the text in the buffer, and
+during shift or mouse selection by any unshifted cursor motion
+command (see Info node `Shift Selection' for more details).
 
 You can also deactivate the mark by typing \\[keyboard-quit] or
 \\[keyboard-escape-quit].





             reply	other threads:[~2018-10-06 14:19 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-10-06 14:19 Charles A. Roelli [this message]
2018-10-06 16:39 ` bug#32956: 26.1.50; t-m-m mark deactivation documentation Eli Zaretskii
2018-10-06 19:29   ` Charles A. Roelli
     [not found] <<m2in2f17jo.fsf@aurox.ch>
2018-10-06 14:48 ` Drew Adams
2018-10-06 19:44   ` Charles A. Roelli
     [not found] <<<m2in2f17jo.fsf@aurox.ch>
     [not found] ` <<5399d374-2089-492a-b830-9eb2baac82a6@default>
     [not found]   ` <<m2efd2272p.fsf@aurox.ch>
2018-10-07  1:02     ` Drew Adams
2018-10-07 14:39       ` Charles A. Roelli
2018-10-07 19:42         ` Charles A. Roelli
2018-10-08  2:28           ` Eli Zaretskii
2018-10-08 17:23             ` Charles A. Roelli

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2in2f17jo.fsf@aurox.ch \
    --to=charles@aurox.ch \
    --cc=32956@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.