From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#6017: 23.1.96; savehist-printable for hash tables Date: Fri, 23 Apr 2010 10:49:22 -0700 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1272045370 13166 80.91.229.12 (23 Apr 2010 17:56:10 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 23 Apr 2010 17:56:10 +0000 (UTC) To: 6017@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 23 19:56:09 2010 connect(): No such file or directory Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O5N6i-0008Kf-UY for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Apr 2010 19:56:05 +0200 Original-Received: from localhost ([127.0.0.1]:38990 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O5N6i-0006kR-Cu for geb-bug-gnu-emacs@m.gmane.org; Fri, 23 Apr 2010 13:56:04 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O5N6A-0006ST-L9 for bug-gnu-emacs@gnu.org; Fri, 23 Apr 2010 13:55:30 -0400 Original-Received: from [140.186.70.92] (port=49951 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O5N68-0006R0-RA for bug-gnu-emacs@gnu.org; Fri, 23 Apr 2010 13:55:30 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O5N64-0000qt-2w for bug-gnu-emacs@gnu.org; Fri, 23 Apr 2010 13:55:28 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:36686) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O5N63-0000qo-PP for bug-gnu-emacs@gnu.org; Fri, 23 Apr 2010 13:55:24 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1O5N2o-0005w1-2R; Fri, 23 Apr 2010 13:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 23 Apr 2010 17:52:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6017 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.127204509222799 (code B ref -1); Fri, 23 Apr 2010 17:52:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 23 Apr 2010 17:51:32 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O5N2K-0005vf-BM for submit@debbugs.gnu.org; Fri, 23 Apr 2010 13:51:32 -0400 Original-Received: from mail.gnu.org ([199.232.76.166] helo=mx10.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O5N2I-0005vW-6Z for submit@debbugs.gnu.org; Fri, 23 Apr 2010 13:51:30 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:57443) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1O5N2D-0002Jk-HA for submit@debbugs.gnu.org; Fri, 23 Apr 2010 13:51:25 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O5N2D-0005AO-56 for bug-gnu-emacs@gnu.org; Fri, 23 Apr 2010 13:51:25 -0400 Original-Received: from [140.186.70.92] (port=57476 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O5N29-000583-Qm for bug-gnu-emacs@gnu.org; Fri, 23 Apr 2010 13:51:24 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O5N22-0000Ge-Jc for bug-gnu-emacs@gnu.org; Fri, 23 Apr 2010 13:51:20 -0400 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:61300) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O5N22-0000GX-8W for bug-gnu-emacs@gnu.org; Fri, 23 Apr 2010 13:51:14 -0400 Original-Received: from rcsinet13.oracle.com (rcsinet13.oracle.com [148.87.113.125]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o3NHp5ko008789 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Fri, 23 Apr 2010 17:51:09 GMT Original-Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by rcsinet13.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o3NHTIAK005900 for ; Fri, 23 Apr 2010 17:51:04 GMT Original-Received: from abhmt002.oracle.com by acsmt355.oracle.com with ESMTP id 203651851272044959; Fri, 23 Apr 2010 10:49:19 -0700 Original-Received: from dradamslap1 (/10.175.223.120) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Fri, 23 Apr 2010 10:49:19 -0700 X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcrjDU66KSXh0D1mQMi2Mbl849MU/g== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Auth-Type: Internal IP X-Source-IP: rcsinet13.oracle.com [148.87.113.125] X-CT-RefId: str=0001.0A090203.4BD1DE0F.0057:SCFMA4539811,ss=1,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Fri, 23 Apr 2010 13:52:02 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:36453 Archived-At: IIUC, starting with Emacs 23.2, we can prin1 and read hash tables. If that's correct, then `savehist-printable' could presumably be updated to add this sexp to the cond: (hash-table-p value). IOW: (defun savehist-printable (value) "Return non-nil if VALUE is printable." (cond ((stringp value)) ((numberp value)) ((symbolp value)) ((hash-table-p value)) (t (with-temp-buffer (condition-case nil (let ((print-readably t) (print-level nil)) (prin1 value (current-buffer)) (read (point-min-marker)) t) (error nil)))))) In GNU Emacs 23.1.96.1 (i386-mingw-nt5.1.2600) of 2010-04-20 on G41R2F1 Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4) --no-opt --cflags -Ic:/xpm/include'