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: Tue, 04 May 2004 22:32:32 +0300 Organization: JURTA Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <87d65k0z3d.fsf@mail.jurta.org> References: <87brlb1840.fsf@mail.jurta.org> <87smeka7aj.fsf@mail.jurta.org> <4096A229.4050301@yahoo.com> <87ekq0yc2z.fsf@mail.jurta.org> <4097E14B.3080908@yahoo.com> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1083700193 30134 80.91.224.253 (4 May 2004 19:49:53 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 4 May 2004 19:49:53 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Tue May 04 21:49:37 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 1BL5v6-00029Y-00 for ; Tue, 04 May 2004 21:49:36 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1BL5v6-0000KM-00 for ; Tue, 04 May 2004 21:49:36 +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 1BL5uk-0008Ei-MO for emacs-devel@quimby.gnus.org; Tue, 04 May 2004 15:49:14 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BL5sq-00078C-I2 for emacs-devel@gnu.org; Tue, 04 May 2004 15:47:16 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BL5s9-0006m2-LR for emacs-devel@gnu.org; Tue, 04 May 2004 15:47:04 -0400 Original-Received: from [66.33.219.6] (helo=knife.dreamhost.com) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BL5no-00049o-1b for emacs-devel@gnu.org; Tue, 04 May 2004 15:42:04 -0400 Original-Received: from mail.jurta.org (80-235-34-218-dsl.mus.estpak.ee [80.235.34.218]) by knife.dreamhost.com (Postfix) with ESMTP id D1B6AE4105; Tue, 4 May 2004 12:42:00 -0700 (PDT) Original-To: Kevin Rodgers In-Reply-To: <4097E14B.3080908@yahoo.com> (Kevin Rodgers's message of "Tue, 04 May 2004 12:30:35 -0600") 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:22735 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:22735 Kevin Rodgers writes: > Juri Linkov wrote: > > Kevin Rodgers writes: > > >Juri Linkov wrote: > > > > The command `promote-list' is basically opposite to `insert-parentheses', > > > > so another possible name is `remove-parentheses', but it is misleading, > > > > because it removes more than only enclosing parentheses. > > > > > > I don't find "delete" or "remove" misleading at all. > > > > "delete" or "remove" would not be misleading if they correctly > > indicated what is removed, but the name may become too long, > > e.g. "remove-parentheses-and-non-selected-text". > > Right. But remove- would be bad because no other commands use that > prefix. I think delete- is better. > > How about delete-surrounding-sexps, delete-sibling-sexps, or > just-one-sexp (in analogy to just-one-space)? Good names, but not completely true. Actually, this function deletes all the text inside the sexp out of one level of parentheses, except sexps selected by the argument or active region in transient-mark-mode. So deleted text may contain comments as well. > > Perhaps `rise-up-sexp' is a better name. > > I think "raise [up]" is the correct English verb (because it is > transitive, whereas "rise [up]" is intransitive). But the Emacs command > should be named after its surface effect anyway, not its deep > (structural) effect. Or are you proposing that insert-parentheses > should be named demote-sexp? :-) No, it should be named lower-sexp :-) -- Juri Linkov http://www.jurta.org/emacs/