From: Bernt Hansen <firstname.lastname@example.org>
To: Carsten Dominik <email@example.com>
Cc: firstname.lastname@example.org, Robert Goldman <email@example.com>
Subject: Re: question about org-region-active-p
Date: Wed, 17 Dec 2008 11:44:14 -0500 [thread overview]
Message-ID: <firstname.lastname@example.org> (raw)
In-Reply-To: <531B6C47-6267-4530-ACF8-F2C1548159CE@uva.nl> (Carsten Dominik's message of "Wed\, 17 Dec 2008 17\:29\:23 +0100")
Just to add to the discussion, transient-mark-mode is off for me in GNU
Emacs 22.2.1 (i486-pc-linux-gnu, X toolkit, Xaw3d scroll bars) of
2008-11-09 on raven, modified by Debian.
If I start with emacs -q transient-mark-mode is nil.
I've explicitly set it on in my .emacs (as of the beginning of this
discussion) and that makes things work better for me.
,----[ end of my .emacs ]
| (transient-mark-mode 1)
Carsten Dominik <email@example.com> writes:
> Dear Robert,
> also region-active-p requires transient-mark-mode to be active, if you
> at the definition of the region-active-p function, you will see that.
> transient-mark-mode is on by default in Emacs. Why did you turn it
> *off* in the
> first place?????
> - Carsten
> On Dec 17, 2008, at 3:12 PM, Robert Goldman wrote:
>> Carsten Dominik wrote:
>>> Hi Robert,
>>> no, I do not think this would make sense, to step out with
>>> an error, because all the commands that need a region will
>>> also work without one. This is how regions work in Emacs.
>>> If you find places in the documentation where this could
>>> be made clearer, let me know.
>> Thank you Carsten for the response. I am still inclined to think that
>> this case is one where the user should get some warning because it's
>> that bad class of bug-like situations where code quietly does
>> that the user does not expect and that contradicts the documentation.
>> On the other hand, I can't see where one would raise an error. It's
>> an error to call org-region-active-p without transient-mark-mode;
>> some libraries turn this on and off, and the user is entitled not to
>> use it.
>> The call to export isn't right, because the export command does not
>> the system any opportunity to infer whether the user intended to
>> on a region or on the whole. So there's no way to tell that the
>> expectations are going to be violated.
>> The loading of org-mode isn't the right place, either, since the vast
>> majority of org-mode works just fine with t-m-m turned off.
>> I'm inclined to think that the answer is simply that one shouldn't
>> transient-mark-mode off, ever. This works for me, but I hate to think
>> of the next person coming along to fall into this same trap, from
>> the only means of escape is to inspect the source code and use the
>> I would suggest a modification to the manual and will submit one, but
>> need clarification about one issue: the use of t-m-m seems to be a
>> fallback for older emacsen that don't have region-active-p. I have
>> an emacs, so I don't know --- does this mean that on newer emacsen
>> org-region-active-p will work even without transient-mark-mode?
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
next prev parent reply other threads:[~2008-12-17 16:44 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-16 1:51 question about org-region-active-p Robert Goldman
2008-12-16 2:20 ` Samuel Wales
2008-12-16 7:53 ` Carsten Dominik
2008-12-16 15:43 ` Robert Goldman
2008-12-17 8:13 ` Carsten Dominik
2008-12-17 14:12 ` Robert Goldman
2008-12-17 16:29 ` Carsten Dominik
2008-12-17 16:38 ` Robert Goldman
2008-12-17 16:44 ` Bernt Hansen [this message]
2008-12-17 17:01 ` Carsten Dominik
2008-12-18 16:48 ` Robert Goldman
2008-12-19 8:39 ` Carsten Dominik
2008-12-16 15:52 ` William Henney
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:
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
* 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
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).