unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: 14945@debbugs.gnu.org
Subject: bug#14945: 24.3.50; (elisp) `The Mark': mention that mouse selection turns on `transient-mark-mode' temporarily
Date: Wed, 24 Jul 2013 07:41:14 -0700 (PDT)	[thread overview]
Message-ID: <34e84b3b-2268-4430-8bdc-f8cc67e68c3f@default> (raw)

The doc says nothing about selection with the mouse activating the
region and turning on `transient-mark-mode' temporarily.  But it
does so.

emacs -Q
In *scratch* type this:

 transient-mark-mode
 (region-active-p)
 mark-active

M-: transient-mark-mode ; to turn it off - verify with C-h v.

Put cursor after each of the sexps and hit C-x C-e.  Now select each one
using only the mouse and use C-x C-e again for each.

Selecting with the mouse turns on `transient-mark-mode', at least
temporarily - the non-nil value is `(only)'.

Lisp users should be informed about this.  For one thing, they will not
otherwise understand certain code, including `region-active-p', wrt
mouse selection.


In GNU Emacs 24.3.50.1 (i686-pc-mingw32)
 of 2013-07-14 on ODIEONE
Bzr revision: 113423 lekktu@gmail.com-20130715004922-i67tg2ois14h3fpm
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
 `configure --prefix=/c/Devel/emacs/binary --enable-checking=yes,glyphs
 CFLAGS='-O0 -g3' CPPFLAGS='-Ic:/Devel/emacs/include'
 LDFLAGS='-Lc:/Devel/emacs/lib''





             reply	other threads:[~2013-07-24 14:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-24 14:41 Drew Adams [this message]
2021-01-20  2:54 ` bug#14945: 24.3.50; (elisp) `The Mark': mention that mouse selection turns on `transient-mark-mode' temporarily Lars Ingebrigtsen

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=34e84b3b-2268-4430-8bdc-f8cc67e68c3f@default \
    --to=drew.adams@oracle.com \
    --cc=14945@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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).