From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: [Error] Date: Tue, 06 Mar 2018 19:12:55 +0100 Message-ID: <87vae9rs2g.fsf@gmail.com> References: <87inafvrwi.fsf@gmail.com> <878tb9bcde.fsf@gmail.com> <87fu5dr0ds.fsf_-_@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36387) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1etH5x-0006CF-P2 for emacs-orgmode@gnu.org; Tue, 06 Mar 2018 13:13:50 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1etH5v-0001CF-2j for emacs-orgmode@gnu.org; Tue, 06 Mar 2018 13:13:49 -0500 Received: from [195.159.176.226] (port=45194 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1etH5u-0001Br-RA for emacs-orgmode@gnu.org; Tue, 06 Mar 2018 13:13:47 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1etH3X-0001An-W8 for emacs-orgmode@gnu.org; Tue, 06 Mar 2018 19:11:19 +0100 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" To: emacs-orgmode@gnu.org Uwe Brauer writes: >>>> "Thorsten" == Thorsten Jolitz writes: > > > Joseph Vidal-Rosset writes: > > Hallo > > >> I know that the subject of my email exists already. > >> [[https://lists.gnu.org/archive/html/emacs-orgmode/2009-08/msg00855.html]] > > > This works perfectly for your subject: > > > ,----[ C-h f outorg-edit-as-org RET ] > > Thanks for the pointer, but alas it does not work in a gnus message/mail > buffer. Hello, I' pretty sure your outshine config is not complete: Here is what I have: at the top of my .emacs: ,---- | ;; *** Global Keys | | ;; must be set before outline is loaded | (defvar outline-minor-mode-prefix "\M-#") `---- then somewhere inside my .emacs (don't worry about "try-require", simply use "require" in your code). outorg-export is optional too (but useful for special needs in outorg exporting), I would highly recomment navi-mode though (very fast navigation in outshine buffers). ,---- | ;; ** Outline | | (message "\n------ entering outline ------") | | (when (try-require 'outline) | (add-hook 'emacs-lisp-mode-hook 'outline-minor-mode) | (add-hook 'message-mode-hook 'outline-minor-mode)) | | ;; outorg-export | (try-require 'outorg-export) | | ;; outshine | (try-require 'outshine) | (add-hook 'outline-minor-mode-hook 'outshine-hook-function) | | (setq outshine-use-speed-commands t) | | ;; navi-mode | (try-require 'navi-mode) `---- most likely this line is missing, add it: ,---- | (add-hook 'outline-minor-mode-hook 'outshine-hook-function) `---- Note that I did this: ,---- | (add-hook 'xyz-mode-hook 'outline-minor-mode) `---- for many other modes too, like ESS, picolisp, ledger, latex ... etc HTH > When I use that function I obtain the following error: > > Debugger entered--Lisp error: (error "Before first heading") > signal(error ("Before first heading")) > error("Before first heading") > outline-back-to-heading() > outline-end-of-subtree() > outorg-save-markers((point-marker beg-of-subtree-marker mark-marker > org-clock-marker org-clock-hd-marker org-clock-default-task > org-clock-interrupted-task selected-task org-open-link-marker > org-log-note-marker org-log-note-return-to > org-entry-property-inherited-from)) > outorg-edit-as-org(nil) > funcall-interactively(outorg-edit-as-org nil) > call-interactively(outorg-edit-as-org nil nil) > command-execute(outorg-edit-as-org) > > > Did you check this command, how do you use it? > > Regards > > Uwe Brauer > > > -- cheers, Thorsten