From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thorsten Jolitz Subject: Re: how do you compose mails in Gnus with org-mode Date: Tue, 06 Mar 2018 20:36:56 +0100 Message-ID: <87a7vlro6f.fsf@gmail.com> References: <87inafvrwi.fsf@gmail.com> <878tb9bcde.fsf@gmail.com> <87r2oxpl6y.fsf@mat.ucm.es> <87po4hrrj9.fsf@gmail.com> <87lgf581vu.fsf@mat.ucm.es> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:57926) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1etIPK-0002jg-AI for emacs-orgmode@gnu.org; Tue, 06 Mar 2018 14:37:55 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1etIPH-00078k-61 for emacs-orgmode@gnu.org; Tue, 06 Mar 2018 14:37:54 -0500 Received: from [195.159.176.226] (port=45792 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1etIPG-00078N-UP for emacs-orgmode@gnu.org; Tue, 06 Mar 2018 14:37:51 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1etIMv-0001pW-9T for emacs-orgmode@gnu.org; Tue, 06 Mar 2018 20:35:25 +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: > >> 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: >>> >>> I just realised that you are the author of that package. Sorry. >>> >>> I set >>> >>> (require 'outorg) >>> (require 'outshine) >>> (add-hook 'outline-minor-mode-hook 'outshine-hook-function) >>> >>> (add-hook 'message-mode-hook 'outline-minor-mode) > >> ok, maybe I answered the wrong message, does not look that incomplete >> actually. Maybe try a copy of my config. > >> I used outorg-edit-as-org to insert and evaluate these source blocks >> directly in this email, so for me it works: > I still can't > >> #+BEGIN_SRC emacs-lisp >> (emacs-version) >> #+END_SRC > > >> #+results: >> : GNU Emacs 25.3.1 (x86_64-pc-linux-gnu, GTK+ Version 3.22.26) >> : of 2018-02-09 > > > GNU Emacs 27.0.50 (build 1, x86_64-pc-linux-gnu, X toolkit, Xaw3d > scroll bars) > of 2018-01-25" Wow, emacs 27 ... I'm on Archlinux and always thought packages a pretty up-to-date. Maybe outline has changed somehow between Emacs 25 and Emacs 27? But I don't think so, the error you send is pretty typical for incomplete configuration. > Debugger entered--Lisp error: (error "Before first heading") > signal(error ("Before first heading")) > error("Before first heading") > outline-back-to-heading() is typical when ,---- | outorg-prepare-message-mode-buffer-for-editing () `---- has not run, it turns this line into a 1st level org headline thus converting any kind of message body into an org file. ,---- | * --text follows this line-- | Uwe Brauer writes: `---- without this, the error is justified - an org file without a single org headline is no org file at all. You could try to write an email with these lines: ,---- | * 1st level | ** 2nd level | some text `---- put point on some text an call outorg, to see if it works. Another option would be to use edebug: open outorg.el, put point into 'outorg-edit-as-org', and call M-x edebug-defun. Then convert an email again, and go step-by-step with SPACE key, and see how far you get. When done, call 'load-library' on outorg.el to get rid of edebug instrumentation. >> #+BEGIN_SRC emacs-lisp >> (org-version) >> #+END_SRC > > Git master from June 2017 so relatively recent > >> #+results: >> : 8.2.10 > >> #+BEGIN_SRC emacs-lisp >> (gnus-version) >> #+END_SRC > >> #+results: >> : Gnus v5.13 > > The same here. > >>> But when I fire up outorg-edit-as-org in a reply message I obtain the >>> error I described in my earlier message. >>> >>> Uwe Brauer > > > -- cheers, Thorsten