From mboxrd@z Thu Jan 1 00:00:00 1970 From: Robert Goldman Subject: question about org-region-active-p Date: Mon, 15 Dec 2008 19:51:32 -0600 Message-ID: <494709A4.1000703@sift.info> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LCP65-0005RC-0q for emacs-orgmode@gnu.org; Mon, 15 Dec 2008 20:51:41 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LCP62-0005Qs-2R for emacs-orgmode@gnu.org; Mon, 15 Dec 2008 20:51:39 -0500 Received: from [199.232.76.173] (port=48975 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LCP61-0005Qn-TF for emacs-orgmode@gnu.org; Mon, 15 Dec 2008 20:51:37 -0500 Received: from outbound-mail-109.bluehost.com ([69.89.22.9]:39636) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1LCP61-0003Ai-7T for emacs-orgmode@gnu.org; Mon, 15 Dec 2008 20:51:37 -0500 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org The definition of org-region-active-p in my copy of org-mode is as follows: (defun org-region-active-p () "Is `transient-mark-mode' on and the region active? Works on both Emacs and XEmacs." (if org-ignore-region nil (if (featurep 'xemacs) (and zmacs-regions (region-active-p)) (if (fboundp 'use-region-p) (use-region-p) (and transient-mark-mode mark-active))))) What seems odd to me is that this command will only work on an emacs 22 (like my Aquamacs) if transient-mark-mode is enabled. Is that correct, 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 @ (outline-mark-subtree).] 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. thanks, r