Subject: Re: bug#42671: 28.0.50; Edebugging secondary CL methods generates duplicate symbols
From: Philipp Stephani <[email-masked]>
To: [email-masked]
Date: Sun, 2 Aug 2020 16:26:43 +0200
List-Id: <debbugs-submit.debbugs.gnu.org>

Am So., 2. Aug. 2020 um 13:06 Uhr schrieb Philipp Stephani
<[email-masked]>:
>
>
> Create a file /tmp/defmethod.el:
>
> $ cat /tmp/defmethod.el
> (cl-defmethod foo ((_ number)))
> (cl-defmethod foo :around ((_ number)))
>
> These two methods have identical signatures and names, yet they are
> different because the second one is a secondary method.  If you then
> instrument (C-u C-M-x) both of them, Edebug will generate the duplicate
> symbol `foo ((_ number))'.  A symptom is the message
>
> Edebug: foo ((_ number)) [2 times]
>
> appearing twice in the *Messages* buffer.  This is a problem when using
> Edebug for code coverage, as the coverage reporting for one of them will
> be wrong.  Edebug already attempts to include the signature in the
> generated symbol; it should also include all qualifiers.

Fixed with commit e6eb554b95.