GNU bug report logs - #32414
27.0.50; backtrace.el fails to require cl-print

Previous Next

Package: emacs;

Reported by: Pip Cet <pipcet <at> gmail.com>

Date: Fri, 10 Aug 2018 15:39:02 UTC

Severity: normal

Tags: notabug

Found in version 27.0.50

Done: Glenn Morris <rgm <at> gnu.org>

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 32414 in the body.
You can then email your comments to 32414 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#32414; Package emacs. (Fri, 10 Aug 2018 15:39:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Pip Cet <pipcet <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 10 Aug 2018 15:39:02 GMT) Full text and rfc822 format available.

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

From: Pip Cet <pipcet <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: 27.0.50; backtrace.el fails to require cl-print
Date: Fri, 10 Aug 2018 15:37:18 +0000
--text follows this line--

Evaluate

(throw 'a (make-string 4096 ?a))

in the *scratch* buffer.  I expected a backtrace, but got an error
message instead:

backtrace--print-to-string: Symbol’s function definition is void:
cl-print-to-string-with-limit

Upon investigation, it turns out backtrace.el is using code provided by
cl-print, but never requires it.

The obvious fix:

diff --git a/lisp/emacs-lisp/backtrace.el b/lisp/emacs-lisp/backtrace.el
index f13b43b465c..7180b58d1e4 100644
--- a/lisp/emacs-lisp/backtrace.el
+++ b/lisp/emacs-lisp/backtrace.el
@@ -36,6 +36,7 @@
 (eval-when-compile (require 'subr-x))        ; if-let
 (require 'help-mode)     ; Define `help-function-def' button type.
 (require 'lisp-mode)
+(require 'cl-print)

 ;;; Options


works.


In GNU Emacs 27.0.50 (build 19, x86_64-pc-linux-gnu, GTK+ Version 3.22.30)
 of 2018-08-10 built on amygdala
Repository revision: 243b68f73ff7cbb4d89a3f4a15a1cd38cfc14fae
Windowing system distributor 'The X.Org Foundation', version 11.0.11906000
System Description: Debian GNU/Linux buster/sid

Recent messages:
For information about GNU Emacs and the GNU system, type C-h C-a.
Entering debugger...
backtrace--print-to-string: Symbol’s function definition is void:
cl-print-to-string-with-limit
Configured features:
XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND DBUS GSETTINGS NOTIFY ACL
GNUTLS LIBXML2 FREETYPE XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 THREADS
LCMS2

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: Lisp Interaction

Minor modes in effect:
  tooltip-mode: t
  global-eldoc-mode: t
  eldoc-mode: t
  electric-indent-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  auto-composition-mode: t
  auto-encryption-mode: t
  auto-compression-mode: t
  line-number-mode: t
  transient-mark-mode: t

Load-path shadows:
None found.

Features:
(shadow sort mail-extr emacsbug message rmc puny seq byte-opt gv
bytecomp byte-compile cconv dired dired-loaddefs format-spec rfc822 mml
mml-sec password-cache epa derived epg epg-config gnus-util rmail
rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231
mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils debug backtrace help-mode easymenu
cl-loaddefs cl-lib elec-pair time-date mule-util tooltip eldoc electric
uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win
term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode elisp-mode lisp-mode
prog-mode register page menu-bar rfn-eshadow isearch timer select
scroll-bar mouse jit-lock font-lock syntax facemenu font-core
term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang
vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932
hebrew greek romanian slovak czech european ethiopic indian cyrillic
chinese composite charscript charprop case-table epa-hook jka-cmpr-hook
help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs
button faces cus-face macroexp files text-properties overlay sha1 md5
base64 format env code-pages mule custom widget hashtable-print-readable
backquote threads dbusbind inotify lcms2 dynamic-setting
system-font-setting font-render-setting move-toolbar gtk x-toolkit x
multi-tty make-network-process emacs)

Memory information:
((conses 16 98732 9659)
 (symbols 48 20420 1)
 (miscs 40 33 92)
 (strings 32 29574 1922)
 (string-bytes 1 780325)
 (vectors 16 15409)
 (vector-slots 8 513129 12196)
 (floats 8 49 110)
 (intervals 56 209 0)
 (buffers 992 12))




Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#32414; Package emacs. (Fri, 10 Aug 2018 22:56:01 GMT) Full text and rfc822 format available.

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

From: Glenn Morris <rgm <at> gnu.org>
To: Pip Cet <pipcet <at> gmail.com>
Cc: 32414 <at> debbugs.gnu.org
Subject: Re: bug#32414: 27.0.50; backtrace.el fails to require cl-print
Date: Fri, 10 Aug 2018 18:55:31 -0400
Pip Cet wrote:

> (throw 'a (make-string 4096 ?a))
>
> in the *scratch* buffer.  I expected a backtrace, but got an error
> message instead:

Works for me.

> backtrace--print-to-string: Symbol's function definition is void:
> cl-print-to-string-with-limit

cl-print-to-string-with-limit is autoloaded.

Perhaps you should "make bootstrap".





Information forwarded to bug-gnu-emacs <at> gnu.org:
bug#32414; Package emacs. (Sat, 11 Aug 2018 07:40:01 GMT) Full text and rfc822 format available.

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

From: Pip Cet <pipcet <at> gmail.com>
To: rgm <at> gnu.org
Cc: 32414 <at> debbugs.gnu.org
Subject: Re: bug#32414: 27.0.50; backtrace.el fails to require cl-print
Date: Sat, 11 Aug 2018 07:38:18 +0000
Sorry for the noise, that fixed it.

Thanks!
On Fri, Aug 10, 2018 at 10:55 PM Glenn Morris <rgm <at> gnu.org> wrote:
>
> Pip Cet wrote:
>
> > (throw 'a (make-string 4096 ?a))
> >
> > in the *scratch* buffer.  I expected a backtrace, but got an error
> > message instead:
>
> Works for me.
>
> > backtrace--print-to-string: Symbol's function definition is void:
> > cl-print-to-string-with-limit
>
> cl-print-to-string-with-limit is autoloaded.
>
> Perhaps you should "make bootstrap".
>




Added tag(s) notabug. Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sat, 11 Aug 2018 22:48:01 GMT) Full text and rfc822 format available.

bug closed, send any further explanations to 32414 <at> debbugs.gnu.org and Pip Cet <pipcet <at> gmail.com> Request was from Glenn Morris <rgm <at> gnu.org> to control <at> debbugs.gnu.org. (Sat, 11 Aug 2018 22:48:01 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. (Sun, 09 Sep 2018 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 6 years and 344 days ago.

Previous Next


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