all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Joe Kelsey <joe@zircon.seattle.wa.us>
Cc: emacs-devel@gnu.org
Subject: Re: skeleton.el _ versus @
Date: 11 Apr 2003 17:11:15 -0700	[thread overview]
Message-ID: <1050106275.419.18.camel@zircon> (raw)
In-Reply-To: <200304112359.h3BNxpw5012335@rum.cs.yale.edu>

On Fri, 2003-04-11 at 16:59, Stefan Monnier wrote:
> >     According to Stefan, he put it in Emacs 21.1.
> > 
> > That isn't too long ago, so I don't think it isn't too late
> > to change this back.
> > 
> > Stefan, could you give me a brief self-contained description of the
> > two behaviors, written for someone who doesn't use skeleton?
> 
> A simple skeleton could look like
> 
>        ... "(" _ ")" ...
> 
> If a region is active when executing the skeleton, it will end
> up wrapping the region in parentheses. Otherwise, it will insert
> "()" and point point in the middle.
> 
> Skeleton also has a special @ which pushes the corresponding position
> onto a list of positions which elisp code can then use as it
> sees fit (I don't actually know of any uses, so I'll let other
> people describe what these are might be used for).

mmm-mode uses @ in skeletons to mark special positions around the
skeleton for use afterwards.  An mmm-mode skeleton looks like

... @ "front-tag" @ "other stuff" _ "other stuff" @ back tag" @

mmm-mode expects point to end up at the _.  Simply because Stefan could
not imagine what @ was used for, he discarded its behavior and ruined
all of the existing mmm-mode skeletons.


> Before my patch, the behavior was that after insertion of
> a skeleton, point would be placed at "the first occurrence of _
> or at the end of the skeleton".
> 
> What my patch changed is that point after insertion of a skeleton
> is now placed at "the first occurrence of _ or @
> or at the end of the skeleton".
> 
> 
> 	Stefan
> 

  reply	other threads:[~2003-04-12  0:11 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-03-24 19:27 [joe@zircon.seattle.wa.us: skeleton.el _ versus @] Richard Stallman
2003-03-24 20:05 ` skeleton.el _ versus @ Stefan Monnier
2003-03-25  1:00   ` Joe Kelsey
2003-03-30 18:51     ` Joe Kelsey
2003-03-31 17:40     ` Stefan Monnier
2003-04-01  1:58       ` Joe Kelsey
2003-04-01  7:25         ` Miles Bader
2003-04-01 18:41         ` Stefan Monnier
2003-04-02  0:08       ` Joe Kelsey
2003-04-02  0:20         ` Stefan Monnier
2003-04-02  1:03           ` Joe Kelsey
2003-04-02  1:17             ` Thien-Thi Nguyen
2003-04-02  1:33             ` Stefan Monnier
2003-04-03  0:16               ` Joe Kelsey
2003-04-03  0:28                 ` Miles Bader
2003-04-03  6:45             ` Daniel Pfeiffer
2003-04-09 16:26               ` Stefan Monnier
2003-04-10  0:00                 ` Joe Kelsey
2003-04-10 22:47                   ` Richard Stallman
2003-04-11  0:25                     ` Joe Kelsey
2003-04-11 23:45                       ` Richard Stallman
2003-04-11 23:59                         ` Stefan Monnier
2003-04-12  0:11                           ` Joe Kelsey [this message]
2003-04-12  8:51                             ` Kai Großjohann
2003-04-13 11:23                           ` Richard Stallman
2003-04-13 16:41                             ` Stefan Monnier
2003-04-13 18:54                               ` Kai Großjohann
2003-04-13 19:11                             ` Joe Kelsey
2003-04-20 22:50                             ` skeleton.el _ versus @, a new patch Joe Kelsey
2003-04-21 13:11                               ` Stefan Monnier
2003-04-22  0:32                                 ` Joe Kelsey
2003-04-22 13:31                                   ` Stefan Monnier
2003-04-23  0:27                                     ` Joe Kelsey
2003-04-22  0:45                               ` Richard Stallman
2003-04-22  1:30                                 ` Joe Kelsey
2003-04-24  1:50                                   ` Richard Stallman
2003-04-24 15:59                                     ` Joe Kelsey
2003-04-26  2:31                                       ` Richard Stallman
2003-04-28 21:51                                         ` Stefan Monnier
2003-04-29 19:29                                           ` Richard Stallman
2003-05-18  1:31                                             ` Joe Kelsey
2003-04-02 19:26         ` skeleton.el _ versus @ Richard Stallman
  -- strict thread matches above, loose matches on Subject: below --
2003-03-23 23:55 Joe Kelsey

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1050106275.419.18.camel@zircon \
    --to=joe@zircon.seattle.wa.us \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.