From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: Suggestion for C-t (transpose-chars) Date: Fri, 20 Jul 2007 15:14:46 -0400 Message-ID: References: <87lkdbl8az.fsf@debby.local.net> <871wf2lxb2.fsf@debby.local.net> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1184958910 10069 80.91.229.12 (20 Jul 2007 19:15:10 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 20 Jul 2007 19:15:10 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Dieter Wilhelm Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Jul 20 21:15:06 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 1IBxwJ-0005om-Ij for ged-emacs-devel@m.gmane.org; Fri, 20 Jul 2007 21:14:59 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IBxwI-00012O-VJ for ged-emacs-devel@m.gmane.org; Fri, 20 Jul 2007 15:14:58 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IBxw9-00010h-Iw for emacs-devel@gnu.org; Fri, 20 Jul 2007 15:14:49 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IBxw9-00010V-1j for emacs-devel@gnu.org; Fri, 20 Jul 2007 15:14:49 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IBxw8-00010S-UK for emacs-devel@gnu.org; Fri, 20 Jul 2007 15:14:48 -0400 Original-Received: from tomts25.bellnexxia.net ([209.226.175.188] helo=tomts25-srv.bellnexxia.net) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IBxw7-0003Sj-JV; Fri, 20 Jul 2007 15:14:47 -0400 Original-Received: from pastel.home ([74.12.208.65]) by tomts25-srv.bellnexxia.net (InterMail vM.5.01.06.13 201-253-122-130-113-20050324) with ESMTP id <20070720191446.NBVS25739.tomts25-srv.bellnexxia.net@pastel.home>; Fri, 20 Jul 2007 15:14:46 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 666578012; Fri, 20 Jul 2007 15:14:46 -0400 (EDT) In-Reply-To: <871wf2lxb2.fsf@debby.local.net> (Dieter Wilhelm's message of "Fri\, 20 Jul 2007 20\:55\:29 +0200") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1.50 (gnu/linux) X-detected-kernel: Solaris 8 (1) 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:75197 Archived-At: >>> With a prefix argument ARG C-t allows to *drag* a character ARG >>> characters away. Even though the respective code is impressively >>> elegant I think it would be more helpful when one could *transpose* >>> two characters ARG characters away from point! >> >> This behavior is so old in Emacs that I'd suggest to write a new >> command that does what you want, and leave the original one alone. >> Interested users could then rebind C-t to run that new command. > Fair enough, I'll do that. Would you suggest to make it public on the > Emacs Wiki? > But old code does not equal used code, I really like to argue that > above behaviour would make Emacs an (infinitesimal) bit better ;-). I value also the consistency with the other transposition commands (like M-t and C-M-t), so we should also consider whether your suggested behavior is better for those cases or not. This said, I have no opinion on which behavior is better. Stefan