From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Sharon Kimble Newsgroups: gmane.emacs.help Subject: Re: cursor positioning in YASnippet entry Date: Wed, 11 Jun 2014 21:30:39 +0100 Message-ID: <871tuv89zk.fsf@skimble.plus.com> References: <87tx7rlayj.fsf@skimble.plus.com> <5398AC59.3040205@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1402518679 24710 80.91.229.3 (11 Jun 2014 20:31:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 Jun 2014 20:31:19 +0000 (UTC) Cc: help-gnu-emacs To: Alexis Roda , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 11 22:31:14 2014 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 1WupAw-00088O-6l for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Jun 2014 22:31:14 +0200 Original-Received: from localhost ([::1]:49344 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WupAv-0008T3-HB for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Jun 2014 16:31:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41707) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WupAg-0008MX-2v for help-gnu-emacs@gnu.org; Wed, 11 Jun 2014 16:31:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WupAb-0001z3-7L for help-gnu-emacs@gnu.org; Wed, 11 Jun 2014 16:30:58 -0400 Original-Received: from avasout01.plus.net ([84.93.230.227]:44088) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WupAb-0001yr-1B for help-gnu-emacs@gnu.org; Wed, 11 Jun 2014 16:30:53 -0400 Original-Received: from london ([87.113.62.235]) by avasout01 with smtp id D8Wm1o00454Xw6n018WqfS; Wed, 11 Jun 2014 21:30:51 +0100 X-CM-Score: 0.00 X-CNFS-Analysis: v=2.1 cv=E5NDpMtl c=1 sm=1 tr=0 a=ghyiixEhfiOnuEZknAzLeA==:117 a=ghyiixEhfiOnuEZknAzLeA==:17 a=0Bzu9jTXAAAA:8 a=dOUBY0j0ER4A:10 a=Joylf5jxQMgA:10 a=ihvODaAuJD4A:10 a=EBOSESyhAAAA:8 a=pGLkceISAAAA:8 a=LlzXLoV6AAAA:8 a=xtERp6CFAAAA:8 a=iI7HsYTVAAAA:8 a=5IanOl-IovwP2Veo5KsA:9 a=Qt_Vs8dT56gH8nUN:21 a=czHfV14rGasRiQvp:21 a=MSl-tDqOz04A:10 a=3W9N6kQ4Fb3mJ_9ES-cA:9 X-AUTH: skimble:2500 In-Reply-To: <5398AC59.3040205@gmail.com> (Alexis Roda's message of "Wed, 11 Jun 2014 21:22:01 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.91 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no timestamps) [generic] X-Received-From: 84.93.230.227 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:98158 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Alexis Roda writes: > El 11/06/14 17:31, Sharon Kimble ha escrit: >> This is one of my YASnippets - >> --8<---------------cut here---------------start------------->8--- >> \colorbox{yellow}{FIXME: } >> --8<---------------cut here---------------end--------------->8--- >> >> How can I have it open with the cursor always just before the >> closing curly-bracket please? > > In a snippet $0 denotes the location where the point ends after the > expansion completes: > > \colorbox{yellow}{FIXME: $0} Brilliant, thanks, it works a treat! :) Thanks Sharon. =2D-=20 A taste of linux =3D http://www.sharons.org.uk my git repo =3D https://bitbucket.org/boudiccas/dots TGmeds =3D http://www.tgmeds.org.uk Debian testing, fluxbox 1.3.5, emacs 24.3.91.1 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQIcBAEBCgAGBQJTmLxvAAoJEDaBgBkK+INbo1EP+wTBVVuWZw1KucJpZ8UAbFM1 CWmqS/y9Jk80DXE75F7mHQwwvR8DLmbDfhhMv9ITj0ORytIkrbp4QAge1e/tPjvj KlG5QUYU0tULT4oFL61JZaPNFdG4FmK42XWFJ2im8xbnW//oCmtlZR2lARuTLL5i CxUxcOtSgQTk/j5hEA+8TjeKLlE5CnG+4O3YEMYXac5pxH6GFOQ1HndwXsc8Hl7y 0dTSG787+DrHtfU+02r7tnuuIb2GDIM7j3SjOXNuwx/jriz4Du5FrmyvTpriU7S3 j8fsv5889aKDE5d+A6wCIwNmWiA8cPqE+Bdj8pqQmgjcWsDCpQ5bR+G+QE0zGfhz 4vMo3R5B+QXBr7+UqUhVISvd68xtS/APuwB6NlMLEPKDgIr59WSppc9z5hJRRuL8 gu6KK3Oh9721jK1CgSsFd0nK7JLx7AA9qqduk+GUaI0RW1gqDTz6tYkfzANLE4ei 3kWHgK2ormLJFVVG/BJTnViuEb9GxxVs/H46hfzkw3ll/jBr8zM6GlTtsMZr6Act zeGWwx5w8TOFhw78CcuJ+IEIv8BF2SQDvgDEXodo9kDgmRelZbsMi9fgDXQBONli v3UIkP1ITsfo8sFoDU8BvmflDbe0Brfke07+8RY9tjCsHfFFpCpNJUUQkuEixvR8 TTxXNUoYupa+15hbNhv8 =S6qp -----END PGP SIGNATURE----- --=-=-=--