diff options
| author | Philipp Stephani | 2022-03-16 00:10:08 +0100 |
|---|---|---|
| committer | Philipp Stephani | 2022-03-17 12:58:52 +0100 |
| commit | 6ed3f04e5a3c8aee40a26805bb00cdd070eba319 (patch) | |
| tree | adb8ea400cd5a2b0ac84ddc64d6838b1b8c2fdb1 | |
| parent | 06488ded6b9d8b4971e2e6c5b98b4fab6fe2d167 (diff) | |
| download | emacs-6ed3f04e5a3c8aee40a26805bb00cdd070eba319.tar.gz emacs-6ed3f04e5a3c8aee40a26805bb00cdd070eba319.zip | |
Fix a use of 'cl-defgeneric'.
* lisp/progmodes/xref.el (xref-match-length): Use 'cl-defmethod'
instead of 'cl-defgeneric'.
| -rw-r--r-- | lisp/progmodes/xref.el | 2 |
1 files changed, 1 insertions, 1 deletions
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.") | |||
| 227 | "A match xref item describes a search result." | 227 | "A match xref item describes a search result." |
| 228 | length) | 228 | length) |
| 229 | 229 | ||
| 230 | (cl-defgeneric xref-match-length ((item xref-match-item)) | 230 | (cl-defmethod xref-match-length ((item xref-match-item)) |
| 231 | "Return the length of the match." | 231 | "Return the length of the match." |
| 232 | (xref-match-item-length item)) | 232 | (xref-match-item-length item)) |
| 233 | 233 | ||