From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: org-tree-slide annoyance Date: Mon, 15 Jul 2013 12:35:21 +0200 Message-ID: <5E0B3901-A902-4F12-B636-2A4C2AA8D6BB@gmail.com> References: <87a9lo6x3f.fsf@bye.fritz.box> Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:60503) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uyg7r-00063A-LP for emacs-orgmode@gnu.org; Mon, 15 Jul 2013 06:35:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Uyg7m-0004sv-F3 for emacs-orgmode@gnu.org; Mon, 15 Jul 2013 06:35:27 -0400 Received: from mail-wg0-x231.google.com ([2a00:1450:400c:c00::231]:54497) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Uyg7m-0004pL-9l for emacs-orgmode@gnu.org; Mon, 15 Jul 2013 06:35:22 -0400 Received: by mail-wg0-f49.google.com with SMTP id a12so9839070wgh.28 for ; Mon, 15 Jul 2013 03:35:20 -0700 (PDT) In-Reply-To: <87a9lo6x3f.fsf@bye.fritz.box> 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: henry atts Cc: emacs-orgmode@gnu.org 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 > > henry > > -- > web: http://literaturlatenight.de > jabberID: atting@jabber.at > >