GNU bug report logs -
#54343
28.0.91; find-function goes to a wrong place for erc
Previous Next
Reported by: Lin Jian <jlin.dev <at> outlook.com>
Date: Fri, 11 Mar 2022 20:19:01 UTC
Severity: normal
Found in version 28.0.91
Fixed in version 29.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
Full log
Message #31 received at 54343 <at> debbugs.gnu.org (full text, mbox):
Lars Ingebrigtsen <larsi <at> gnus.org> writes:
> Hm... it would be nice if it hit the defgeneric instead. But you can
> have a defmethod without a defgeneric...
Right. To my surprise, it seems there are over 300 such instances of the
"without" variant in the Emacs tree.
So, currently, we have
| defgeneric | defmethod | Old | New | Example |
|------------+-----------+-----+-----+--------------------------|
| yes | no | g | g | xref-backend-definitions |
| no | yes | m | m | delete-instance |
| yes | yes | g | m | xref-location-marker |
Whereas you're saying we should want
| yes | yes | g | g | xref-location-marker |
I think simply adding "generic" to this union
(: "cl-def" (| "un" "method" "generic"))
may do the trick. IOW
-cl-\\(?:defun\\|defmethod\\)\\|\
+cl-\\(?:defun\\|defgeneric\\|defmethod\\)\\|\
appears to work in cursory testing.
>> P.S. OK to install #53617 duplicate checks in erc--switch-to-buffer?
>
> Skimming that bug report, it's not clear to me what the issue was there?
Just a benign optimization involving some culling of redundant code in
`erc--switch-to-buffer'. This email contains the latest version, with a
slightly revised commit message:
https://lists.gnu.org/archive/html/bug-gnu-emacs/2022-01/msg02081.html
Thanks.
This bug report was last modified 3 years and 71 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.