From unknown Sat Aug 16 23:38:00 2025 X-Loop: owner@emacsbugs.donarmstrong.com Subject: bug#4807: 23.1.50; Unhelpful user visible type error in transpose-lines Reply-To: Geoff Gole , 4807@debbugs.gnu.org Resent-From: Geoff Gole Resent-To: bug-submit-list@lists.donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Mon, 26 Oct 2009 10:35:04 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-Emacs-PR-Message: report 4807 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Received: via spool by submit@emacsbugs.donarmstrong.com id=B.125655306312807 (code B ref -1); Mon, 26 Oct 2009 10:35:04 +0000 Received: (at submit) by emacsbugs.donarmstrong.com; 26 Oct 2009 10:31:03 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.7 required=4.0 tests=AWL autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 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 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 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 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 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 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= MIME-Version: 1.0 Received: by 10.101.80.14 with SMTP id h14mr958658anl.129.1256553053941; Mon, 26 Oct 2009 03:30:53 -0700 (PDT) Date: Mon, 26 Oct 2009 18:30:53 +0800 Message-ID: From: Geoff Gole To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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. From unknown Sat Aug 16 23:38:00 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.427 (Entity 5.427) X-Loop: owner@emacsbugs.donarmstrong.com From: help-debbugs@gnu.org (Emacs bug Tracking System) To: Geoff Gole Subject: bug#4807 closed by Juanma Barranquero (Re: bug#4807: 23.1.50; Unhelpful user visible type error in transpose-lines) Message-ID: References: X-Emacs-PR-Message: they-closed 4807 X-Emacs-PR-Package: emacs Reply-To: 4807@debbugs.gnu.org Date: Mon, 26 Oct 2009 15:10:07 +0000 Content-Type: multipart/mixed; boundary="----------=_1256569807-23086-1" This is a multi-part message in MIME format... ------------=_1256569807-23086-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" 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 . 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 by replying to this email. --=20 4807: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D4807 Emacs Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1256569807-23086-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 4807-done) by emacsbugs.donarmstrong.com; 26 Oct 2009 15:00:07 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.0 required=4.0 tests=AWL,GMAIL,HAS_BUG_NUMBER autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 Received: from mail-ew0-f225.google.com (mail-ew0-f225.google.com [209.85.219.225]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id n9QF050N020948 for <4807-done@emacsbugs.donarmstrong.com>; Mon, 26 Oct 2009 08:00:07 -0700 Received: by ewy25 with SMTP id 25so11404192ewy.45 for <4807-done@emacsbugs.donarmstrong.com>; Mon, 26 Oct 2009 08:00:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:cc:content-type; bh=65ekxO0PtvlQDEtwv+uJDnFxFwI3LdQFEtKxcM1ajCc=; b=Dw0U2sQDHUgkHH4mKxQGDm6DQxdSSdc1q8DovP/Q1MH4FRZAYMYMO8ZGmOnnzvHUfH n3XAjXnd3xMMv1HifnAoioLeplF8gx731lzc5HkzqsJWXe0Hspsji8B/yfRqN7voQQTi QjU+2UXDyuxPwQj/jyRj8Pd/ZMb0EQ8jyy3iE= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type; b=LGbVCISsaCiKR/puDSjCc7NKv/FS1++PSnJgTiPVkP9gPW4rObRlRWHJ1wmeRIrpAc Ph5jncpxt894y9WCSmgfTuq28gI/by7bRukAgt20arloD9OU9R7eRfi9KYAf1bbeRLbn g5CYKNJVl9W2apxU9OPVp1yFQJwpTIUJVJ84E= MIME-Version: 1.0 Received: by 10.211.146.10 with SMTP id y10mr1644508ebn.32.1256569199435; Mon, 26 Oct 2009 07:59:59 -0700 (PDT) In-Reply-To: References: From: Juanma Barranquero Date: Mon, 26 Oct 2009 15:59:39 +0100 Message-ID: Subject: Re: bug#4807: 23.1.50; Unhelpful user visible type error in transpose-lines To: Geoff Gole Cc: 4807-done@debbugs.gnu.org Content-Type: text/plain; charset=UTF-8 On Mon, Oct 26, 2009 at 11:30, Geoff Gole 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 ------------=_1256569807-23086-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by emacsbugs.donarmstrong.com; 26 Oct 2009 10:31:03 +0000 X-Spam-Checker-Version: SpamAssassin 3.2.5-bugs.debian.org_2005_01_02 (2008-06-10) on rzlab.ucr.edu X-Spam-Level: X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. X-Spam-Status: No, score=-2.7 required=4.0 tests=AWL autolearn=ham version=3.2.5-bugs.debian.org_2005_01_02 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 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 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 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 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 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= MIME-Version: 1.0 Received: by 10.101.80.14 with SMTP id h14mr958658anl.129.1256553053941; Mon, 26 Oct 2009 03:30:53 -0700 (PDT) Date: Mon, 26 Oct 2009 18:30:53 +0800 Message-ID: Subject: 23.1.50; Unhelpful user visible type error in transpose-lines From: Geoff Gole To: bug-gnu-emacs@gnu.org Content-Type: text/plain; charset=ISO-8859-1 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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. ------------=_1256569807-23086-1--