From mboxrd@z Thu Jan 1 00:00:00 1970 From: Scott Randby Subject: Re: Weird Headline Behavior Date: Tue, 12 Feb 2019 23:26:14 -0500 Message-ID: <2d93d12a-755f-f249-ce86-8106dc9ede12@gmail.com> References: <94822f76-0ac9-88a6-399f-31b97b3ffc33@gmail.com> <87zhr0tyzp.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([209.51.188.92]:34990) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gtm7m-0004wl-31 for emacs-orgmode@gnu.org; Tue, 12 Feb 2019 23:26:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gtm7l-0004AF-9L for emacs-orgmode@gnu.org; Tue, 12 Feb 2019 23:26:18 -0500 Received: from mail-it1-x12f.google.com ([2607:f8b0:4864:20::12f]:50922) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gtm7l-00049o-0N for emacs-orgmode@gnu.org; Tue, 12 Feb 2019 23:26:17 -0500 Received: by mail-it1-x12f.google.com with SMTP id z7so2667388iti.0 for ; Tue, 12 Feb 2019 20:26:16 -0800 (PST) In-Reply-To: <87zhr0tyzp.fsf@nicolasgoaziou.fr> Content-Language: en-US List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org Cc: Nicolas Goaziou 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