From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Juri Linkov Newsgroups: gmane.emacs.devel Subject: Re: Insert character pairs Date: Fri, 30 Apr 2004 03:48:48 +0300 Organization: JURTA Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <87ad0ukxxm.fsf@mail.jurta.org> References: <87brlb1840.fsf@mail.jurta.org> <87vfjiakte.fsf@mail.jurta.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1083292853 26053 80.91.224.253 (30 Apr 2004 02:40:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 30 Apr 2004 02:40:53 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Fri Apr 30 04:40:44 2004 Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BJNxE-0008Sb-00 for ; Fri, 30 Apr 2004 04:40:44 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BJNxE-0001mI-00 for ; Fri, 30 Apr 2004 04:40:44 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BJNvo-0006yv-4Q for emacs-devel@quimby.gnus.org; Thu, 29 Apr 2004 22:39:16 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BJNtO-0006Nd-V2 for emacs-devel@gnu.org; Thu, 29 Apr 2004 22:36:46 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BJNso-0006Ce-2N for emacs-devel@gnu.org; Thu, 29 Apr 2004 22:36:41 -0400 Original-Received: from [66.33.219.6] (helo=knife.dreamhost.com) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BJNsn-0006CE-7F for emacs-devel@gnu.org; Thu, 29 Apr 2004 22:36:09 -0400 Original-Received: from mail.jurta.org (80-235-32-226-dsl.mus.estpak.ee [80.235.32.226]) by knife.dreamhost.com (Postfix) with ESMTP id 1A92EE402F; Thu, 29 Apr 2004 19:36:07 -0700 (PDT) Original-To: Stefan Monnier In-Reply-To: (Stefan Monnier's message of "29 Apr 2004 12:57:39 -0400") User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:22400 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:22400 Stefan Monnier writes: >>>> The following patch generalizes the function `insert-parentheses' >>> Why not start from skeleton-insert-paren-maybe ? >> It doesn't work with key modifiers. > > That why I said "start" rather than "use". I know it requires changes. I am not sure that the meaning of arguments of `skeleton-insert-paren-maybe' should be redefined. It clearly declares its purpose by the first line of docstring: "Insert the character you type ARG times." So, perhaps, a new function could be created with a different purpose. But then why create a new function if the existing `open-parenthesis' can be easily improved with retaining backward compatibility? -- Juri Linkov http://www.jurta.org/emacs/