From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sean Whitton Subject: Re: Re: Difference between subtree-restricted export and 'publish enclosing subtree' Date: Sat, 09 Apr 2011 10:23:11 +0100 Message-ID: <87mxjzlqww.fsf@zephyr.silentflame.com> References: <87bp0h9ghl.fsf@zephyr.silentflame.com> <87sjtsrj63.fsf@fastmail.fm> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" Return-path: Received: from [140.186.70.92] (port=40849 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q8UNy-0002k2-Nw for emacs-orgmode@gnu.org; Sat, 09 Apr 2011 05:23:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q8UNv-0007lq-5x for emacs-orgmode@gnu.org; Sat, 09 Apr 2011 05:23:17 -0400 Received: from athena.silentflame.com ([212.13.194.60]:56635) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q8UNu-0007lE-Us for emacs-orgmode@gnu.org; Sat, 09 Apr 2011 05:23:15 -0400 In-Reply-To: <87sjtsrj63.fsf@fastmail.fm> (Matt Lundin's message of "Fri, 08 Apr 2011 09:01:40 -0400") 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: Matt Lundin Cc: emacs-orgmode@gnu.org --=-=-= Content-Transfer-Encoding: quoted-printable 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 =2D-=20 Sean Whitton / OpenPGP KeyID: 0x3B6D411B http://sean.whitton.me/ --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQIcBAEBAgAGBQJNoCV/AAoJEA9W0FU7bUEbkBwP/R6aoK1XTV2RTXRL97QGlcin 9bXdiymjuBv3ZOmRB5QhKkdOM36K9/mkNMB6ponxMbp07XVSFByIZSnMwYs9yFep 9Y6PFwY/sbuoAsvZA5GJ25ajp06nNKLQg+ywk6DNnVPtbWXFHNC4SDdH9jWJrTkr mGDggIebxzpJMEH/Ab4nrFV4svxgnFUPIP2dPVB4JbklX2BP4KYjmOQqGSnfS0ok TWIVQHwebu2q729DuidqbBAzEgYfCiNdw1KY4Fl4X6we/o4/Pa0PfM2LcBeI9yCr g3tOapgNG758ubvrDXQ1eLF3NWw8HQJRD1Rd/wUslEeTauK4PXXTzaYx5XhSfFQY rFq3aKjBmMTJp5FdYfbb2bZtm1OgShLhBrGa7nnHqx4Gg2N+eHM4GXZmnJV0SRAS g47fRagGaw3coAhQC2gBlP0Ex6S2XU0BNeWns68j+Y5mKtV/dHqkLec0Aw6EEG+9 wKGSFRFqB4Xp4Ic58qqJz03YbxXyH82g9UqgTa3MhCWU0zy+zqui3rjnK9jO9AAG WSIya6jwgkBkQF1hP4413wMVY8Y3+VIdlPtfxdgNC6EYOkM0H+NkWV4GyLY3xgU/ 9XegiM+FskiMNJ1DPZ6c1Z+LrO4OTF9yxgiUaBJefCiHPN6yAbaNVc7bjZoTub7H 8OcEnhnrBm6tlcMpc//d =NIjp -----END PGP SIGNATURE----- --=-=-=--