From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Barton Subject: Re: Org Contacts, Gnus and Yasnippet Not Playing Nicely Date: Tue, 24 May 2011 14:33:23 +0100 Message-ID: <4DDBB3A3.5090707@manor-farm.org> References: <4DDA9A35.7030403@manor-farm.org> <87wrhgpffa.fsf@member.fsf.org> Reply-To: lists@manor-farm.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:49912) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOrjj-0002QR-Ny for emacs-orgmode@gnu.org; Tue, 24 May 2011 09:33:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QOrji-00079D-Jz for emacs-orgmode@gnu.org; Tue, 24 May 2011 09:33:27 -0400 Received: from mail.ian-barton.com ([109.74.196.44]:44097 helo=li40-130.members.linode.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QOrji-000794-EM for emacs-orgmode@gnu.org; Tue, 24 May 2011 09:33:26 -0400 Received: from localhost (mail.wilkesley.org [127.0.0.1]) by li40-130.members.linode.com (Postfix) with ESMTP id 1EC3F15A03C for ; Tue, 24 May 2011 13:33:22 +0000 (UTC) Received: from li40-130.members.linode.com ([127.0.0.1]) by localhost (mail.manor-farm.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id h7dOqvUt+nVe for ; Tue, 24 May 2011 13:33:22 +0000 (UTC) Received: from [192.168.0.133] (unknown [217.146.125.41]) (Authenticated sender: ian@manor-farm.org) by li40-130.members.linode.com (Postfix) with ESMTPSA id DA8B815A031 for ; Tue, 24 May 2011 13:33:21 +0000 (UTC) In-Reply-To: <87wrhgpffa.fsf@member.fsf.org> 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 On 24/05/11 11:21, Tassilo Horn wrote: > Ian Barton writes: > > Hi Ian, > >> I am trying to set up Org Contacts and gnus. Org Contacts suggests >> that pressing + in the To: field in a message buffer should >> offer a list of tags from my contacts file. However, I just get a Tab. >> >> I suspect that Yasnippet is interfering, as entering the abbreviation >> for any of my snippets and pressing Tab auto-completes the >> snippet. Does anyone have a tip for making Yasnippets, gnus and >> org-contacts play nicely together? > > It works fine for me using emacs 24. Maybe you've set > `org-contacts-completion-ignore-case' set to nil (which is not the > default), and you are trying to complete a lowercase starter while all > of your contacts have names starting uppercase? > > If not, start writing a mail and go to the To: header. Type the first > character of a contact that definitively exists. You should get a > *Completion* buffer, or it should complete to the sole matching contact. > Additionally, doing `C-h k TAB' should tell you that TAB executes > `completion-at-point'. > > (Even with emacs 24, before the first TAB it'll tell me that TAB calls > `yas/expand'...) > Thanks Tassilo. I am using Emacs 23.2.1. `C-h k TAB' shows: TAB (translated from ) runs the command yas/expand, which is an interactive Lisp function in `yasnippet.el'. It is bound to TAB, . (yas/expand) Expand a snippet before point. If no snippet expansion is possible, fall back to the behaviour defined in `yas/fallback-behavior' I have just downloaded and compiled Emacs 24, where it all works as expected. So it seems specific to the version of Emacs with Ubuntu. So far Emacs 24 seems stabe on my system, so this is an acceptable workaround:) Ian.