Re: [Orgmode] question about org-region-active-p

2008-12-17 Thread Carsten Dominik
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. Thanks. - Carsten

Re: [Orgmode] question about org-region-active-p

2008-12-17 Thread Robert Goldman
Carsten Dominik wrote: Dear Robert, also region-active-p requires transient-mark-mode to be active, if you look 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? I

Re: [Orgmode] question about org-region-active-p

2008-12-17 Thread Carsten Dominik
Dear Robert, also region-active-p requires transient-mark-mode to be active, if you look 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

Re: [Orgmode] question about org-region-active-p

2008-12-17 Thread Robert Goldman
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

Re: [Orgmode] question about org-region-active-p

2008-12-16 Thread Robert Goldman
Carsten Dominik wrote: Hi Robert, 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

Re: [Orgmode] question about org-region-active-p

2008-12-16 Thread William Henney
Hi Robert On Mon, Dec 15, 2008 at 7:51 PM, Robert Goldman rpgold...@sift.info wrote: [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

[Orgmode] question about org-region-active-p

2008-12-15 Thread Robert Goldman
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

Re: [Orgmode] question about org-region-active-p

2008-12-15 Thread Samuel Wales
My limited understanding is this: Without the concept of activeness, you can't tell whether to operate on a single thing or a region. Old workarounds were to have -region commands, which polluted the key space; or C-u, which polluted the prefix space. t-m-m came along and solved it. Region

Re: [Orgmode] question about org-region-active-p

2008-12-15 Thread Carsten Dominik
Hi Robert, 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