From mboxrd@z Thu Jan 1 00:00:00 1970 From: Karl Voit Subject: [yasnippet] can not creating links with description Date: Mon, 8 Aug 2011 22:46:07 +0200 Message-ID: <2011-08-08T22-31-55@devnull.Karl-Voit.at> Reply-To: news1142@Karl-Voit.at Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:39946) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqWiP-00058t-P9 for emacs-orgmode@gnu.org; Mon, 08 Aug 2011 16:46:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QqWiO-0001PH-OX for emacs-orgmode@gnu.org; Mon, 08 Aug 2011 16:46:25 -0400 Received: from lo.gmane.org ([80.91.229.12]:58412) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QqWiO-0001P6-JV for emacs-orgmode@gnu.org; Mon, 08 Aug 2011 16:46:24 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QqWiM-0008EC-AK for emacs-orgmode@gnu.org; Mon, 08 Aug 2011 22:46:22 +0200 Received: from mail.michael-prokop.at ([88.198.6.110]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 08 Aug 2011 22:46:22 +0200 Received: from news1142 by mail.michael-prokop.at with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 08 Aug 2011 22:46:22 +0200 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 Hi! I'd like to create a link like [[file:~/share/all/org-mode/contacts.org::*foo][company:foo]] ... and therefore I created: ,----[ ~/snippets/org-mode/vkcomp ] | # name : expand link to company | # -- | [[file:~/share/all/org-mode/contacts.org::*$1][company:$1]] $0 `---- But: unfortunately my Org-mode behaves strangely when applying the snippet: "company:" with blinking cursor in the «c» which does not let me enter the string which replaces «$1». I guess this is related to «hiding the actual link when a description is set». Can I define a snippet which behaves like following? After entering the snippet command and pressing TAB, I get the chance to type «foo» part and after another TAB, the link as stated above is finished and the cursor is at the end. Thanks! -- Karl Voit