emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: Samuel Wales <samologist@gmail.com>
Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org
Subject: Re: c-c c-e 1 a crashes
Date: Wed, 22 Dec 2010 23:20:56 -0500	[thread overview]
Message-ID: <12606.1293078056@gamaville.dokosmarshall.org> (raw)
In-Reply-To: Message from Samuel Wales <samologist@gmail.com> of "Wed, 22 Dec 2010 19:51:34 MST." <AANLkTint+3d3kt2w7y7V1kQ9MEsuTSiRP3is_NjEv5dn@mail.gmail.com>

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

  reply	other threads:[~2010-12-23  4:29 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-23  2:51 c-c c-e 1 a crashes Samuel Wales
2010-12-23  4:20 ` Nick Dokos [this message]
2010-12-23  7:41   ` Samuel Wales
2011-02-11  9:46 ` Bastien
2011-02-12  0:26   ` Samuel Wales

Reply instructions:

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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=12606.1293078056@gamaville.dokosmarshall.org \
    --to=nicholas.dokos@hp.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=samologist@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* 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

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