From: Carsten Dominik <email@example.com>
To: Robert Goldman <firstname.lastname@example.org>
Subject: Re: question about org-region-active-p
Date: Tue, 16 Dec 2008 08:53:58 +0100 [thread overview]
Message-ID: <9F73C60D-A8B2-4D0B-AFE0-DE210312A021@uva.nl> (raw)
Samuel has it right, let me add this:
In Emacs, you do never remove the mark from the buffer, it is always
there, wherever you or some command last left it. The only way to
tell if the user intends to apply a command to a region is therefore
the state of a flag that says if the mark is "active". Setting the
mark activates the mark, most commands besides cursor motion and
search deactivate it.
The state flag does only exist if transient-mark-mode is active.
On Dec 16, 2008, at 2:51 AM, Robert Goldman wrote:
> The definition of org-region-active-p in my copy of org-mode is as
> (defun org-region-active-p ()
> "Is `transient-mark-mode' on and the region active?
> Works on both Emacs and XEmacs."
> (if org-ignore-region
> (if (featurep 'xemacs)
> (and zmacs-regions (region-active-p))
> (if (fboundp 'use-region-p)
> (and transient-mark-mode mark-active)))))
> What seems odd to me is that this command will only work on an emacs
> (like my Aquamacs) if transient-mark-mode is enabled. Is that
> and is that what's desired?
> [I found this because I tried to publish a subtree of an org file,
> and I
> found that org-region-active-p was NIL even after C-c @
> This may be an oddity of aquamacs -- it seems to prefer cua-mode and
> turn off transient-mark-mode by default. I confess to not really
> understanding that decision or its implications.
> Emacs-orgmode mailing list
> Remember: use `Reply All' to send replies to the list.
next prev parent reply other threads:[~2008-12-16 7:54 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 [this message]
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
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).