GNU bug report logs - #4807
23.1.50; Unhelpful user visible type error in transpose-lines

Previous Next

Package: emacs;

Reported by: Geoff Gole <geoffgole <at> gmail.com>

Date: Mon, 26 Oct 2009 10:35:04 UTC

Severity: normal

Done: Juanma Barranquero <lekktu <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):

From: Geoff Gole <geoffgole <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 23.1.50; Unhelpful user visible type error in transpose-lines
Date: Mon, 26 Oct 2009 18:30:53 +0800
With an argument of 0, transpose-lines will swap the lines that point
and mark are in. In a fresh buffer in which mark has not yet been set
this will result in a type error:

   (wrong-type-argument integer-or-marker-p nil)

This isn't very helpful to the user. exchange-point-and-mark fails in
the same conditions with the much clearer phrasing "No mark set in
this buffer", perhaps transpose-lines should copy that.




This bug report was last modified 15 years and 272 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.