GNU bug report logs - #20420
25.0.50; eieio methods with optional arguments now fail

Previous Next

Package: emacs;

Reported by: Vitalie Spinu <spinuvit <at> gmail.com>

Date: Fri, 24 Apr 2015 19:29:01 UTC

Severity: normal

Found in version 25.0.50

Done: Stefan Monnier <monnier <at> IRO.UMontreal.CA>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#20420: closed (25.0.50; eieio methods with optional arguments
 now fail)
Date: Sun, 15 May 2016 01:55:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Sat, 14 May 2016 21:55:16 -0400
with message-id <jwvvb2g13x5.fsf-monnier+bug#20420 <at> gnu.org>
and subject line Re: bug#20420: 25.0.50; eieio methods with optional arguments now fail
has caused the debbugs.gnu.org bug report #20420,
regarding 25.0.50; eieio methods with optional arguments now fail
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
20420: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=20420
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Vitalie Spinu <spinuvit <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.0.50; eieio methods with optional arguments now fail
Date: Fri, 24 Apr 2015 21:28:12 +0200
Hi.

First declare:

   (defclass cc-A ()
     ((a :initform "foo")))
   
   (defgeneric xx (&optional a b))
   (defmethod xx ()
     (message "default"))


And eval (xx). It works as expected.

Now add

   (defmethod xx ((obj cc-A) &optional b)
     (message "called on cc-A object"))

and eval (xx) again. It throws (wrong-number-of-arguments (1 . &rest) 0).

It used to work in emacs 24.


Thanks,

  Vitalie







In GNU Emacs 25.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.12.2)
 of 2015-04-13 on galago
Repository revision: 30bcb238c3a53f777c2a4952f51a68df6272cff4
Windowing system distributor `The X.Org Foundation', version 11.0.11600000
System Description:	Ubuntu 14.10

Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS
NOTIFY LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB

Important settings:
  value of $LC_TIME: en_DK.UTF-8
  value of $LANG: en_DK.UTF-8
  locale-coding-system: utf-8-unix


[Message part 3 (message/rfc822, inline)]
From: Stefan Monnier <monnier <at> IRO.UMontreal.CA>
To: 20420-done <at> debbugs.gnu.org
Cc: Dmitry Gutov <dgutov <at> yandex.ru>
Subject: Re: bug#20420: 25.0.50; eieio methods with optional arguments now fail
Date: Sat, 14 May 2016 21:55:16 -0400
> Is there something left to fix in this bug? If not, please close it.

Done, thanks,


        Stefan




This bug report was last modified 9 years and 62 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.