From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.devel Subject: purpose of (provide 'hashtable-print-readable) in subr.el? Date: Fri, 13 Apr 2012 22:04:23 +0200 Message-ID: <86aa2f5rg8.fsf@web.de> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1334347133 21506 80.91.229.3 (13 Apr 2012 19:58:53 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 13 Apr 2012 19:58:53 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 13 21:58:52 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1SImdu-0002yP-0r for ged-emacs-devel@m.gmane.org; Fri, 13 Apr 2012 21:58:50 +0200 Original-Received: from localhost ([::1]:49587 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SImdt-0000nt-3n for ged-emacs-devel@m.gmane.org; Fri, 13 Apr 2012 15:58:49 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43999) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SImdq-0000nO-0c for emacs-devel@gnu.org; Fri, 13 Apr 2012 15:58:47 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SImdo-0005Ac-9H for emacs-devel@gnu.org; Fri, 13 Apr 2012 15:58:45 -0400 Original-Received: from fmmailgate05.web.de ([217.72.192.243]:59075) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SImdo-0005AU-2v for emacs-devel@gnu.org; Fri, 13 Apr 2012 15:58:44 -0400 Original-Received: from moweb002.kundenserver.de (moweb002.kundenserver.de [172.19.20.108]) by fmmailgate05.web.de (Postfix) with ESMTP id A25EA6D86898 for ; Fri, 13 Apr 2012 21:57:58 +0200 (CEST) Original-Received: from dragon.dragon ([88.67.107.46]) by smtp.web.de (mrweb002) with ESMTPA (Nemesis) id 0LshGz-1S825H0pbd-012KRX; Fri, 13 Apr 2012 21:57:58 +0200 User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) X-Provags-ID: V02:K0:o5DW+irILILO+xGGfkH77f8HA42IRctqoGqQ5d2eVra oAVLTa+npufdaB9ZXdwhsEH8Ri+Jq7n+epajtpBfUDSh7LiWd9 nPbQ185ZbuZDI2CVC5XXm/D45aOXSRBmvhILT/aCCLFnoC1Pww QqjwHhIm2UmjIDjUPvxn6Ln0+1B0wiaKhQCZhWEopipZDN2sln JHgHu0zEMAt+eBda7YC2RX1qYyoTRm0uU/11GtLOFo= X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4-2.6 X-Received-From: 217.72.192.243 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:149644 Archived-At: Hi, This looks odd to me: subr.el end with these lines: | ;; The following statement ought to be in print.c, but `provide' can't | ;; be used there. | ;; http://lists.gnu.org/archive/html/emacs-devel/2009-08/msg00236.html | (when (hash-table-p (car (read-from-string | (prin1-to-string (make-hash-table))))) | (provide 'hashtable-print-readable)) (Yes, I've read the mentioned thread in emacs-dev.) What's the purpose of this `provide' call? I've downloaded emacs-23.4.tar.gz from ftp.gnu.org. The only place where hashtable-print-readable occurs in code (including C) is the above occurrence in subr.el. And I don't see any reason why third party code should want to test for such a feature. So, why is it provided at all? Just curious... Regards, Michael.