bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

why (error "Transposed region has length 0") ?


From: Paul Stoeber
Subject: why (error "Transposed region has length 0") ?
Date: Sat, 8 Jun 2002 15:01:29 +0200
User-agent: Mutt/1.3.28i

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?



reply via email to

[Prev in Thread] Current Thread [Next in Thread]