emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <ndokos@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: org-tree-slide annoyance
Date: Mon, 15 Jul 2013 09:43:45 -0400	[thread overview]
Message-ID: <8738rgey5q.fsf@gmail.com> (raw)
In-Reply-To: 87r4f0dk1n.fsf@bye.fritz.box

henry atts <snd@online.de> writes:

> Carsten Dominik <carsten.dominik@gmail.com> writes:
>
>> On 15.7.2013, at 10:33, henry atts <snd@online.de> 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?
>

No, I don't think so, but there are bugs (there was a bug in the latex
exporter once that required a heading at the beginning). I presume
Carsten's suggestion was as a workaround to a bug (although I might
have misinterpreted his comment).

> 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.
>

Yes, I went looking for it there and did not find it :-) So maybe you
can ping the author about the bug - s/he might even fix it, particularly
now that the package is being used by at least one other person! Or
contribute the fix yourself - if you like the package, then others might
too, so it might even end up in contrib at some point.

-- 
Nick

  reply	other threads:[~2013-07-15 13:44 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-15  8:33 org-tree-slide annoyance henry atts
2013-07-15 10:35 ` Carsten Dominik
2013-07-15 13:33   ` henry atts
2013-07-15 13:43     ` Nick Dokos [this message]
2013-07-16  3:09       ` Ishikawa Takaaki
2013-07-21  9:04       ` Takaaki ISHIKAWA
2013-07-16  5:46 ` Takaaki ISHIKAWA

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8738rgey5q.fsf@gmail.com \
    --to=ndokos@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).