From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stuart D. Herring" Newsgroups: gmane.emacs.devel Subject: Re: transpose-sexps Date: Mon, 8 Jan 2007 10:00:57 -0800 (PST) Message-ID: <39958.128.165.123.18.1168279257.squirrel@webmail.lanl.gov> References: <200701042334.59847.pogonyshev@gmx.net> <200701050002.14238.pogonyshev@gmx.net> <200701050128.42613.pogonyshev@gmx.net> Reply-To: herring@lanl.gov NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1168279283 858 80.91.229.12 (8 Jan 2007 18:01:23 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 8 Jan 2007 18:01:23 +0000 (UTC) Cc: Andreas Schwab , emacs-devel@gnu.org, Paul Pogonyshev Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 08 19:01:21 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1H3yo7-0001zv-OW for ged-emacs-devel@m.gmane.org; Mon, 08 Jan 2007 19:01:16 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H3yo7-0004A1-Cj for ged-emacs-devel@m.gmane.org; Mon, 08 Jan 2007 13:01:15 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H3ynv-00049J-ST for emacs-devel@gnu.org; Mon, 08 Jan 2007 13:01:03 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H3ynu-000491-Tm for emacs-devel@gnu.org; Mon, 08 Jan 2007 13:01:03 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H3ynu-00048y-OW for emacs-devel@gnu.org; Mon, 08 Jan 2007 13:01:02 -0500 Original-Received: from [192.65.95.54] (helo=mailwasher-b.lanl.gov) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H3yns-00042w-Ig; Mon, 08 Jan 2007 13:01:01 -0500 Original-Received: from mailrelay1.lanl.gov (mailrelay1.lanl.gov [128.165.4.101]) by mailwasher-b.lanl.gov (8.13.8/8.13.8/(ccn-5)) with ESMTP id l08I0xuH026199; Mon, 8 Jan 2007 11:00:59 -0700 Original-Received: from webmail1.lanl.gov (webmail1.lanl.gov [128.165.4.106]) by mailrelay1.lanl.gov (8.13.8/8.13.8/(ccn-5)) with ESMTP id l08I0vOZ032088; Mon, 8 Jan 2007 11:00:58 -0700 Original-Received: from webmail1.lanl.gov (localhost.localdomain [127.0.0.1]) by webmail1.lanl.gov (8.12.11.20060308/8.12.11) with ESMTP id l08I0v4j022025; Mon, 8 Jan 2007 11:00:57 -0700 Original-Received: (from apache@localhost) by webmail1.lanl.gov (8.12.11.20060308/8.12.11/Submit) id l08I0v0E022023; Mon, 8 Jan 2007 10:00:57 -0800 X-Authentication-Warning: webmail1.lanl.gov: apache set sender to herring@lanl.gov using -f Original-Received: from 128.165.123.18 (SquirrelMail authenticated user 196434) by webmail.lanl.gov with HTTP; Mon, 8 Jan 2007 10:00:57 -0800 (PST) In-Reply-To: Original-To: "Miles Bader" User-Agent: SquirrelMail/1.4.8-2.el3.7lanl X-Priority: 3 (Normal) Importance: Normal X-PMX-Version: 4.7.1.128075 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:64988 Archived-At: > [Maybe, as Richard mentioned, it should be more friendly by detecting > that it's inside a string and do... something... in that case (what??), > but detecting that is not particularly trivial (and so is not a suitable > change just before a release).] I can answer the "what??": the same thing it does when it's inside a sexp that's a symbol: transpose the string/symbol containing point and the sexp following that. This is the convention also followed by M-t. Sometimes confusion arises because [C-]M-t at the beginning of a word [sexp] exchanges it with the previous one, so that for these commands an object includes the point position that begins the next object. `transpose-sentences' behaves similarly. More confusion: C-x C-t trades current and previous line whether or not point is at the beginning of a line (which is inconsistent either in direction or in the defined extent of each line), and `transpose-paragraphs' trades current paragraph with the next one even if point is just at its beginning, but trades previous and next if point is between two. Davis -- This product is sold by volume, not by mass. If it appears too dense or too sparse, it is because mass-energy conversion has occurred during shipping.