From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "Stefan Monnier" Newsgroups: gmane.emacs.devel Subject: Re: skeleton.el _ versus @ Date: Fri, 11 Apr 2003 19:59:51 -0400 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200304112359.h3BNxpw5012335@rum.cs.yale.edu> References: <200303242005.h2OK57gr013285@rum.cs.yale.edu> <1048554010.20622.66.camel@zircon> <200303311740.h2VHeZNG017518@rum.cs.yale.edu> <1049242082.66437.15.camel@zircon> <200304020020.h320K4de023432@rum.cs.yale.edu> <1049245381.66437.33.camel@zircon> <20030403084549.2a5aca76.occitan@esperanto.org> <200304091626.h39GQlwc000430@rum.cs.yale.edu> <1050020736.419.11.camel@zircon> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1050106151 10351 80.91.224.249 (12 Apr 2003 00:09:11 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 12 Apr 2003 00:09:11 +0000 (UTC) Cc: monnier+gnu/emacs@rum.cs.yale.edu Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Sat Apr 12 02:09:09 2003 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1948Zx-0002gp-00 for ; Sat, 12 Apr 2003 02:09:09 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 1948fe-0002Ct-00 for ; Sat, 12 Apr 2003 02:15:02 +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 1948Vu-0006x4-04 for emacs-devel@quimby.gnus.org; Fri, 11 Apr 2003 20:04:58 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 1948VI-0006X1-00 for emacs-devel@gnu.org; Fri, 11 Apr 2003 20:04:20 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 1948T6-0004zp-00 for emacs-devel@gnu.org; Fri, 11 Apr 2003 20:02:05 -0400 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 1948Qy-00049n-00; Fri, 11 Apr 2003 19:59:52 -0400 Original-Received: from rum.cs.yale.edu (localhost [127.0.0.1]) by rum.cs.yale.edu (8.12.8/8.12.8) with ESMTP id h3BNxpx6012337; Fri, 11 Apr 2003 19:59:51 -0400 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.12.8/8.12.8/Submit) id h3BNxpw5012335; Fri, 11 Apr 2003 19:59:51 -0400 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Richard Stallman Original-cc: Joe Kelsey Original-cc: dapfy@t-online.de Original-cc: emacs-devel@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:13176 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:13176 > 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). 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