From mboxrd@z Thu Jan 1 00:00:00 1970 From: henry atts Subject: Re: org-tree-slide annoyance Date: Mon, 15 Jul 2013 15:33:56 +0200 Message-ID: <87r4f0dk1n.fsf@bye.fritz.box> References: <87a9lo6x3f.fsf@bye.fritz.box> <5E0B3901-A902-4F12-B636-2A4C2AA8D6BB@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34853) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uyiv5-0000vG-Rn for emacs-orgmode@gnu.org; Mon, 15 Jul 2013 09:34:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uyiux-00046A-GI for emacs-orgmode@gnu.org; Mon, 15 Jul 2013 09:34:27 -0400 Received: from moutng.kundenserver.de ([212.227.17.8]:58764) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uyiux-00045S-5z for emacs-orgmode@gnu.org; Mon, 15 Jul 2013 09:34:19 -0400 In-Reply-To: <5E0B3901-A902-4F12-B636-2A4C2AA8D6BB@gmail.com> (Carsten Dominik's message of "Mon, 15 Jul 2013 12:35:21 +0200") 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Carsten Dominik Cc: emacs-orgmode@gnu.org, henry atts Carsten Dominik writes: > On 15.7.2013, at 10:33, henry atts wrote: > >> I use org-tree-slide-mode by default with >> >> (add-hook 'org-mode-hook 'org-tree-slide-mode) >> >> This works kind of acceptable minus some minor annoyances. But one thing >> makes it nearly unusuable. tree-slide rigidly expects at least one >> header. So if I open an org file without heading, or if I create a new >> one, I get an error message: >> >> File mode specification error: (error "before first heading") >> >> If I include a setup file with `#+SETUPFILE:', which of course has no >> headings in it, org-tree-slide stops working at all. > > > Hi Henry, > > you could wrap turning on of the mode into a function > that checks if there is a node, and if not, just add one. > > - Carsten Okay, but on the one hand this doesn't solve the problem with `SETUPFILE'. On the other hand what if I want an org file without any heading on purpose? Or otherwise asked is a file a `real' org file only if it has headings in it? You might say if you want some features of orgmode _and_ an org file without heading you can always use, say, text-mode and load orgstruct as a minor mode. Which does not solve the problem as well because with the org-tree-mode hook for orgmode it shows some strange behaviour equally. I like org-tree-mode but I think it does not play well with orgmode in some cases. And as far as I see it even is not in contrib. henry -- web: http://literaturlatenight.de jabberID: atting@jabber.at