GNU bug report logs - #20644
25.0.50; Re-evaluating cl-defmethod form doesn't update the behavior

Previous Next

Package: emacs;

Reported by: Dmitry Gutov <dgutov <at> yandex.ru>

Date: Sun, 24 May 2015 15:21:03 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.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 20644 in the body.
You can then email your comments to 20644 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#20644; Package emacs. (Sun, 24 May 2015 15:21:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to Dmitry Gutov <dgutov <at> yandex.ru>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sun, 24 May 2015 15:21:03 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.0.50; Re-evaluating cl-defmethod form doesn't update the behavior
Date: Sun, 24 May 2015 18:20:05 +0300
1. Evaluate:

(cl-defgeneric cl--generic-1 (x y))
(cl-defmethod cl--generic-1 ((x t) y) (cons x y))

2. (cl--generic-1 'a 'b) evaluates to '(a . b).

3. Change the defmethod form to return 1, press C-M-x.

4. (cl--generic-1 'a 'b) still evaluates to '(a . b).




Reply sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
You have taken responsibility. (Mon, 25 May 2015 14:55:02 GMT) Full text and rfc822 format available.

Notification sent to Dmitry Gutov <dgutov <at> yandex.ru>:
bug acknowledged by developer. (Mon, 25 May 2015 14:55:03 GMT) Full text and rfc822 format available.

Message #10 received at 20644-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: Dmitry Gutov <dgutov <at> yandex.ru>
Cc: 20644-done <at> debbugs.gnu.org
Subject: Re: bug#20644: 25.0.50;
 Re-evaluating cl-defmethod form doesn't update the behavior
Date: Mon, 25 May 2015 10:54:29 -0400
> (cl-defgeneric cl--generic-1 (x y))
> (cl-defmethod cl--generic-1 ((x t) y) (cons x y))
> 2. (cl--generic-1 'a 'b) evaluates to '(a . b).
> 3. Change the defmethod form to return 1, press C-M-x.
> 4. (cl--generic-1 'a 'b) still evaluates to '(a . b).

Thanks.  Should be fixed now.


        Stefan




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Tue, 23 Jun 2015 11:24:07 GMT) Full text and rfc822 format available.

This bug report was last modified 10 years and 55 days ago.

Previous Next


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