From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: [bug] orgtbl-mode conflicts with ecomplete (a address completion of mesaage mode) Date: Mon, 2 Sep 2013 10:27:50 +0200 Message-ID: References: <20130831224205.GA29775@boo.workgroup> Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:41297) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGPUO-0007xX-T2 for emacs-orgmode@gnu.org; Mon, 02 Sep 2013 04:28:09 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VGPUG-00060G-CS for emacs-orgmode@gnu.org; Mon, 02 Sep 2013 04:28:00 -0400 Received: from mail-we0-x22d.google.com ([2a00:1450:400c:c03::22d]:62154) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VGPUG-0005yr-4g for emacs-orgmode@gnu.org; Mon, 02 Sep 2013 04:27:52 -0400 Received: by mail-we0-f173.google.com with SMTP id x52so608548wes.32 for ; Mon, 02 Sep 2013 01:27:51 -0700 (PDT) In-Reply-To: <20130831224205.GA29775@boo.workgroup> 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: Gregor Zattler Cc: emacs-orgmode Hi Gregor, thank you for your report. I have now documented this problem in the manual, but I invite you or = anyone else to submit a patch that will solve this issue. - Carsten On Sep 1, 2013, at 12:42 AM, Gregor Zattler wrote: > Dear org-mode Developers, >=20 > i followed the advice in the org-mode manual to use orgtbl-mode > in message-mode buffers (see: (info "(org)Orgtbl mode") or > [[info:org#Orgtbl%20mode][info:org#Orgtbl mode]] ), this is nice. >=20 > Since today i also want to use "ecompletion" for addresses in > email headers in message-mode as described in=20 > (info "(message)Mail Aliases") or > [[info:message#Mail%20Aliases][info:message#Mail Aliases]]. >=20 > Sadly orgtbl-mode somehow disables ecomplete. Without > orgtbl-mode if one types a part of an email address in an address > header line ecomplete shows list of possible addresses which is > shrinking while one types. This does not happen if orgtbl-mode > is enabled. >=20 > How to reproduce: >=20 > 1) save the attached file to ~/.ecompleterc >=20 > be sure not to overwrite your own ~/.ecompleterc! >=20 > 2) do >=20 > emacs -q -nw --eval "(setq message-mail-alias-type 'ecomplete)" = --eval '(message-mail)' >=20 > cursor is in the To: -address header. =20 >=20 > 2a) type "e"=20 >=20 > minibuffer shows three matching addresses. These are narrowed > down while you type "c" "h" "o". You might chosse one of the > matching addresses with M-n RET. >=20 > 2b) kill Emacs. >=20 > 3) do instead: >=20 > emacs -q -nw --eval "(setq message-mail-alias-type 'ecomplete)" = --eval "(add-hook 'message-mode-hook 'turn-on-orgtbl)" --eval = '(message-mail)' >=20 > cursor is in the To: -address header. =20 >=20 > 3a) type "e"=20 >=20 > minimuffer shows nothing... >=20 >=20 > 3b) kill Emacs. >=20 >=20 >=20 > It would be great if this conflict could be fixed. Otherwise the > conflict could be documented in the Conflicts section of Org-mode > (info "(org)Conflicts") or [[info:org#Conflicts]] like this: >=20 > --- org.texi 2013-09-01 00:41:15.125828086 +0200 > +++ org.texi-Orgtbl-ecomplete-conflict-documented 2013-09-01 = 00:40:56.101430317 +0200 > @@ -16414,6 +16414,18 @@ > to have other replacement keys, look at the variable > @code{org-disputed-keys}. >=20 > +@item @file{ecomplete.el} by Lars Magne Ingebrigtsen = @email{larsi@@gnus.org} > +@cindex @file{ecomplete.el} > + > +Ecomplete provides ``electric'' address completion in address header > +lines in message buffers. Sadly Orgtbl mode cuts ecompletes power > +supply: No completion happens when Orgtbl mode is enabled in message > +buffers while entering text in address header lines. If one wants to > +use ecomplete one should @emph{not} follow the advice to = automagically > +turn on Orgtbl mode in message buffers (see @ref{Orgtbl mode}), but > +instead---after filling in the message headers---turn on Orgtbl mode > +manually when needed in the messages body. > + > @item @file{filladapt.el} by Kyle Jones > @cindex @file{filladapt.el} >=20 >=20 >=20 >=20 > Thanks for your attention, Gregor > <.ecompleterc.txt>