From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Weird Headline Behavior Date: Tue, 12 Feb 2019 23:37:14 +0100 Message-ID: <87zhr0tyzp.fsf@nicolasgoaziou.fr> References: <94822f76-0ac9-88a6-399f-31b97b3ffc33@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([209.51.188.92]:52553) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gtgg8-0005aK-KC for emacs-orgmode@gnu.org; Tue, 12 Feb 2019 17:37:25 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gtgg7-0002b7-M8 for emacs-orgmode@gnu.org; Tue, 12 Feb 2019 17:37:24 -0500 Received: from relay10.mail.gandi.net ([217.70.178.230]:32989) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1gtgg7-0002HT-Bt for emacs-orgmode@gnu.org; Tue, 12 Feb 2019 17:37:23 -0500 In-Reply-To: <94822f76-0ac9-88a6-399f-31b97b3ffc33@gmail.com> (Scott Randby's message of "Fri, 8 Feb 2019 15:54:50 -0500") 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: Scott Randby Cc: emacs-orgmode@gnu.org 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. > 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