From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: why (error "Transposed region has length 0") ? Date: Sun, 9 Jun 2002 09:19:14 -0600 (MDT) Sender: emacs-devel-admin@gnu.org Message-ID: <200206091519.g59FJE200266@aztec.santafe.edu> References: <20020608130129.GA705978@bruegel.RZ.TU-Ilmenau.DE> Reply-To: rms@gnu.org NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1023636134 15446 127.0.0.1 (9 Jun 2002 15:22:14 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 9 Jun 2002 15:22:14 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17H4WE-000411-00 for ; Sun, 09 Jun 2002 17:22:14 +0200 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17H4sd-0004WQ-00 for ; Sun, 09 Jun 2002 17:45:23 +0200 Original-Received: from localhost ([127.0.0.1] helo=fencepost.gnu.org) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17H4VK-0002h6-00; Sun, 09 Jun 2002 11:21:18 -0400 Original-Received: from pele.santafe.edu ([192.12.12.119]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17H4TL-0002Qx-00; Sun, 09 Jun 2002 11:19:15 -0400 Original-Received: from aztec.santafe.edu (aztec [192.12.12.49]) by pele.santafe.edu (8.11.6+Sun/8.11.6) with ESMTP id g59FJEQ20332; Sun, 9 Jun 2002 09:19:14 -0600 (MDT) Original-Received: (from rms@localhost) by aztec.santafe.edu (8.10.2+Sun/8.9.3) id g59FJE200266; Sun, 9 Jun 2002 09:19:14 -0600 (MDT) X-Authentication-Warning: aztec.santafe.edu: rms set sender to rms@aztec using -f Original-To: paul.stoeber@stud.tu-ilmenau.de In-Reply-To: <20020608130129.GA705978@bruegel.RZ.TU-Ilmenau.DE> (message from Paul Stoeber on Sat, 8 Jun 2002 15:01:29 +0200) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:4666 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:4666 The story of transpose-regions is peculiar. It was meant to be used in transpose-subr, but we never put it into service there because nobody was ever convinced that it really worked correctly in all cases (it is rather a complex thing to check) and nobody felt like debugging whatever problems it might have. The function is used in just one Emacs package, hanoi.el. I geuss that has given it a certain amount of testing, but not very broadly. The main motivation for transpose-regions was to reduce memory usage, sinceit avoids copying both regions into strings. Nowadays that optimization may not be worth the trouble. We could simply delete the current transpose-region and use 6 lines of Lisp code (see transpose-subr-1) instead.