From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Joe Kelsey Newsgroups: gmane.emacs.devel Subject: Re: skeleton.el _ versus @ Date: 31 Mar 2003 17:58:13 -0800 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <1049162293.66437.9.camel@zircon> References: <200303242005.h2OK57gr013285@rum.cs.yale.edu> <1048554010.20622.66.camel@zircon> <200303311740.h2VHeZNG017518@rum.cs.yale.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Trace: main.gmane.org 1049162372 27222 80.91.224.249 (1 Apr 2003 01:59:32 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 1 Apr 2003 01:59:32 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue Apr 01 03:59:30 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 190B3i-00074v-00 for ; Tue, 01 Apr 2003 03:59:30 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 190B45-0003Zq-00 for ; Tue, 01 Apr 2003 03:59:53 +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 190B37-0004Hg-06 for emacs-devel@quimby.gnus.org; Mon, 31 Mar 2003 20:58:53 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 190B2l-00045m-00 for emacs-devel@gnu.org; Mon, 31 Mar 2003 20:58:31 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 190B2h-0003wW-00 for emacs-devel@gnu.org; Mon, 31 Mar 2003 20:58:28 -0500 Original-Received: from dsl231-043-165.sea1.dsl.speakeasy.net ([216.231.43.165] helo=zircon.seattle.wa.us) by monty-python.gnu.org with smtp (Exim 4.10.13) id 190B2W-0003jX-00 for emacs-devel@gnu.org; Mon, 31 Mar 2003 20:58:16 -0500 Original-Received: (qmail 66804 invoked from network); 1 Apr 2003 01:58:13 -0000 Original-Received: from localhost (HELO ?127.0.0.1?) (127.0.0.1) by localhost with SMTP; 1 Apr 2003 01:58:13 -0000 Original-To: Stefan Monnier In-Reply-To: <200303311740.h2VHeZNG017518@rum.cs.yale.edu> X-Mailer: Ximian Evolution 1.2.2 Original-cc: Richard Stallman Original-cc: occitan@esperanto.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:12788 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:12788 On Mon, 2003-03-31 at 09:40, Stefan Monnier wrote: > > > The current code allows the following trick: > > > > > > "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. Your skeleton is a "region-insertion", not a "simple insertion". You cannot have it both ways. > I hate such modal interfaces, sorry. I am sorry. Get over it. Modal interfaces are a good thing. I feel it is now incumbent upon you to propose an alternative patch. /Joe