From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Paul Stoeber Newsgroups: gmane.emacs.bugs Subject: why (error "Transposed region has length 0") ? Date: Sat, 8 Jun 2002 15:01:29 +0200 Sender: bug-gnu-emacs-admin@gnu.org Message-ID: <20020608130129.GA705978@bruegel.RZ.TU-Ilmenau.DE> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1023541401 9607 127.0.0.1 (8 Jun 2002 13:03:21 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sat, 8 Jun 2002 13:03:21 +0000 (UTC) Return-path: Original-Received: from fencepost.gnu.org ([199.232.76.164]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 17GfsH-0002Uq-00 for ; Sat, 08 Jun 2002 15:03:21 +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 17Gfs2-0007fd-00; Sat, 08 Jun 2002 09:03:06 -0400 Original-Received: from bruegel.rz.tu-ilmenau.de ([141.24.190.37]) by fencepost.gnu.org with esmtp (Exim 3.34 #1 (Debian)) id 17Gfpy-0007Ut-00 for ; Sat, 08 Jun 2002 09:00:58 -0400 Original-Received: (from past-in@localhost) by bruegel.rz.tu-ilmenau.de (SGI-8.9.3/8.9.3) id PAA13098 for bug-gnu-emacs@gnu.org; Sat, 8 Jun 2002 15:01:31 +0200 (MDT) Original-To: bug-gnu-emacs@gnu.org Content-Disposition: inline User-Agent: Mutt/1.3.28i Errors-To: bug-gnu-emacs-admin@gnu.org X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.0.9 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Bug reports for GNU Emacs, the Swiss army knife of text editors List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.bugs:1880 X-Report-Spam: http://spam.gmane.org/gmane.emacs.bugs:1880 In GNU Emacs 21.2.1 (powerpc-unknown-linux-gnu) of 2002-05-26 on xyz configured using `configure --prefix=/e --without-x' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: C locale-coding-system: nil default-enable-multibyte-characters: nil When transpose-regions is called with one region having zero length (i.e. the arguments satisfy (or (= STARTR1 ENDR1) (= STARTR2 ENDR2))), it says `(error "Transposed region has length 0")'. The notion of transposition works naturally for empty regions too. If both regions are empty, it's a no-op. If only one region is empty, it's relocation of the other region to the point designated by the empty one. Why the restriction?