From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David PONCE Newsgroups: gmane.emacs.devel Subject: Re: [Stephen.Berman@gmx.net: Emacs hangs while edebugging recentf.el] Date: Mon, 28 Nov 2005 09:19:10 +0100 (CET) Message-ID: <28655567.1133165950588.JavaMail.www@wwinf1534> Reply-To: david.ponce@wanadoo.fr NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1133166111 27798 80.91.229.2 (28 Nov 2005 08:21:51 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 28 Nov 2005 08:21:51 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Nov 28 09:21:42 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1EgeGI-0001L8-A5 for ged-emacs-devel@m.gmane.org; Mon, 28 Nov 2005 09:21:22 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EgeGH-0003c5-8c for ged-emacs-devel@m.gmane.org; Mon, 28 Nov 2005 03:21:21 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1EgeEJ-0002xf-2l for emacs-devel@gnu.org; Mon, 28 Nov 2005 03:19:19 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1EgeEG-0002uY-AF for emacs-devel@gnu.org; Mon, 28 Nov 2005 03:19:16 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EgeED-0002tZ-En for emacs-devel@gnu.org; Mon, 28 Nov 2005 03:19:14 -0500 Original-Received: from [193.252.23.84] (helo=smtp15.wanadoo.fr) by monty-python.gnu.org with esmtp (Exim 4.34) id 1EgeED-0007I8-Au for emacs-devel@gnu.org; Mon, 28 Nov 2005 03:19:13 -0500 Original-Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf1503.wanadoo.fr (SMTP Server) with ESMTP id 9B4C6700008F for ; Mon, 28 Nov 2005 09:19:10 +0100 (CET) Original-Received: from wwinf1534 (wwinf1534 [172.22.146.108]) by mwinf1503.wanadoo.fr (SMTP Server) with ESMTP id 915AC7000087; Mon, 28 Nov 2005 09:19:10 +0100 (CET) X-ME-UUID: 20051128081910595.915AC7000087@mwinf1503.wanadoo.fr Original-To: rms@gnu.org X-Originating-IP: [205.167.7.18] X-Wum-Nature: EMAIL-NATURE X-WUM-FROM: |~| X-WUM-TO: |~| X-WUM-CC: |~| X-WUM-REPLYTO: |~| X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:46694 Archived-At: 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