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: Tue, 01 Apr 2003 13:41:08 -0500 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <200304011841.h31If8nu021977@rum.cs.yale.edu> References: <200303242005.h2OK57gr013285@rum.cs.yale.edu> <1048554010.20622.66.camel@zircon> <200303311740.h2VHeZNG017518@rum.cs.yale.edu> <1049162293.66437.9.camel@zircon> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1049223499 17872 80.91.224.249 (1 Apr 2003 18:58:19 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 1 Apr 2003 18:58:19 +0000 (UTC) Cc: Stefan Monnier Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Apr 01 20:58:14 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 190Qxa-0004dV-00 for ; Tue, 01 Apr 2003 20:58:14 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 190QyI-000540-00 for ; Tue, 01 Apr 2003 20:58:58 +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 190Qx9-0002jg-01 for emacs-devel@quimby.gnus.org; Tue, 01 Apr 2003 13:57:47 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 190QpA-0006sG-00 for emacs-devel@gnu.org; Tue, 01 Apr 2003 13:49:32 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 190Qmr-0005Gc-00 for emacs-devel@gnu.org; Tue, 01 Apr 2003 13:47:09 -0500 Original-Received: from rum.cs.yale.edu ([128.36.229.169]) by monty-python.gnu.org with esmtp (TLSv1:DES-CBC3-SHA:168) (Exim 4.10.13) id 190Qh5-0002WR-00; Tue, 01 Apr 2003 13:41:11 -0500 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 h31If9Pe021979; Tue, 1 Apr 2003 13:41:09 -0500 Original-Received: (from monnier@localhost) by rum.cs.yale.edu (8.12.8/8.12.8/Submit) id h31If8nu021977; Tue, 1 Apr 2003 13:41:08 -0500 X-Mailer: exmh version 2.4 06/23/2000 with nmh-1.0.4 Original-To: Joe Kelsey Original-cc: occitan@esperanto.org Original-cc: Richard Stallman 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:12810 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:12810 > > > > "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