From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Davis Herring" Newsgroups: gmane.emacs.devel,gmane.emacs.pretest.bugs Subject: Re: [Released] Re: 23.0.50; savehist save invalid syntax Date: Tue, 11 Sep 2007 14:06:06 -0700 (PDT) Message-ID: <40804.128.165.123.18.1189544766.squirrel@webmail.lanl.gov> References: <25364.128.165.0.81.1189472104.squirrel@webmail.lanl.gov> Reply-To: herring@lanl.gov NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: sea.gmane.org 1189544851 4290 80.91.229.12 (11 Sep 2007 21:07:31 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 11 Sep 2007 21:07:31 +0000 (UTC) Cc: emacs-pretest-bug@gnu.org, Drew Adams To: "Stefan Monnier" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Sep 11 23:07:26 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1IVCwA-0002Hs-0s for ged-emacs-devel@m.gmane.org; Tue, 11 Sep 2007 23:06:22 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IVCwA-0002fi-3V for ged-emacs-devel@m.gmane.org; Tue, 11 Sep 2007 17:06:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IVCw5-0002cX-Sm for emacs-devel@gnu.org; Tue, 11 Sep 2007 17:06:17 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IVCw4-0002bV-4f for emacs-devel@gnu.org; Tue, 11 Sep 2007 17:06:17 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IVCw3-0002bS-Vm for emacs-devel@gnu.org; Tue, 11 Sep 2007 17:06:16 -0400 Original-Received: from fencepost.gnu.org ([140.186.70.10]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IVCw3-0001nq-Em for emacs-devel@gnu.org; Tue, 11 Sep 2007 17:06:15 -0400 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by fencepost.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IVCve-0003MG-Vb for emacs-pretest-bug@gnu.org; Tue, 11 Sep 2007 17:05:51 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1IVCw0-0001mk-JL for emacs-pretest-bug@gnu.org; Tue, 11 Sep 2007 17:06:15 -0400 Original-Received: from mailwasher.lanl.gov ([192.65.95.54] helo=mailwasher-b.lanl.gov) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1IVCvz-0001mF-Hk for emacs-pretest-bug@gnu.org; Tue, 11 Sep 2007 17:06:12 -0400 Original-Received: from mailrelay3.lanl.gov (mailrelay3.lanl.gov [128.165.4.104]) by mailwasher-b.lanl.gov (8.13.8/8.13.6/(ccn-5)) with ESMTP id l8BL69wN010506; Tue, 11 Sep 2007 15:06:09 -0600 Original-Received: from webmail1.lanl.gov (webmail1.lanl.gov [128.165.4.106]) by mailrelay3.lanl.gov (8.13.8/8.13.8/(ccn-5)) with ESMTP id l8BL66Yx006639; Tue, 11 Sep 2007 15:06:06 -0600 Original-Received: from webmail1.lanl.gov (localhost.localdomain [127.0.0.1]) by webmail1.lanl.gov (8.12.11.20060308/8.12.11) with ESMTP id l8BL66aY014197; Tue, 11 Sep 2007 15:06:06 -0600 Original-Received: (from apache@localhost) by webmail1.lanl.gov (8.12.11.20060308/8.12.11/Submit) id l8BL6694014195; Tue, 11 Sep 2007 14:06:06 -0700 X-Authentication-Warning: webmail1.lanl.gov: apache set sender to herring@lanl.gov using -f Original-Received: from 128.165.123.18 (SquirrelMail authenticated user 196434) by webmail.lanl.gov with HTTP; Tue, 11 Sep 2007 14:06:06 -0700 (PDT) In-Reply-To: User-Agent: SquirrelMail/1.4.8-6.el3.2lanl X-Priority: 3 (Normal) Importance: Normal X-CTN-5-MailScanner-Information: Please see http://network.lanl.gov/email/virus-scan.php X-CTN-5-MailScanner: Found to be clean X-CTN-5-MailScanner-From: herring@lanl.gov X-Detected-Kernel: Linux 2.4-2.6 X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) 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:78605 gmane.emacs.pretest.bugs:19849 Archived-At: >> I think the documentation for the (new) variable >> `print-unreadable-function' may be sufficient, but I could add one. >> I specifically don't want to catch all errors there, because any other >> error ought to be noticed, not suppressed. > > If you bind print-unreadable-function to your own function (instead of > just > t), then the code will be easier to understand (and you'll be able to > use whichever error you feel like, you can even use catch/throw if its > more convenient). > > I think this special case of print-unreadable-function being bound to t is > rather unnecessary. It seemed to me that without that option, each package that used the feature would quickly end up writing the same function: (defun package-unreadable-function (obj) "Signal that OBJ would be unreadable." (error "%S can't be printed readably" obj)) (This of course loses the specific error symbol.) I know when I was testing it (before it supported t) I immediately felt silly writing a function that just redirected to `error'. It seems to me that "print this readably, and if you can't, fail" is a reasonable thing to expect people to want; "print this readably but do that instead if you can't" is also reasonable, so support it we shall. Of course, while thinking about this it occurs to me that while (4 5 ...) (produced with a finite `print-length' or `print-level') is actually readable, it certainly does not read as what was written. Should this trigger the unreadable-handling as well? Davis -- This product is sold by volume, not by mass. If it appears too dense or too sparse, it is because mass-energy conversion has occurred during shipping.