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:
@@ -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))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user