From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: schule@fsavigny.de (Florian v. Savigny) Newsgroups: gmane.emacs.bugs Subject: bug#19916: 24.4; rmail-summary-next-msg declares argument incorrectly Date: Sat, 21 Feb 2015 19:17:56 +0100 Message-ID: <851tljuo17.fsf@bertrandrussell.Speedport_W_723V_1_36_000> NNTP-Posting-Host: plane.gmane.org Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1424551285 10414 80.91.229.3 (21 Feb 2015 20:41:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 21 Feb 2015 20:41:25 +0000 (UTC) To: 19916@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sat Feb 21 21:41:13 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YPGrP-0004uT-FL for geb-bug-gnu-emacs@m.gmane.org; Sat, 21 Feb 2015 21:41:11 +0100 Original-Received: from localhost ([::1]:37341 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPGrO-0002mF-T8 for geb-bug-gnu-emacs@m.gmane.org; Sat, 21 Feb 2015 15:41:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49430) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPGrK-0002lI-U4 for bug-gnu-emacs@gnu.org; Sat, 21 Feb 2015 15:41:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YPGrH-00061l-LY for bug-gnu-emacs@gnu.org; Sat, 21 Feb 2015 15:41:06 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:59160) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPGrH-00061Z-IG for bug-gnu-emacs@gnu.org; Sat, 21 Feb 2015 15:41:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1YPGrG-0000Hh-S8 for bug-gnu-emacs@gnu.org; Sat, 21 Feb 2015 15:41:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: schule@fsavigny.de (Florian v. Savigny) Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 21 Feb 2015 20:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 19916 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14245512421055 (code B ref -1); Sat, 21 Feb 2015 20:41:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 21 Feb 2015 20:40:42 +0000 Original-Received: from localhost ([127.0.0.1]:50400 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YPGqv-0000Gw-82 for submit@debbugs.gnu.org; Sat, 21 Feb 2015 15:40:41 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:59607) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1YPEd5-0004tp-Jl for submit@debbugs.gnu.org; Sat, 21 Feb 2015 13:18:16 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YPEd0-000530-D8 for submit@debbugs.gnu.org; Sat, 21 Feb 2015 13:18:15 -0500 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:50784) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPEd0-00052v-BE for submit@debbugs.gnu.org; Sat, 21 Feb 2015 13:18:10 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33080) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPEcv-00085o-BS for bug-gnu-emacs@gnu.org; Sat, 21 Feb 2015 13:18:10 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YPEcq-00051V-1Q for bug-gnu-emacs@gnu.org; Sat, 21 Feb 2015 13:18:05 -0500 Original-Received: from srv4.ns-domain-hosting.de ([178.63.89.203]:60710) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YPEcp-000515-Qq for bug-gnu-emacs@gnu.org; Sat, 21 Feb 2015 13:17:59 -0500 X-No-Relay: not in my network Original-Received: from bertrandrussell.Speedport_W_723V_1_36_000 (p4FECD829.dip0.t-ipconnect.de [79.236.216.41]) by srv4.ns-domain-hosting.de (Postfix) with ESMTPSA id 792CE18641D for ; Sat, 21 Feb 2015 19:17:58 +0100 (CET) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Mailman-Approved-At: Sat, 21 Feb 2015 15:40:39 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:99684 Archived-At: As I am fairly certain that this is a bug in the source code, I am not in= cluding any of the automatic information on my system which M-x report-em= acs-bug produces. Description of the bug: rmail-summary-next-msg declares its attribute NUMBER as &optional, but does not treat it like that, at least when called non-interactively. Reproducible: always How: Calling (rmail-summary-next-msg) non-interactively. Undesired behaviour: Throws the following exception: and: Wrong type argument: number-or-marker-p, nil This is an obscure error if you have called (rmail-summary-next-message) in accordance with the documentation. Explanation: This can easily be tracked to the following line in the sour= ce code for the function, where it expects NUMBER to be non-nil: (and (> number 0) (end-of-line)) ;; line 3 after the docstring Line 827 in the source file in the following version of rmailsum.el: ;; Copyright (C) 1985, 1993-1996, 2000-2014 Free Software Foundation, Workaround: Calling (rmail-summary-next-msg 1) instead of using no argume= nt. Best regards, Florian v. Savigny