From: Philipp Stephani Date: Tue, 15 Mar 2022 23:10:08 +0000 (+0100) Subject: Fix a use of 'cl-defgeneric'. X-Git-Tag: emacs-29.0.90~1931^2~1067 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6ed3f04e5a3c8aee40a26805bb00cdd070eba319;p=emacs.git Fix a use of 'cl-defgeneric'. * lisp/progmodes/xref.el (xref-match-length): Use 'cl-defmethod' instead of 'cl-defgeneric'. --- diff --git a/lisp/progmodes/xref.el b/lisp/progmodes/xref.el index a5e6edf951d..5d1ba4eaf55 100644 --- a/lisp/progmodes/xref.el +++ b/lisp/progmodes/xref.el @@ -227,7 +227,7 @@ This behavior is new in Emacs 28.") "A match xref item describes a search result." length) -(cl-defgeneric xref-match-length ((item xref-match-item)) +(cl-defmethod xref-match-length ((item xref-match-item)) "Return the length of the match." (xref-match-item-length item))