unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: David PONCE <david.ponce@wanadoo.fr>
Cc: emacs-devel@gnu.org
Subject: Re: [Stephen.Berman@gmx.net: Emacs hangs while edebugging recentf.el]
Date: Mon, 28 Nov 2005 09:19:10 +0100 (CET)	[thread overview]
Message-ID: <28655567.1133165950588.JavaMail.www@wwinf1534> (raw)

Hi,

> It could be a bug in prin1-to-string.  What is the value
> of print-circle at that time?

It is t.  It is let-bound by the function `edebug-safe-prin1-to-string'
that wraps the built-in `prin1-to-string'.  Here are the relevant parts
of edebug code:

...

(defcustom edebug-print-length 50
  "*Default value of `print-length' for printing results in Edebug."
  :type 'integer
  :group 'edebug)
(defcustom edebug-print-level 50
  "*Default value of `print-level' for printing results in Edebug."
  :type 'integer
  :group 'edebug)
(defcustom edebug-print-circle t
  "*Default value of `print-circle' for printing results in Edebug."
  :type 'boolean
  :group 'edebug)

...

;; Define here in case they are not already defined.
(defvar print-level nil)
(defvar print-circle nil)
(defvar print-readably) ;; defined by lemacs
;; Alternatively, we could change the definition of
;; edebug-safe-prin1-to-string to only use these if defined.

(defun edebug-safe-prin1-to-string (value)
  (let ((print-escape-newlines t)
	(print-length (or edebug-print-length print-length))
	(print-level (or edebug-print-level print-level))
	(print-circle (or edebug-print-circle print-circle))
	(print-readably nil)) ;; lemacs uses this.
    (edebug-prin1-to-string value)))

...

`edebug-prin1-to-string' is an alias for `prin1-to-string'.

Sincerely,
David

             reply	other threads:[~2005-11-28  8:19 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-28  8:19 David PONCE [this message]
2005-11-29  3:11 ` [Stephen.Berman@gmx.net: Emacs hangs while edebugging recentf.el] Richard M. Stallman
  -- strict thread matches above, loose matches on Subject: below --
2005-11-21  9:34 David PONCE
2005-11-28  4:47 ` Richard M. Stallman
2005-12-06  1:42 ` Richard M. Stallman
2005-12-13 22:27   ` Chong Yidong
2005-12-14 20:04     ` Richard M. Stallman

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=28655567.1133165950588.JavaMail.www@wwinf1534 \
    --to=david.ponce@wanadoo.fr \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).