From mboxrd@z Thu Jan 1 00:00:00 1970 From: Uwe Brauer Subject: Re: how do you compose mails in Gnus with org-mode Date: Fri, 09 Mar 2018 19:44:12 +0100 Message-ID: <87h8pp84xv.fsf@mat.ucm.es> References: <87inafvrwi.fsf@gmail.com> <878tb9bcde.fsf@gmail.com> <87r2oxpl6y.fsf@mat.ucm.es> <87po4hrrj9.fsf@gmail.com> <87lgf581vu.fsf@mat.ucm.es> <87a7vlro6f.fsf@gmail.com> <87zi3kqkbp.fsf@mat.ucm.es> <87bmfzok25.fsf@gmail.com> <87a7vjuf19.fsf@mat.ucm.es> <87a7vibj2b.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54600) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1euN0D-0003Cw-7S for emacs-orgmode@gnu.org; Fri, 09 Mar 2018 13:44:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1euN0A-0001y5-1H for emacs-orgmode@gnu.org; Fri, 09 Mar 2018 13:44:25 -0500 Received: from [195.159.176.226] (port=54944 helo=blaine.gmane.org) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1euN09-0001xh-Pr for emacs-orgmode@gnu.org; Fri, 09 Mar 2018 13:44:21 -0500 Received: from list by blaine.gmane.org with local (Exim 4.84_2) (envelope-from ) id 1euMy3-0004po-SB for emacs-orgmode@gnu.org; Fri, 09 Mar 2018 19:42:11 +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: > When I do M-# # writing this mail I see: > ,---- > | [ *unsent followup to Uwe Brauer on gmane.emacs.orgmode* ] Exit with M-# > | (Meta-Key and #) > | * --text follows this line-- > | Uwe Brauer writes: ...[] > `---- I almost see the same but indented since I user supercite. I will deactivate it for the moment being, but I doubt this is the problem since your function also should work for a new mail buffer not just a reply one, am I right? So supercite should be irrelevant there. I tried to do what I always do in such cases (at least if memory serves me right). I put all outorg startup code in a file start emacs -q and then load that file. However when I do that, emacs tells me he does not find outshine and outorg, although they are in $HOME/.emacs.d/elpa So does emacs -q not ready anymore those files installed via the package system. I am confused. My outorg_init file is ,---- | | (defvar outline-minor-mode-prefix "\M-#") | | (require 'outline) | (require 'outshine) | | (add-hook 'outline-minor-mode-hook 'outshine-hook-function) | (add-hook 'message-mode-hook 'outline-minor-mode) | | (require 'outorg) | | (when (require 'outline) | (add-hook 'emacs-lisp-mode-hook 'outline-minor-mode) | (add-hook 'message-mode-hook 'outline-minor-mode)) | | ;; outorg-export | (require 'outorg-export) | (require 'navi-mode) | ;; outshine | | | | (setq outshine-use-speed-commands t) | | ;; navi-mode | (add-hook 'outline-minor-mode-hook 'outshine-hook-function) | | (provide 'outorg_init) `---- > I suggest edebug then, as written, this must run successfully: > ,----[ C-h f outorg-prepare-message-mode-buffer-for-editing RET ] > | outorg-prepare-message-mode-buffer-for-editing is a Lisp function in > | ‘outorg.el’. > | > | (outorg-prepare-message-mode-buffer-for-editing) > | > | Prepare an unsent-mail in a message-mode buffer for outorg. > | > | This function assumes that ’--text follows this line--’ (or > | whatever is found inside variable ‘mail-header-separator’) is the > | first line below the message header, is always present, and never > | modified by the user. It turns this line into an ‘outshine’ > | headline and out-comments all text below this line - if any. > `---- > Only available via github I think ....