bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#20644: 25.0.50; Re-evaluating cl-defmethod form doesn't update the b


From: Dmitry Gutov
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).





reply via email to

[Prev in Thread] Current Thread [Next in Thread]