all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: 川幡太一 <kawabata.taichi@gmail.com>
To: emacs-pretest-bug@gnu.org
Subject: bug#5082: 23.1.50; print-circle and make-hash-table
Date: Tue, 1 Dec 2009 00:09:30 +0900	[thread overview]
Message-ID: <270879b0911300709o29a12798m2ae6c6194c25e53@mail.gmail.com> (raw)

Dear Emacs Developers,

I've found an Emacs behavior that seems a bug concerning to `print-circle'
and make-hash-table, so I would like to report it.

By setting `print-circle' to `t', printing Lisp Object with recursive
or repetitive
list should be displayed as #N= and #N# syntax.

However, it seems this is not true when printing lisp objects within
hash tables
(which become possible in Emacs 23.1.50.)  Following is an example.

Is it possible to display the repetitive lisp object within printed hash tables
by #N= and #N# syntax, when `print-circle' is set to `t'?

I notify this behavior as a bug, but it may not be so.  I apologize in that
case.

(let ((print-circle t)
      (x (list 10 20))
      (y (make-hash-table)))
  (insert (format "%S\n" (list x x)))
  (puthash 1 x y)
  (puthash 2 x y)
  (insert (format "%S\n" y))
  (setcar x 3)
  (insert (format "%S\n" y)))

Result:
> (#1=(10 20) #1#)
> #s(hash-table size 65 test eql rehash-size 1.5 rehash-threshold 0.8
> data (1 (10 20) 2 (10 20)))
> #s(hash-table size 65 test eql rehash-size 1.5 rehash-threshold 0.8
> data (1 (3 20) 2 (3 20)))
nil

Cordially Yours,

-- 
---------------------------------------------------------------------
 KAWABATA, Taichi   E-mail: kawabata.taichi@gmail.com





             reply	other threads:[~2009-11-30 15:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <jwv8wdnencg.fsf-monnier+emacsbugreports@gnu.org>
2009-11-30 15:09 ` 川幡太一 [this message]
2009-11-30 21:15   ` bug#5082: marked as done (23.1.50; print-circle and make-hash-table) Emacs bug Tracking System
     [not found] <mailman.11874.1259601628.2239.bug-gnu-emacs@gnu.org>
2009-12-02 22:19 ` bug#5082: 23.1.50; print-circle and make-hash-table Ted Zlatanov
2009-12-02 22:19 ` Ted Zlatanov
2009-12-03  3:12   ` Glenn Morris
2009-12-03 17:25     ` Ted Zlatanov

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=270879b0911300709o29a12798m2ae6c6194c25e53@mail.gmail.com \
    --to=kawabata.taichi@gmail.com \
    --cc=5082@emacsbugs.donarmstrong.com \
    --cc=emacs-pretest-bug@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.