emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] [ox, patch] Quickly INCLUDE from own file


From: Rasmus
Subject: [O] [ox, patch] Quickly INCLUDE from own file
Date: Tue, 07 Oct 2014 11:40:59 +0200
User-agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.3.94 (gnu/linux)

Hi,

The attached patch allows for "quick" (== without filename) inclusion
from the same file.  Why?  'Cause I'm lazy and it would be useful to
push boring, location-specific stuff to the end of the file.

Here's an example:

    * poor man's ~:ignoreheading:~
    #+INCLUDE: "::*foo" :only-contents t

    #+INCLUDE: "::tbl"

    * foo                                                   :noexport:
    1

    * bar                                                   :noexport:
    #+NAME: tbl
    | 1 |

You need the preceding "::" to be able tell the difference between the
file "tbl" and the table "tbl".  Granted, this doesn't look like an
org link.  If that's an issue, for each link sans location it could be
tested if it exists in the current buffer.

Do you think something like this would be desirable?

—Rasmus

-- 
Hvor meget poesi tror De kommer ud af et glas isvand?

Attachment: 0001-ox-Quickly-INCLUDE-contents-from-same-file.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]