GNU bug report logs -
#28899
26.0.90; describe-function on class contructor gives make-text-button: Unknown button type ‘cl-type-definition’
Previous Next
Reported by: Noam Postavsky <npostavs <at> users.sourceforge.net>
Date: Thu, 19 Oct 2017 11:56:02 UTC
Severity: minor
Tags: fixed
Found in version 26.0.90
Fixed in version 26.1
Done: Noam Postavsky <npostavs <at> users.sourceforge.net>
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 28899 in the body.
You can then email your comments to 28899 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#28899
; Package
emacs
.
(Thu, 19 Oct 2017 11:56:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Noam Postavsky <npostavs <at> users.sourceforge.net>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Thu, 19 Oct 2017 11:56:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
Severity: minor
emacs -Q
M-x toggle-debug-on-error
<f1> f chart
Debugger entered--Lisp error: (error "Unknown button type ‘cl-type-definition’")
signal(error ("Unknown button type ‘cl-type-definition’"))
error("Unknown button type `%s'" cl-type-definition)
make-text-button(46 54 type cl-type-definition help-args (chart "/home/npostavs/src/emacs/emacs-26/lisp/emacs-lisp/chart.el" define-type))
apply(make-text-button 46 54 (type cl-type-definition help-args (chart "/home/npostavs/src/emacs/emacs-26/lisp/emacs-lisp/chart.el" define-type)))
insert-text-button("chart.el" type cl-type-definition help-args (chart "/home/npostavs/src/emacs/emacs-26/lisp/emacs-lisp/chart.el" define-type))
help-insert-xref-button("chart.el" cl-type-definition chart "/home/npostavs/src/emacs/emacs-26/lisp/emacs-lisp/chart.el" define-type)
eieio-help-constructor(chart)
run-hook-with-args(eieio-help-constructor chart)
describe-function-1(chart)
describe-function(chart)
funcall-interactively(describe-function chart)
call-interactively(describe-function nil nil)
command-execute(describe-function)
It doesn't happen in Emacs 25, because loading eieio loads cl-extra (via
bytecomp, refer [1: acc443ad03] and [2: b6a57fb80c]).
A simple way to fix is to add (require 'cl-extra) in
eieio-help-constructor. What's really needed is a way of autoloading
button definitions.
[1: acc443ad03]: 2014-10-23 09:31:20 -0400
* lisp/emacs-lisp/bytecomp.el: Require cl-extra. * lisp/emacs-lisp/cl-extra.el: Add missing provide.
https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=acc443ad03bf46aa49c87bc93f2df836bedede94
[2: b6a57fb80c]: 2017-04-18 20:52:22 -0400
Tweak bytecomp's loading of cl-extra
https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=b6a57fb80c49bcd9163966d612671a5256f3a1a8
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#28899
; Package
emacs
.
(Wed, 31 Jan 2018 03:39:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 28899 <at> debbugs.gnu.org (full text, mbox):
tags 28899 fixed
close 28899 26.1
quit
Noam Postavsky <npostavs <at> users.sourceforge.net> writes:
> A simple way to fix is to add (require 'cl-extra) in
> eieio-help-constructor. What's really needed is a way of autoloading
> button definitions.
Actually, ';;;###autoload' on the define button macro works normally,
but not in this case due to bootstrapping circularity. I just added the
require in emacs-26.
[1: 607cc4e24a]: 2018-01-30 22:14:02 -0500
Define cl-type-definition button type as needed (Bug#28899)
https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=607cc4e24a08cfe4a14db9d1387dfb23ba94044c
Added tag(s) fixed.
Request was from
Noam Postavsky <npostavs <at> users.sourceforge.net>
to
control <at> debbugs.gnu.org
.
(Wed, 31 Jan 2018 03:39:03 GMT)
Full text and
rfc822 format available.
bug marked as fixed in version 26.1, send any further explanations to
28899 <at> debbugs.gnu.org and Noam Postavsky <npostavs <at> users.sourceforge.net>
Request was from
Noam Postavsky <npostavs <at> users.sourceforge.net>
to
control <at> debbugs.gnu.org
.
(Wed, 31 Jan 2018 03:39:03 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, 28 Feb 2018 12:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 7 years and 112 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.