emacs-devel
[Top][All Lists]
Advanced

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

Re: skeleton.el _ versus @


From: Stefan Monnier
Subject: Re: skeleton.el _ versus @
Date: Tue, 01 Apr 2003 13:41:08 -0500

> > > >         "fun f (" @ ")" \n "{" \n _ \n "}"
> > > >
> > > > such that selecting a region and calling the skeleton will
> > > > put the region in the body of the function (because of the _)
> > > > and point will be put at the right place for you to enter the
> > > > arglist (because of the @).
> > > 
> > > This is using skeletons in "region" mode.  I am not changing region
> > > mode, or at least I can modify the @ behavior so that it works in region
> > > mode this way.
> > 
> > But I also want point to end up at the "args" position in simple
> > insertion which your patch would break.
> 
> If you want the point to end at args in "simple insertion", put the _
> between the parens.

No, because region insertion won't work right.

> Your skeleton is a "region-insertion", not a "simple insertion".
> 
> You cannot have it both ways.

I do have it both ways right now.


        Stefan






reply via email to

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