From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Oliver Scholz Newsgroups: gmane.emacs.help Subject: Re: Problem positioning cursor Date: Sat, 26 Apr 2003 17:24:53 +0200 Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <84of2te4kn.fsf@lucy.is.informatik.uni-duisburg.de> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: main.gmane.org 1051370680 12364 80.91.224.249 (26 Apr 2003 15:24:40 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 26 Apr 2003 15:24:40 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Sat Apr 26 17:24:39 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 199RXa-0003DF-00 for ; Sat, 26 Apr 2003 17:24:39 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 199RYV-000246-04 for gnu-help-gnu-emacs@m.gmane.org; Sat, 26 Apr 2003 11:25:35 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!fu-berlin.de!uni-berlin.de!dialin-145-254-192-074.arcor-ip.NET!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 28 Original-NNTP-Posting-Host: dialin-145-254-192-074.arcor-ip.net (145.254.192.74) Original-X-Trace: fu-berlin.de 1051370708 9731177 145.254.192.74 (16 [87814]) X-Attribution: os X-Face: "HgH2sgK|bfH$; PiOJI6|qUCf.ve<51_Od(%ynHr?=>znn#~#oS>",F%B8&\vus),2AsPYb -n>PgddtGEn}s7kH?7kH{P_~vu?]OvVN^qD(L)>G^gDCl(U9n{:d>'DkilN!_K"eNzjrtI4Ya6;Td% IZGMbJ{lawG+'J>QXPZD&TwWU@^~A}f^zAb[Ru;CT(UA]c& User-Agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.3.50 (windows-nt) Cancel-Lock: sha1:VUCjXdJQLbA/MuXBXiZ36LSk3eY= Original-Xref: shelby.stanford.edu gnu.emacs.help:112370 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:8869 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:8869 kai.grossjohann@gmx.net (Kai Großjohann) writes: [...] > I think that skeletons can't do what you need, though. There is a > change that adds the capability you need which has been committed to > the development release of Emacs in the last couple of days, or which > will be committed soon. It should be possible even in Emacs 21.2. If you use something like ("lirum" _ "larum" _ "schubi"), then point is put at the first "_", unless that is consumed (so to say) for the region. Hmmm ... (define-skeleton vics-java-catch-insert "Generate a skeleton for a java try-catch block." nil "try {" \n > _ \n > "} catch(Exception e) {" \n > "e.printStackTrace();" \n > _ > "}" \n) Oliver -- 7 Floréal an 211 de la Révolution Liberté, Egalité, Fraternité!