From: Scott Randby <srandby@gmail.com>
To: emacs-orgmode@gnu.org
Cc: Nicolas Goaziou <mail@nicolasgoaziou.fr>
Subject: Re: Weird Headline Behavior
Date: Tue, 12 Feb 2019 23:26:14 -0500 [thread overview]
Message-ID: <2d93d12a-755f-f249-ce86-8106dc9ede12@gmail.com> (raw)
In-Reply-To: <87zhr0tyzp.fsf@nicolasgoaziou.fr>
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
prev parent reply other threads:[~2019-02-13 4:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-08 20:54 Weird Headline Behavior Scott Randby
2019-02-12 22:37 ` Nicolas Goaziou
2019-02-13 4:26 ` Scott Randby [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2d93d12a-755f-f249-ce86-8106dc9ede12@gmail.com \
--to=srandby@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=mail@nicolasgoaziou.fr \
/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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.