emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: John Kitchin <jkitchin@andrew.cmu.edu>
To: Andreas Leha <andreas.leha@med.uni-goettingen.de>
Cc: emacs-orgmode@gnu.org
Subject: Re: outorg issue
Date: Thu, 13 Aug 2015 10:30:47 -0400	[thread overview]
Message-ID: <m27fozp8fc.fsf@andrew.cmu.edu> (raw)
In-Reply-To: <olumvxwkweh.fsf@med.uni-goettingen.de>

I can only confirm I have had the same issue for a while. For me it is
mostly when I press shift-tab. regular tab works fine for cycling.

The problem seems to arise from the point moving to the beginning of the
buffer when outline-back-to-heading is called, which raises that
error. I don't have time today to dig much further. I hope that helps
get a solution though! I miss outshine!


Andreas Leha writes:

> Hi all,
>
> For quite some time now, I have to disable outshine/outorg [1] as it
> does give me "Before first heading" (complete backtrace [2]) whenever I
> open an org file followed by more issues actually using org mode.
>
> I can even reproduce this with emacs -Q and a minimal configuration [3].
>
> My system is:
> : GNU Emacs 25.0.50.1 (x86_64-apple-darwin13.4.0, NS appkit-1265.21 Version 10.9.5 (Build 13F1077))
> :  of 2015-06-17
> : Org-mode version 8.3beta (release_8.3beta-1264-g365c19)
>
>
> Can anyone reproduce this and/or has a fix?  Or am I missing anything
> obvious?
>
> Thanks in advance!
>
>
> Regards,
> Andreas
>
>
>
>
> [1] https://github.com/tj64/outshine
>     https://github.com/tj64/outorg
>
>
> [2] complete backtrace when opening a random org file
>
> --8<---------------cut here---------------start------------->8---
> Debugger entered--Lisp error: (error "Before first heading")
>   signal(error ("Before first heading"))
>   error("Before first heading")
>   outline-back-to-heading()
>   outline-flag-subtree(t)
>   hide-subtree()
>   (save-excursion (goto-char (point-min)) (hide-subtree) (show-children keep-levels) (condition-case err (while (outline-get-next-sibling) (hide-subtree) (show-children keep-levels)) (error nil)))
>   hide-sublevels(1)
>   org-overview()
>   org-set-startup-visibility()
>   org-mode()
>   set-auto-mode-0(org-mode nil)
>   set-auto-mode()
>   normal-mode(t)
>   after-find-file(nil t)
>   find-file-noselect-1(#<buffer cellomics.org> "~/hipsci/cellomics/cellomics.org" nil nil "~/hipsci/cellomics/cellomics.org" (25636441 16777218))
>   find-file-noselect("~/hipsci/cellomics/cellomics.org" nil nil t)
>   find-file("~/hipsci/cellomics/cellomics.org" t)
>   funcall-interactively(find-file "~/hipsci/cellomics/cellomics.org" t)
>   call-interactively(find-file nil nil)
>   command-execute(find-file)
> --8<---------------cut here---------------end--------------->8---
>
>
>
> [3] minimal startup file
>
> --8<---------------cut here---------------start------------->8---
> ;; outorg/outshine pre-requisite
> (defvar outline-minor-mode-prefix "\M-#")
>
> (add-to-list 'load-path (expand-file-name "~/local/emacs/org-mode-install/lisp"))
> (add-to-list 'auto-mode-alist '("\\.\\(org\\  |org_archive\\|txt\\)$" . org-mode))
>
> ;; outorg/outshine
> (add-to-list 'load-path "~/local/emacs/org-mode-in-comments/outorg/")
> (add-to-list 'load-path "~/local/emacs/org-mode-in-comments/outshine")
> (require 'outshine)
> (add-hook 'outline-minor-mode-hook 'outshine-hook-function)
> (setq outshine-use-speed-commands t)
> --8<---------------cut here---------------end--------------->8---

--
Professor John Kitchin
Doherty Hall A207F
Department of Chemical Engineering
Carnegie Mellon University
Pittsburgh, PA 15213
412-268-7803
@johnkitchin
http://kitchingroup.cheme.cmu.edu

  reply	other threads:[~2015-08-13 14:30 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-08-12 21:51 outorg issue Andreas Leha
2015-08-13 14:30 ` John Kitchin [this message]
2015-08-13 14:37   ` Andreas Leha
2015-08-18 16:28 ` Bastien
2015-08-18 19:53   ` Andreas Leha
2015-08-18 20:11     ` Kaushal
2015-08-18 22:26       ` Bastien
2015-08-19  7:53       ` Andreas Leha
2015-08-18 20:35     ` Pip Cet
2015-08-19  8:10       ` Andreas Leha
2015-08-19 14:23         ` Pip Cet
2015-08-19 19:08           ` Kaushal
2015-09-08 20:09             ` Thorsten Jolitz

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=m27fozp8fc.fsf@andrew.cmu.edu \
    --to=jkitchin@andrew.cmu.edu \
    --cc=andreas.leha@med.uni-goettingen.de \
    --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).