unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Geoff Gole <geoffgole@gmail.com>
To: bug-gnu-emacs@gnu.org
Subject: bug#4807: 23.1.50; Unhelpful user visible type error in transpose-lines
Date: Mon, 26 Oct 2009 18:30:53 +0800	[thread overview]
Message-ID: <f5bc73230910260330r10573ffdhc75f310808ac831c@mail.gmail.com> (raw)

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.






             reply	other threads:[~2009-10-26 10:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <f7ccd24b0910260759o2382557cye7e11e4b8e27b2f@mail.gmail.com>
2009-10-26 10:30 ` Geoff Gole [this message]
2009-10-26 15:10   ` bug#4807: marked as done (23.1.50; Unhelpful user visible type error in transpose-lines) Emacs bug Tracking System

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=f5bc73230910260330r10573ffdhc75f310808ac831c@mail.gmail.com \
    --to=geoffgole@gmail.com \
    --cc=4807@emacsbugs.donarmstrong.com \
    --cc=bug-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).