GNU bug report logs - #21422
25.0.50; apropos-library on libraries using cl-def{generic,method} fails

Previous Next

Package: emacs;

Reported by: Mark Oteiza <mvoteiza <at> udel.edu>

Date: Sat, 5 Sep 2015 05:00:04 UTC

Severity: normal

Found in version 25.0.50

Fixed in version 25.1

Done: Mark Oteiza <mvoteiza <at> udel.edu>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 21422 in the body.
You can then email your comments to 21422 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-gnu-emacs <at> gnu.org:
bug#21422; Package emacs. (Sat, 05 Sep 2015 05:00:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Mark Oteiza <mvoteiza <at> udel.edu>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Sat, 05 Sep 2015 05:00:05 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Mark Oteiza <mvoteiza <at> udel.edu>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.0.50;
 apropos-library on libraries using cl-def{generic,method} fails
Date: Sat, 05 Sep 2015 00:58:59 -0400
From emacs -Q:

M-x apropos-library RET cl-generic RET

Debugger entered--Lisp error: (wrong-type-argument symbolp (cl-generic-generalizers (head eql)))
  apropos-symbols-internal((cl--generic-typeof-generalizer cl--generic-typeof-types cl--generic-struct-generalizer cl--generic-struct-specializers cl--generic$
  apropos-library("cl-generic")
  funcall-interactively(apropos-library "cl-generic")
  call-interactively(apropos-library record nil)
  command-execute(apropos-library record)
  execute-extended-command(nil "apropos-library" nil)
  funcall-interactively(execute-extended-command nil "apropos-library" nil)
  call-interactively(execute-extended-command nil nil)
  command-execute(execute-extended-command)

I came across this because doing M-. on a function defined with
cl-defgeneric and cl-defmethod doesn't go to the definition, just the
top of the library, so apropos-library was my backup. I don't know if
the xref behavior should be a separate report.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21422; Package emacs. (Thu, 07 Jan 2016 19:07:01 GMT) Full text and rfc822 format available.

Message #8 received at 21422 <at> debbugs.gnu.org (full text, mbox):

From: Mark Oteiza <mvoteiza <at> udel.edu>
To: 21422 <at> debbugs.gnu.org
Subject: Re: 25.0.50; apropos-library on libraries using
 cl-def{generic,method} fails
Date: Thu, 7 Jan 2016 14:06:40 -0500
On 05/09/15 at 12:58am, Mark Oteiza wrote:
> 
> From emacs -Q:
> 
> M-x apropos-library RET cl-generic RET
> 
> Debugger entered--Lisp error: (wrong-type-argument symbolp (cl-generic-generalizers (head eql)))
>   apropos-symbols-internal((cl--generic-typeof-generalizer cl--generic-typeof-types cl--generic-struct-generalizer cl--generic-struct-specializers cl--generic$
>   apropos-library("cl-generic")
>   funcall-interactively(apropos-library "cl-generic")
>   call-interactively(apropos-library record nil)
>   command-execute(apropos-library record)
>   execute-extended-command(nil "apropos-library" nil)
>   funcall-interactively(execute-extended-command nil "apropos-library" nil)
>   call-interactively(execute-extended-command nil nil)
>   command-execute(execute-extended-command)
> 
> I came across this because doing M-. on a function defined with
> cl-defgeneric and cl-defmethod doesn't go to the definition, just the
> top of the library, so apropos-library was my backup. I don't know if
> the xref behavior should be a separate report.

cl-generic is used pretty widely, and apropos-library fails on libraries
using it. Could this be marked to be fixed before release?




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21422; Package emacs. (Thu, 07 Jan 2016 20:07:01 GMT) Full text and rfc822 format available.

Message #11 received at 21422 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Mark Oteiza <mvoteiza <at> udel.edu>
Cc: 21422 <at> debbugs.gnu.org
Subject: Re: bug#21422: 25.0.50;
 apropos-library on libraries using cl-def{generic,method} fails
Date: Thu, 07 Jan 2016 22:06:19 +0200
> Date: Thu, 7 Jan 2016 14:06:40 -0500
> From: Mark Oteiza <mvoteiza <at> udel.edu>
> 
> >   apropos-library("cl-generic")
> >   funcall-interactively(apropos-library "cl-generic")
> >   call-interactively(apropos-library record nil)
> >   command-execute(apropos-library record)
> >   execute-extended-command(nil "apropos-library" nil)
> >   funcall-interactively(execute-extended-command nil "apropos-library" nil)
> >   call-interactively(execute-extended-command nil nil)
> >   command-execute(execute-extended-command)
> > 
> > I came across this because doing M-. on a function defined with
> > cl-defgeneric and cl-defmethod doesn't go to the definition, just the
> > top of the library, so apropos-library was my backup. I don't know if
> > the xref behavior should be a separate report.
> 
> cl-generic is used pretty widely, and apropos-library fails on libraries
> using it. Could this be marked to be fixed before release?

IMO, we should only do that if it's practical, i.e. if there's someone
who would work on fixing that.

I'd also suggest to have bug#22294 be the release blocker, if we have
a volunteer to work on it.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21422; Package emacs. (Thu, 07 Jan 2016 23:36:02 GMT) Full text and rfc822 format available.

Message #14 received at 21422 <at> debbugs.gnu.org (full text, mbox):

From: Dmitry Gutov <dgutov <at> yandex.ru>
To: Eli Zaretskii <eliz <at> gnu.org>, Mark Oteiza <mvoteiza <at> udel.edu>
Cc: 21422 <at> debbugs.gnu.org
Subject: Re: bug#21422: 25.0.50; apropos-library on libraries using
 cl-def{generic,method} fails
Date: Fri, 8 Jan 2016 02:35:27 +0300
On 01/07/2016 11:06 PM, Eli Zaretskii wrote:

>>> I came across this because doing M-. on a function defined with
>>> cl-defgeneric and cl-defmethod doesn't go to the definition, just the
>>> top of the library, so apropos-library was my backup. I don't know if
>>> the xref behavior should be a separate report.

FWIW, this has worked for some time now.

M-x describe-function is another way to find the generic definitions.

> IMO, we should only do that if it's practical, i.e. if there's someone
> who would work on fixing that.
>
> I'd also suggest to have bug#22294 be the release blocker, if we have
> a volunteer to work on it.

(Not a volunteer on either.) I've pushed a minor fix for this bug, to 
avoid the error. The description buffer now shows duplicates, though, 
instead of proper info about specialized methods.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21422; Package emacs. (Fri, 08 Jan 2016 01:28:02 GMT) Full text and rfc822 format available.

Message #17 received at 21422 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Stefan Monnier <monnier <at> iro.umontreal.ca>
Cc: Mark Oteiza <mvoteiza <at> udel.edu>, Eli Zaretskii <eliz <at> gnu.org>,
 21422 <at> debbugs.gnu.org, Dmitry Gutov <dgutov <at> yandex.ru>
Subject: Re: bug#21422: 25.0.50;
 apropos-library on libraries using cl-def{generic,method} fails
Date: Thu, 07 Jan 2016 20:27:49 -0500
The root cause is that 24b7f77 puts non-standard entries in load-history
("Record manually in the load-history").

If that's really the way it's going to be, it needs an "incompatible
change" NEWS entry and doc updates (the format of a load-history entry
is documented in the elisp manual). These new cl-defmethod entries don't
match the documented format.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21422; Package emacs. (Fri, 08 Jan 2016 01:29:02 GMT) Full text and rfc822 format available.

Message #20 received at 21422 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: Mark Oteiza <mvoteiza <at> udel.edu>, 21422 <at> debbugs.gnu.org
Subject: Re: bug#21422: 25.0.50;
 apropos-library on libraries using cl-def{generic,method} fails
Date: Thu, 07 Jan 2016 20:27:57 -0500
Eli Zaretskii wrote:

>> cl-generic is used pretty widely, and apropos-library fails on libraries
>> using it. Could this be marked to be fixed before release?
>
> IMO, we should only do that if it's practical, i.e. if there's someone
> who would work on fixing that.

I don't think that's the right approach.

One purpose of marking things as release blockers is to encourage
people to work on them. The list is not set in stone. I expect that
close to the release, some will remain unfixed and will be
intentionally ignored/unblocked. The decision about what to mark as a
blocker shouldn't be based on manpower (at this stage), it should be
based on what the ideal 25.1 should look like.

> I'd also suggest to have bug#22294 be the release blocker, [...]

You don't need to suggest it, please just do it.
It would be great if the list of blocking bugs became something other
than just my own opinion.




Added indication that bug 21422 blocks19759 Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Fri, 08 Jan 2016 01:30:01 GMT) Full text and rfc822 format available.

Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21422; Package emacs. (Fri, 08 Jan 2016 09:37:02 GMT) Full text and rfc822 format available.

Message #25 received at 21422 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Glenn Morris <rgm <at> gnu.org>
Cc: mvoteiza <at> udel.edu, 21422 <at> debbugs.gnu.org
Subject: Re: bug#21422: 25.0.50;
 apropos-library on libraries using cl-def{generic,method} fails
Date: Fri, 08 Jan 2016 11:36:40 +0200
> From: Glenn Morris <rgm <at> gnu.org>
> Cc: Mark Oteiza <mvoteiza <at> udel.edu>,  21422 <at> debbugs.gnu.org
> Date: Thu, 07 Jan 2016 20:27:57 -0500
> 
> Eli Zaretskii wrote:
> 
> >> cl-generic is used pretty widely, and apropos-library fails on libraries
> >> using it. Could this be marked to be fixed before release?
> >
> > IMO, we should only do that if it's practical, i.e. if there's someone
> > who would work on fixing that.
> 
> I don't think that's the right approach.
> 
> One purpose of marking things as release blockers is to encourage
> people to work on them.

Sure, provided that there's someone who can be encouraged.  Otherwise,
it's futile, isn't it?

But I didn't write what you cite above as a general proposal.  I wrote
that specifically about this kind of bugs: I find it hard to believe
that we would consider such bugs critical, i.e. something with which
it would be unthinkable to release Emacs.  You need to read what I
wrote keeping this in mind, and without generalizing it to any other
kind of bugs, particularly those that are really critical ones.

> > I'd also suggest to have bug#22294 be the release blocker, [...]
> 
> You don't need to suggest it, please just do it.

If #21422 is marked as a blocker, I will do the same for #22294.  They
are in the same boat: extremely inconvenient, but not really critical.

> It would be great if the list of blocking bugs became something other
> than just my own opinion.

It stopped being just your own option long ago.  I'm using it, for
one.

Thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21422; Package emacs. (Fri, 08 Jan 2016 12:15:02 GMT) Full text and rfc822 format available.

Message #28 received at 21422 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Glenn Morris <rgm <at> gnu.org>
Cc: mvoteiza <at> udel.edu, monnier <at> iro.umontreal.ca, 21422 <at> debbugs.gnu.org,
 dgutov <at> yandex.ru
Subject: Re: bug#21422: 25.0.50;
 apropos-library on libraries using cl-def{generic,method} fails
Date: Fri, 08 Jan 2016 14:14:40 +0200
> From: Glenn Morris <rgm <at> gnu.org>
> Cc: Eli Zaretskii <eliz <at> gnu.org>,  Mark Oteiza <mvoteiza <at> udel.edu>,  21422 <at> debbugs.gnu.org, Dmitry Gutov <dgutov <at> yandex.ru>
> Date: Thu, 07 Jan 2016 20:27:49 -0500
> 
> 
> The root cause is that 24b7f77 puts non-standard entries in load-history
> ("Record manually in the load-history").
> 
> If that's really the way it's going to be, it needs an "incompatible
> change" NEWS entry and doc updates (the format of a load-history entry
> is documented in the elisp manual). These new cl-defmethod entries don't
> match the documented format.

Could you please update the documentation according to the above?
Thanks.




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21422; Package emacs. (Sat, 09 Jan 2016 00:45:02 GMT) Full text and rfc822 format available.

Message #31 received at 21422 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: mvoteiza <at> udel.edu, monnier <at> iro.umontreal.ca, 21422 <at> debbugs.gnu.org,
 dgutov <at> yandex.ru
Subject: Re: bug#21422: 25.0.50;
 apropos-library on libraries using cl-def{generic,method} fails
Date: Fri, 08 Jan 2016 19:44:35 -0500
Eli Zaretskii wrote:

> Could you please update the documentation according to the above?

Sorry, no. (I've had enough of documenting other people's work for them.)




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21422; Package emacs. (Sat, 09 Jan 2016 00:45:02 GMT) Full text and rfc822 format available.

Message #34 received at 21422 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: Eli Zaretskii <eliz <at> gnu.org>
Cc: 21422 <at> debbugs.gnu.org
Subject: Re: bug#21422: 25.0.50;
 apropos-library on libraries using cl-def{generic,method} fails
Date: Fri, 08 Jan 2016 19:44:46 -0500
Eli Zaretskii wrote:

>> It would be great if the list of blocking bugs became something other
>> than just my own opinion.
>
> It stopped being just your own option long ago.  I'm using it, for
> one.

That's nice to hear, although when I look at http://debbugs.gnu.org/19759
(which is coming up on its one-year anniversary), all changes are mine,
except one, by you, a week ago. So we either aren't talking about the
same thing, or have very different definitions of "long ago".




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#21422; Package emacs. (Sat, 09 Jan 2016 07:06:02 GMT) Full text and rfc822 format available.

Message #37 received at 21422 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Glenn Morris <rgm <at> gnu.org>
Cc: 21422 <at> debbugs.gnu.org
Subject: Re: bug#21422: 25.0.50;
 apropos-library on libraries using cl-def{generic,method} fails
Date: Sat, 09 Jan 2016 09:05:35 +0200
> From: Glenn Morris <rgm <at> gnu.org>
> Cc: 21422 <at> debbugs.gnu.org
> Date: Fri, 08 Jan 2016 19:44:46 -0500
> 
> Eli Zaretskii wrote:
> 
> >> It would be great if the list of blocking bugs became something other
> >> than just my own opinion.
> >
> > It stopped being just your own option long ago.  I'm using it, for
> > one.
> 
> That's nice to hear, although when I look at http://debbugs.gnu.org/19759
> (which is coming up on its one-year anniversary), all changes are mine,
> except one, by you, a week ago. So we either aren't talking about the
> same thing, or have very different definitions of "long ago".

Why do you dismiss that single use by me?  It clearly says that I use
the facility when I think it's appropriate, doesn't it?




Removed indication that bug 21422 blocks Request was from Dmitry Gutov <dgutov <at> yandex.ru> to control <at> debbugs.gnu.org. (Sat, 14 May 2016 22:58:01 GMT) Full text and rfc822 format available.

bug marked as fixed in version 25.1, send any further explanations to 21422 <at> debbugs.gnu.org and Mark Oteiza <mvoteiza <at> udel.edu> Request was from Mark Oteiza <mvoteiza <at> udel.edu> to control <at> debbugs.gnu.org. (Tue, 26 Sep 2017 13:11:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 25 Oct 2017 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 7 years and 49 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.