> Uwe Brauer <o...@mat.ucm.es> 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 <o...@mat.ucm.es> 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 ....