From: Vitalie Spinu <spinuvit@gmail.com>
To: 20420@debbugs.gnu.org
Subject: bug#20420: 25.0.50; eieio methods with optional arguments now fail
Date: Fri, 24 Apr 2015 21:28:12 +0200 [thread overview]
Message-ID: <87d22tpbqr.fsf@gmail.com> (raw)
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
next reply other threads:[~2015-04-24 19:28 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-24 19:28 Vitalie Spinu [this message]
2015-04-24 20:42 ` bug#20420: 25.0.50; eieio methods with optional arguments now fail 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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87d22tpbqr.fsf@gmail.com \
--to=spinuvit@gmail.com \
--cc=20420@debbugs.gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).