emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] Weird Headline Behavior


From: Scott Randby
Subject: Re: [O] Weird Headline Behavior
Date: Tue, 12 Feb 2019 23:26:14 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.4.0

On 2/12/19 5:37 PM, Nicolas Goaziou wrote:
> Hello,
> 
> Scott Randby writes:
> 
>> I've been noticing some unusual behavior when I manipulate headlines (Org 
>> 9.2).
>>
>> I have the following (or something similar) at the very end of many Org 
>> files:
>>
>> * LOCAL VARIABLES
>> # Local Variables:
>> # mode: org
>> # coding: utf-8-unix
>> # End:
>>
>> If I copy this subtree (C-c C-x M-w) and then yank it (C-c C-x C-y)
>> into into the same file or another file, only the headline is yanked,
>> the rest of the subtree is not.
> 
> This is because Org now has some code preserving file local variables at
> the end of the document. Some headings related commands -- e.g., moving
> or sorting them -- just ignore these comments.
> 
> If you really want to copy them, mark the section, with
> `org-mark-subtree' and copy it with M-w.

Okay, I understand now.

> 
>> In addition, if I decide to delete a different headline in the file
>> (C-c C-x C-w) while the LOCAL VARIABLES headline is folded, then this
>> appears on the display:
>>
>> * LOCAL VARIABLES...# Local Variables:
>> # mode: org
>> # coding: utf-8-unix
>> # End:
> 
> I fixed it. Thank you.

Thank you.

Scott



reply via email to

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