emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Scott Randby <srandby@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Weird Headline Behavior
Date: Tue, 12 Feb 2019 23:37:14 +0100	[thread overview]
Message-ID: <87zhr0tyzp.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <94822f76-0ac9-88a6-399f-31b97b3ffc33@gmail.com> (Scott Randby's message of "Fri, 8 Feb 2019 15:54:50 -0500")

Hello,

Scott Randby <srandby@gmail.com> 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.

> 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.

Regards,

-- 
Nicolas Goaziou

  reply	other threads:[~2019-02-12 22:37 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 [this message]
2019-02-13  4:26   ` Scott Randby

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

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zhr0tyzp.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=srandby@gmail.com \
    /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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).