From: Eli Zaretskii <eliz@gnu.org>
To: "Andreas Röhler" <andreas.roehler@online.de>
Cc: emacs-devel@gnu.org
Subject: Re: region-active-p et al
Date: Mon, 02 Jan 2017 17:33:53 +0200 [thread overview]
Message-ID: <83pok5fpcu.fsf@gnu.org> (raw)
In-Reply-To: <63474c32-666d-dc16-d5de-98164172fb71@online.de> (message from Andreas Röhler on Mon, 2 Jan 2017 12:50:35 +0100)
> From: Andreas Röhler <andreas.roehler@online.de>
> Date: Mon, 2 Jan 2017 12:50:35 +0100
>
> Happy new year!
And the same to you.
> Got a bug-report at
> https://gitlab.com/python-mode-devs/python-mode/issues/27 which points
> me at a quirk in region-active-p:
>
> Questioning transient-mark-mode does not belong here. It's a
> user/convenience thing whilst
> region-active-p is a core thing.
Actually, both region-active-p and use-region-p are explicitly
documented to pay attention to transient-mark-mode. These two
functions exist to allow applications to change their behavior when an
active region (not just any region) exists.
If python-mode wants to act on region regardless of
transient-mark-mode, it should look at the mark, and not use these two
functions. They are not meant for that use case.
prev parent reply other threads:[~2017-01-02 15:33 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-01-02 11:50 region-active-p et al Andreas Röhler
2017-01-02 15:33 ` Eli Zaretskii [this message]
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=83pok5fpcu.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=andreas.roehler@online.de \
--cc=emacs-devel@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.