all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* question about org-region-active-p
@ 2008-12-16  1:51 Robert Goldman
  2008-12-16  2:20 ` Samuel Wales
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Robert Goldman @ 2008-12-16  1:51 UTC (permalink / raw)
  To: emacs-orgmode

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

^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2008-12-19  8:40 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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.