From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: problem with orgstruct mode in message composition Date: Thu, 22 Sep 2011 13:00:04 +0100 Message-ID: <87fwjovlbv.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:38912) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6hwr-0006dy-Th for emacs-orgmode@gnu.org; Thu, 22 Sep 2011 08:00:18 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1R6hwq-0005D6-05 for emacs-orgmode@gnu.org; Thu, 22 Sep 2011 08:00:13 -0400 Received: from vscane-b.ucl.ac.uk ([144.82.108.141]:61029) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1R6hwo-00059t-PP for emacs-orgmode@gnu.org; Thu, 22 Sep 2011 08:00:11 -0400 Received: from [85.210.131.216] (helo=localhost) by vscane-b.ucl.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1R6hwj-0006gK-C3 for emacs-orgmode@gnu.org; Thu, 22 Sep 2011 13:00:05 +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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hello, I am having a very specific problem with orgstruct mode (well, orgstruct++ to be precise) when writing emails. I have recently moved to using /evil/ for all my text writing in Emacs. This is a vi emulator, a very good one that is currently under intense development. I know this may sound blasphemous but I *much* prefer vi's modal approach than emacs's modeless operation, partly because of RSI problems and the need to avoid key chording. But emacs is what I live in... Be that as it may, evil works very well generally with org. However, in =Message= buffers, I cannot now access the usual binding for fill-paragraph, M-q. I get the following error message: : orgstruct-error: This key has no function outside structure elements when in a simple paragraph (not a list item or table). Evil itself has no problems with me invoking M-q in any other buffer so I think it is somehow an interaction between evil and orgstruct++. Even if I try M-: (set-local-key "\M-q" 'fill-paragraph) RET while in a message buffer, I get the same error! M-x fill-paragraph RET works, however, so it's not a problem with fill-paragraph itself. In fact, the bindings in org.el for orgstruct mode indicate that M-q should invoke this function... in going through the code, I cannot see why the error is happening. Can anybody advise on how to figure out what is going on? Apologies for the long email. Thanks, eric -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.50.1 : using Org-mode version 7.7 (release_7.7.315.g20e6)