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


View this message in rfc822 format

From: help-debbugs <at> gnu.org (Emacs bug Tracking System)
To: Geoff Gole <geoffgole <at> gmail.com>
Subject: bug#4807 closed by Juanma Barranquero <lekktu <at> gmail.com> (Re:
 bug#4807: 23.1.50; Unhelpful user visible type error in  transpose-lines)
Date: Mon, 26 Oct 2009 15:10:07 +0000
[Message part 1 (text/plain, inline)]
This is an automatic notification regarding your bug report
which was filed against the emacs package:

#4807: 23.1.50; Unhelpful user visible type error in transpose-lines

It has been closed by Juanma Barranquero <lekktu <at> gmail.com>.

Their explanation is attached below along with your original report.
If this explanation is unsatisfactory and you have not received a
better one in a separate message then please contact Juanma Barranquero <lekktu <at> gmail.com> by
replying to this email.


-- 
4807: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=4807
Emacs Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Juanma Barranquero <lekktu <at> gmail.com>
To: Geoff Gole <geoffgole <at> gmail.com>
Cc: 4807-done <at> debbugs.gnu.org
Subject: Re: bug#4807: 23.1.50; Unhelpful user visible type error in 
	transpose-lines
Date: Mon, 26 Oct 2009 15:59:39 +0100
On Mon, Oct 26, 2009 at 11:30, Geoff Gole <geoffgole <at> gmail.com> wrote:

> 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.

Fixed, thanks.

    Juanma
[Message part 3 (message/rfc822, inline)]
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 271 days ago.

Previous Next


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