all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Michael Heerdegen <michael_heerdegen@web.de>
To: emacs-devel@gnu.org
Subject: purpose of (provide 'hashtable-print-readable) in subr.el?
Date: Fri, 13 Apr 2012 22:04:23 +0200	[thread overview]
Message-ID: <86aa2f5rg8.fsf@web.de> (raw)

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.



             reply	other threads:[~2012-04-13 20:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-04-13 20:04 Michael Heerdegen [this message]
2012-04-14  3:36 ` purpose of (provide 'hashtable-print-readable) in subr.el? Leo
2012-04-14  7:01 ` Andreas Schwab
2012-04-15 17:29   ` Michael Heerdegen

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

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

  git send-email \
    --in-reply-to=86aa2f5rg8.fsf@web.de \
    --to=michael_heerdegen@web.de \
    --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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.