unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#20420: 25.0.50; eieio methods with optional arguments now fail
@ 2015-04-24 19:28 Vitalie Spinu
  2015-04-24 20:42 ` Stefan Monnier
  0 siblings, 1 reply; 12+ messages in thread
From: Vitalie Spinu @ 2015-04-24 19:28 UTC (permalink / raw)
  To: 20420


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





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

end of thread, other threads:[~2016-05-15  1:55 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-24 19:28 bug#20420: 25.0.50; eieio methods with optional arguments now fail Vitalie Spinu
2015-04-24 20:42 ` Stefan Monnier
2015-04-24 23:35   ` Vitalie Spinu
2015-04-25 14:41     ` Stefan Monnier
2015-04-25 18:25       ` Vitalie Spinu
2015-04-26  4:02         ` Stefan Monnier
2015-04-26 12:00           ` Vitalie Spinu
2015-04-27  4:43             ` Stefan Monnier
2015-05-12  4:19           ` Stefan Monnier
2015-05-12 14:23             ` Vitalie Spinu
2016-05-14 23:01               ` Dmitry Gutov
2016-05-15  1:55                 ` Stefan Monnier

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