From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Geoff Gole Newsgroups: gmane.emacs.bugs Subject: bug#4807: 23.1.50; Unhelpful user visible type error in transpose-lines Date: Mon, 26 Oct 2009 18:30:53 +0800 Message-ID: Reply-To: Geoff Gole , 4807@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1256554482 2190 80.91.229.12 (26 Oct 2009 10:54:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 26 Oct 2009 10:54:42 +0000 (UTC) To: bug-gnu-emacs@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Oct 26 11:54:35 2009 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1N2N8n-0006Jm-KK for geb-bug-gnu-emacs@m.gmane.org; Mon, 26 Oct 2009 11:49:37 +0100 Original-Received: from localhost ([127.0.0.1]:39000 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N2N8l-00031o-M7 for geb-bug-gnu-emacs@m.gmane.org; Mon, 26 Oct 2009 06:49:31 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N2N6i-00022h-AN for bug-gnu-emacs@gnu.org; Mon, 26 Oct 2009 06:47:24 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N2N6d-00020W-8d for bug-gnu-emacs@gnu.org; Mon, 26 Oct 2009 06:47:23 -0400 Original-Received: from [199.232.76.173] (port=54354 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N2N6c-00020A-Hh for bug-gnu-emacs@gnu.org; Mon, 26 Oct 2009 06:47:18 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:35516) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N2N6b-0006eI-VI for bug-gnu-emacs@gnu.org; Mon, 26 Oct 2009 06:47:18 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9QAlD4l015034; Mon, 26 Oct 2009 03:47:13 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id n9QAZ43I012980; Mon, 26 Oct 2009 03:35:04 -0700 Resent-Date: Mon, 26 Oct 2009 03:35:04 -0700 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: Geoff Gole Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Mon, 26 Oct 2009 10:35:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: report 4807 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.125655306312807 (code B ref -1); Mon, 26 Oct 2009 10:35:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 26 Oct 2009 10:31:03 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9QAV1G9012804 for ; Mon, 26 Oct 2009 03:31:02 -0700 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N2Mqq-0004DP-MB for bug-gnu-emacs@gnu.org; Mon, 26 Oct 2009 06:31:00 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N2Mql-0004Bf-F5 for bug-gnu-emacs@gnu.org; Mon, 26 Oct 2009 06:30:59 -0400 Original-Received: from [199.232.76.173] (port=42435 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N2Mql-0004Bc-9v for bug-gnu-emacs@gnu.org; Mon, 26 Oct 2009 06:30:55 -0400 Original-Received: from mail-gx0-f224.google.com ([209.85.217.224]:49641) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1N2Mqk-0004BM-UY for bug-gnu-emacs@gnu.org; Mon, 26 Oct 2009 06:30:55 -0400 Original-Received: by gxk24 with SMTP id 24so31402827gxk.6 for ; Mon, 26 Oct 2009 03:30:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=wKz1TxkZmS//Drr2u6qXMQdrn5Y+kS75+/94MIHl0IQ=; b=Yrcdg4etmogcmJ6+25ZLH4/Wg06f8Qx/Ro1Cm2xJ4iVDgjp/MBG36izJ3dVlTqOA/V b2RCMcvqprSWsXo1aHZ0l+JtLXyBLNmmzFYpAligSuWpw5mv7Zp4syKNeFP5iBFoo1fT 4Vz+MIobczp0M1Pm+uaCxuANz2C/Fj//yDrvQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=BawdOmdHAT1B1JBXgkNUugLrbrH43XxeIb6PauOs8HkNcIk73FZbJPQgku/g/rHDfH E7VWv71mUl5JBPXyP5Fw78U/Vq28dw8M7r7CQXtZnQiuWZ0balqQIVPWBh1ULyNolvDy aS3MbQm5/3JyieFYlln8ep0xPkX/k2MzGs3c8= Original-Received: by 10.101.80.14 with SMTP id h14mr958658anl.129.1256553053941; Mon, 26 Oct 2009 03:30:53 -0700 (PDT) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Mon, 26 Oct 2009 06:47:23 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:32239 Archived-At: 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.