From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alan Schmitt Newsgroups: gmane.emacs.help Subject: outorg-edit-as-org and mu4e (Was: contractor resources for emacs extension development) Date: Tue, 22 Oct 2013 14:05:58 +0200 Organization: IRISA, INRIA Rennes (FR) Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1382452822 6168 80.91.229.3 (22 Oct 2013 14:40:22 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 22 Oct 2013 14:40:22 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 22 16:40:27 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VYd8F-0006Ch-8j for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Oct 2013 16:40:27 +0200 Original-Received: from localhost ([::1]:45194 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VYd8E-0006G8-Nr for geh-help-gnu-emacs@m.gmane.org; Tue, 22 Oct 2013 10:40:26 -0400 X-Received: by 10.152.45.5 with SMTP id i5mr8305547lam.2.1382444235100; Tue, 22 Oct 2013 05:17:15 -0700 (PDT) X-FeedAbuse: http://nntpfeed.proxad.net/abuse.pl feeded by 78.192.65.63 Original-Path: usenet.stanford.edu!pk9no14113098wic.0!news-out.google.com!ft6ni5583wib.1!nntp.google.com!proxad.net!feeder1-2.proxad.net!nntpfeed.proxad.net!news.muarf.org!news.ecp.fr!news-rocq.inria.fr!news.irisa.fr!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-NNTP-Posting-Host: top.irisa.fr Original-X-Trace: news-v3.irisa.fr 1382443557 22604 131.254.16.41 (22 Oct 2013 12:05:57 GMT) Original-X-Complaints-To: abuse@irisa.fr Original-NNTP-Posting-Date: Tue, 22 Oct 2013 12:05:57 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin) Cancel-Lock: sha1:pEZq+pTYPiYw2+EYeLh+uX0XWL8= Original-Xref: usenet.stanford.edu gnu.emacs.help:201872 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:94142 Archived-At: Alan Schmitt writes: > I think I found the problem, looking at the code for > outorg-edit-as-org. It seems that you explicitly check for > message-mode, but I write my email using mu4e, and then the major mode > is mu4e-compose-mode. Is there a way to apply > 'outorg-prepare-message-mode-buffer-for-editing' for other modes than > message mode? (Editing the code seems to be the only way I see.) Sorry to reply to myself, but how about replacing #+begin_src emacs-lisp (and (eq major-mode 'message-mode) (outorg-prepare-message-mode-buffer-for-editing)) #+end_src on lines 719-720 of outorg.el by #+begin_src emacs-lisp (and (derived-mode-p 'message-mode) (outorg-prepare-message-mode-buffer-for-editing)) #+end_src I think it would work with mu4e-compose-mode. Alan