From mboxrd@z Thu Jan 1 00:00:00 1970 From: Samuel Wales Subject: deleting trailing whitespace can change org structure Date: Sat, 21 Jul 2018 16:39:08 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54772) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1fh1Sy-0005FL-Jx for emacs-orgmode@gnu.org; Sat, 21 Jul 2018 19:39:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1fh1Sx-0002Vy-TM for emacs-orgmode@gnu.org; Sat, 21 Jul 2018 19:39:12 -0400 Received: from mail-lj1-x229.google.com ([2a00:1450:4864:20::229]:34523) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1fh1Sx-0002V7-LA for emacs-orgmode@gnu.org; Sat, 21 Jul 2018 19:39:11 -0400 Received: by mail-lj1-x229.google.com with SMTP id f8-v6so13964159ljk.1 for ; Sat, 21 Jul 2018 16:39:11 -0700 (PDT) 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 just a heads up on something that is kind of obvious, but just in case: a blogger recommend delete-trailing-whitespace [in a tangling init, thus heavy org use]. many likely do this and whitespace-cleanup. he recommended it on a save hook. the problem for org is if you have a header like "^****** $". deleting trailing whitespace will make those headers become text under the previous header. some people habitually do a sequential m-ret to create blank headers to fill in. this was recommended in an org tutorial or so. blank headers are likely to be created by accident. it is possible that this corruption occurs without the user knowing. especially using a save hook or when there are a lot of lines to fix.