From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: c-c c-e 1 a crashes Date: Wed, 22 Dec 2010 23:20:56 -0500 Message-ID: <12606.1293078056@gamaville.dokosmarshall.org> References: Reply-To: nicholas.dokos@hp.com Return-path: Received: from [140.186.70.92] (port=60124 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PVcnR-0003FR-Mc for emacs-orgmode@gnu.org; Wed, 22 Dec 2010 23:29:02 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PVcfu-00009O-WA for emacs-orgmode@gnu.org; Wed, 22 Dec 2010 23:21:11 -0500 Received: from vms173003pub.verizon.net ([206.46.173.3]:60211) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PVcfu-00009D-P8 for emacs-orgmode@gnu.org; Wed, 22 Dec 2010 23:21:10 -0500 Received: from gamaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173003.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LDV005EN5EX22B0@vms173003.mailsrvcs.net> for emacs-orgmode@gnu.org; Wed, 22 Dec 2010 22:20:57 -0600 (CST) In-reply-to: Message from Samuel Wales of "Wed, 22 Dec 2010 19:51:34 MST." 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: Samuel Wales Cc: nicholas.dokos@hp.com, emacs-orgmode@gnu.org Samuel Wales 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