Re: [O] Copying subtrees with footnotes

2013-03-21 Thread Christian Moe

Bastien writes:
 Instead of adapting those function, I'd have a function to inline
 external footnotes--and vice versa.  This function would be helpful 
 in this case but in other situations too.

+1!

Yours,
Christian



[O] Copying subtrees with footnotes

2013-03-20 Thread Florian Beck
Hi,

I need to copy subtrees between org-buffers, but `org-copy-subtree'
ignores footnotes (which is technically correct, I guess). Is there any
way to automate this?
-- 
Florian Beck



Re: [O] Copying subtrees with footnotes

2013-03-20 Thread Samuel Wales
Not a direct answer to your question, but:

I find that inline footnotes solve a lot of problems:
locality of reference is a huge deal both cognitively and
for organization; they cannot be put in the wrong sections
by mistake; they can't get numbers mixed up; they can't get
deleted or commented without the corresponding part doing so
in the normal case; it is not necessary to follow them to
check to see if they are there or what they are or where
they are; they can't get refiled or separated from their
definitions by headline additions; and they trigger fewer
numbering bugs.

They also, apparently, can be copied more easily.

Samuel

On 3/20/13, Florian Beck f...@miszellen.de wrote:
 Hi,

 I need to copy subtrees between org-buffers, but `org-copy-subtree'
 ignores footnotes (which is technically correct, I guess). Is there any
 way to automate this?
 --
 Florian Beck




-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com

The disease DOES progress.  MANY people have died from it.  ANYBODY
can get it.  There is NO hope without action.  This means YOU.



Re: [O] Copying subtrees with footnotes

2013-03-20 Thread Florian Beck
Samuel Wales samolog...@gmail.com writes:

 I find that inline footnotes solve a lot of problems:

Absolutly. The main reason I don't generally inline footnotes is that I
don't want to *see* them. Basically, footnotes are for readers that are
not my primary audience; sometimes footnotes are only for me and I keep
them only for drafting. Either way, they are noise in the paragraph.
Same thing, when I take notes and want to see the main points at a
glance while keeping reflections out of the way.

I thought about using custom links for footnotes (which would allow me
to hide the definition), but I'm not sure that would work the same way.
Can I have other (custom) links inside the link path (or inside an
inline footnote defintion)?

Thanks for the idea, I have to investigate.

Still, the original questions stands. Maybe `org-copy-subtree' and
`org-paste-subtree' could be adapted? Problem is, these functions use
kill-region internally, and I see no easy way to add the footnote information.

-- 
Florian Beck



Re: [O] Copying subtrees with footnotes

2013-03-20 Thread Samuel Wales
On 3/20/13, Florian Beck f...@fbeck.net wrote:
 Samuel Wales samolog...@gmail.com writes:
 I find that inline footnotes solve a lot of problems:

 Absolutly. The main reason I don't generally inline footnotes is that I
 don't want to *see* them. Basically, footnotes are for readers that are

Others have proposed a command to collapse and expand inline
footnotes.  This would be trivial, involving invisibility property.

Do you think that would help?

-- 
The Kafka Pandemic: http://thekafkapandemic.blogspot.com

The disease DOES progress.  MANY people have died from it.  ANYBODY
can get it.  There is NO hope without action.  This means YOU.



Re: [O] Copying subtrees with footnotes

2013-03-20 Thread Bastien
Hi Florian,

Florian Beck f...@fbeck.net writes:

 Still, the original questions stands. Maybe `org-copy-subtree' and
 `org-paste-subtree' could be adapted?

Instead of adapting those function, I'd have a function to inline
external footnotes--and vice versa.  This function would be helpful 
in this case but in other situations too.

Any taker?

-- 
 Bastien