emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* c-c c-e 1 a crashes
@ 2010-12-23  2:51 Samuel Wales
  2010-12-23  4:20 ` Nick Dokos
  2011-02-11  9:46 ` Bastien
  0 siblings, 2 replies; 5+ messages in thread
From: Samuel Wales @ 2010-12-23  2:51 UTC (permalink / raw)
  To: emacs-orgmode

Perhaps activate-mark is an emacs 23 function.  Emacs 22, latest org.

Also, I was wondering, how often do people export the current file vs.
the current region vs. the current subtree?

I almost always export the current subtree.  I wonder if most other
people are that way also.  If not, how do I make c-c c-e always use a
prefix of 1?

Thanks.

Samuel

-- 
Q: How many CDC "scientists" does it take to change a lightbulb?
A: "You only think it's dark." [CDC has denied a deadly serious
disease for 25 years]
==========
HIV-like virus: http://www.wpinstitute.org/xmrv/index.html -- PLEASE DONATE
===
I want to see the original (pre-hold) Lo et al. 2010 NIH/FDA/Harvard MLV paper.

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

* Re: c-c c-e 1 a crashes
  2010-12-23  2:51 c-c c-e 1 a crashes Samuel Wales
@ 2010-12-23  4:20 ` Nick Dokos
  2010-12-23  7:41   ` Samuel Wales
  2011-02-11  9:46 ` Bastien
  1 sibling, 1 reply; 5+ messages in thread
From: Nick Dokos @ 2010-12-23  4:20 UTC (permalink / raw)
  To: Samuel Wales; +Cc: nicholas.dokos, emacs-orgmode

Samuel Wales <samologist@gmail.com> wrote:

> Perhaps activate-mark is an emacs 23 function.  Emacs 22, latest org.
> 

That is indeed the reason: I cribbed activate-mark and the variable
select-active-regions from the 23.2 simple.el into an emacs-22.3 session
and the export worked - adding them to your .emacs should presumably be
enough, although there might be other problems that the simple test
would not uncover. Here are the definitions if you want to try:

--8<---------------cut here---------------start------------->8---
(defcustom select-active-regions nil
  "If non-nil, an active region automatically becomes the window selection."
  :type 'boolean
  :group 'killing
  :version "23.1")

(defun activate-mark ()
  "Activate the mark."
  (when (mark t)
    (setq mark-active t)
    (unless transient-mark-mode
      (setq transient-mark-mode 'lambda))
    (when (and select-active-regions
	       (display-selections-p))
      (x-set-selection 'PRIMARY (current-buffer)))))
--8<---------------cut here---------------end--------------->8---

Not sure whether the :version property of the variable does anything
other than giving information. It seems to be used in the docstring:

,----
| select-active-regions is a variable defined in `simple.el'.
| Its value is nil
| 
| Documentation:
| If non-nil, an active region automatically becomes the window selection.
| 
| You can customize this variable.
| 
| This variable was introduced, or its default value was changed, in
| version 23.1 of Emacs.
`----

but I don't know if it's used anywhere else.

> Also, I was wondering, how often do people export the current file vs.
> the current region vs. the current subtree?
> 

I generally export whole files, but I don't know how typical my usage is.

> I almost always export the current subtree.  I wonder if most other
> people are that way also.  If not, how do I make c-c c-e always use a
> prefix of 1?
> 

I think you would have to hack the org-export function: both the
key-function associations and the handling of the "1" prefix for subtree
limiting are hard-wired in it.

Nick

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

* Re: c-c c-e 1 a crashes
  2010-12-23  4:20 ` Nick Dokos
@ 2010-12-23  7:41   ` Samuel Wales
  0 siblings, 0 replies; 5+ messages in thread
From: Samuel Wales @ 2010-12-23  7:41 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: emacs-orgmode

hi nick,

thanks for that work.  can this be put in the core so that everything
will work for everybody?

samuel

-- 
Q: How many CDC "scientists" does it take to change a lightbulb?
A: "You only think it's dark." [CDC has denied a deadly serious
disease for 25 years]
==========
HIV-like virus: http://www.wpinstitute.org/xmrv/index.html -- PLEASE DONATE
===
I want to see the original (pre-hold) Lo et al. 2010 NIH/FDA/Harvard MLV paper.

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

* Re: c-c c-e 1 a crashes
  2010-12-23  2:51 c-c c-e 1 a crashes Samuel Wales
  2010-12-23  4:20 ` Nick Dokos
@ 2011-02-11  9:46 ` Bastien
  2011-02-12  0:26   ` Samuel Wales
  1 sibling, 1 reply; 5+ messages in thread
From: Bastien @ 2011-02-11  9:46 UTC (permalink / raw)
  To: Samuel Wales; +Cc: emacs-orgmode

Hi Samuel,

Samuel Wales <samologist@gmail.com> writes:

> Also, I was wondering, how often do people export the current file vs.
> the current region vs. the current subtree?

I don't know.

> I almost always export the current subtree.  I wonder if most other
> people are that way also.  If not, how do I make c-c c-e always use a
> prefix of 1?

You can now set `org-export-initial-scope' to 'subtree for this.

Thanks for this idea.

Also, pressing `1' will now switch between buffer/subtree export 
until you select an export command.

-- 
 Bastien

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

* Re: c-c c-e 1 a crashes
  2011-02-11  9:46 ` Bastien
@ 2011-02-12  0:26   ` Samuel Wales
  0 siblings, 0 replies; 5+ messages in thread
From: Samuel Wales @ 2011-02-12  0:26 UTC (permalink / raw)
  To: Bastien; +Cc: emacs-orgmode

Thanks, Bastien.

-- 
The Kafka Pandemic:
http://thekafkapandemic.blogspot.com/2010/12/welcome-to-kafka-pandemic-two-forces_9182.html
I support the Whittemore-Peterson Institute (WPI)
===
I want to see the original (pre-hold) Lo et al. 2010 NIH/FDA/Harvard MLV paper.

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

end of thread, other threads:[~2011-02-12  0:26 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-12-23  2:51 c-c c-e 1 a crashes Samuel Wales
2010-12-23  4:20 ` Nick Dokos
2010-12-23  7:41   ` Samuel Wales
2011-02-11  9:46 ` Bastien
2011-02-12  0:26   ` Samuel Wales

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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).