help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem positioning cursor


From: Oliver Scholz
Subject: Re: Problem positioning cursor
Date: Sat, 26 Apr 2003 17:24:53 +0200
User-agent: Gnus/5.090019 (Oort Gnus v0.19) Emacs/21.3.50 (windows-nt)

address@hidden (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é!


reply via email to

[Prev in Thread] Current Thread [Next in Thread]