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.

Full log


View this message in rfc822 format

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: 20644 <at> debbugs.gnu.org
Subject: bug#20644: 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).




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

Previous Next


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