unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#19916: 24.4; rmail-summary-next-msg declares argument incorrectly
@ 2015-02-21 18:17 Florian v. Savigny
  2015-02-24  7:44 ` Glenn Morris
  0 siblings, 1 reply; 2+ messages in thread
From: Florian v. Savigny @ 2015-02-21 18:17 UTC (permalink / raw)
  To: 19916



As I am fairly certain that this is a bug in the source code, I am not including any of the automatic information on my system which M-x report-emacs-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 source
		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 argument.




Best regards,

Florian v. Savigny





^ permalink raw reply	[flat|nested] 2+ messages in thread

* bug#19916: 24.4; rmail-summary-next-msg declares argument incorrectly
  2015-02-21 18:17 bug#19916: 24.4; rmail-summary-next-msg declares argument incorrectly Florian v. Savigny
@ 2015-02-24  7:44 ` Glenn Morris
  0 siblings, 0 replies; 2+ messages in thread
From: Glenn Morris @ 2015-02-24  7:44 UTC (permalink / raw)
  To: 19916-done

Version: 25.1

Thanks; fixed.





^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-02-24  7:44 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-21 18:17 bug#19916: 24.4; rmail-summary-next-msg declares argument incorrectly Florian v. Savigny
2015-02-24  7:44 ` Glenn Morris

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