emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Takaaki ISHIKAWA <takaxp@ieee.org>
To: henry atts <snd@online.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-tree-slide annoyance
Date: Tue, 16 Jul 2013 14:46:34 +0900	[thread overview]
Message-ID: <F31490A5-F527-4EE6-B78D-D4922DE4263A@ieee.org> (raw)
In-Reply-To: <87a9lo6x3f.fsf@bye.fritz.box>

Hi Henry,

Thank you for using org-tree-slide and reporting the issue.
Please use the following patch to avoid the error.

PATCH: 
  Replace the original code with
----
(defun ots-display-tree-with-narrow ()
  "Show a tree with narrowing and also set a header at the head of slide."
  (goto-char (point-at-bol))
  (when (ots-last-heading-position)
    (hide-subtree)			; support CONTENT (subtrees are shown)
    (org-show-entry)
    (show-children)
    (org-cycle-hide-drawers 'all)
    (org-narrow-to-subtree))
  (setq display-tree-slide-string
	(if (equal org-tree-slide-modeline-display 'outside)
	    (ots-count-slide (point))
	  ""))
  (when org-tree-slide-slide-in-effect
    (ots-slide-in org-tree-slide-slide-in-brank-lines))
  (when org-tree-slide-header
    (ots-show-slide-header)))
----

This patch is a tentative code for checking behavior in your environments,
but I think you will be able to open org files without heading.
I'll update it again within a few days.


Best,
Takaaki

On Jul 15, 2013, at 5:33 PM, 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.
> 
> henry
> 
> -- 
> web: http://literaturlatenight.de
> jabberID: atting@jabber.at
> 
> 

--
Takaaki ISHIKAWA <takaxp@ieee.org>
  GITI, Waseda University
    :) http://about.me/takaxp

      parent reply	other threads:[~2013-07-16  5:46 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
2013-07-16  3:09       ` Ishikawa Takaaki
2013-07-21  9:04       ` Takaaki ISHIKAWA
2013-07-16  5:46 ` Takaaki ISHIKAWA [this message]

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=F31490A5-F527-4EE6-B78D-D4922DE4263A@ieee.org \
    --to=takaxp@ieee.org \
    --cc=emacs-orgmode@gnu.org \
    --cc=snd@online.de \
    /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).