Fix a use of 'cl-defgeneric'.

* lisp/progmodes/xref.el (xref-match-length): Use 'cl-defmethod'
instead of 'cl-defgeneric'.
This commit is contained in:
Philipp Stephani
2022-03-16 00:10:08 +01:00
parent 06488ded6b
commit 6ed3f04e5a

View File

@@ -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))