From: Sean Whitton <sean@silentflame.com>
To: Matt Lundin <mdl@imapmail.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: Re: Difference between subtree-restricted export and 'publish enclosing subtree'
Date: Sat, 09 Apr 2011 10:23:11 +0100 [thread overview]
Message-ID: <87mxjzlqww.fsf@zephyr.silentflame.com> (raw)
In-Reply-To: <87sjtsrj63.fsf@fastmail.fm> (Matt Lundin's message of "Fri, 08 Apr 2011 09:01:40 -0400")
[-- Attachment #1: Type: text/plain, Size: 1793 bytes --]
Hi,
On 8 Apr 2011 at 13:01Z, Matt Lundin wrote:
>> When I put my cursor in the properties drawer within the essay text
>> and hit C-c C-e 1 d I get my 'essay' exported and processed to
>> hume-essay-causation.pdf correctly, but if I instead use C-c C-e SPC
>> with point at various different places within the essay, I just get
>> the error 'No enclosing node with LaTeX_CLASS or EXPORT_FILE_NAME',
>> yet afaics they are there.
> Yes, there are a few issues here.
> I can replicate this bug when the cursor is above the LATEX_CLASS
> property. For instance, if the cursor is located on the :PROPERTIES:
> line, C-c C-e SPC results in an error. If it is on the :END: line, it
> finds the relevant headline
Interesting. I get the problem from anywhere in the subtree - it
doesn't seem to be able to find the latex_class nor the
export_title/export_file_name.
> The problem is that C-c C-e space calls a simple backwards regexp
> search for the two properties. But the regexp search looks for
> export_title instead of export_file_name (lines 998-1000):
> (if (re-search-backward "^[
> \t]+\\(:latex_class:\\|:export_title:\\)[ \t]+\\S-" nil t)
> In addition, the regexp search is not bounded, so if you have another
> headline higher up in the file with one of the properties in the
> search, such as...
> * Kant Essay
>> PROPERTIES:
>> LATEX_CLASS: spwessay
>> END:
> ** Some text
> ...hitting space will export that essay instead.
Okay, so it looks like this isn't a feature that's really usable right
now. Maybe I'll write a patch to fix it at some point; for now I can
just use C-c C-u C-c C-e 1. Thanks for the feedback.
S
--
Sean Whitton / <sean@silentflame.com>
OpenPGP KeyID: 0x3B6D411B
http://sean.whitton.me/
[-- Attachment #2: Type: application/pgp-signature, Size: 835 bytes --]
next prev parent reply other threads:[~2011-04-09 9:23 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-08 10:36 Difference between subtree-restricted export and 'publish enclosing subtree' Sean Whitton
2011-04-08 13:01 ` Matt Lundin
2011-04-09 9:23 ` Sean Whitton [this message]
2011-04-21 16:04 ` Carsten Dominik
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=87mxjzlqww.fsf@zephyr.silentflame.com \
--to=sean@silentflame.com \
--cc=emacs-orgmode@gnu.org \
--cc=mdl@imapmail.org \
/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).