From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Damien Cassou Newsgroups: gmane.emacs.bugs Subject: bug#26639: 26.0.50; gethash can't find value from equal key Date: Mon, 24 Apr 2017 16:49:35 +0200 Message-ID: <87h91d6etc.fsf@luz4> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1493045475 16952 195.159.176.226 (24 Apr 2017 14:51:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 24 Apr 2017 14:51:15 +0000 (UTC) To: 26639@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Apr 24 16:51:07 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d2fKU-0004Bj-JX for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 Apr 2017 16:51:07 +0200 Original-Received: from localhost ([::1]:44531 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d2fKa-0007o8-7E for geb-bug-gnu-emacs@m.gmane.org; Mon, 24 Apr 2017 10:51:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56434) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d2fKT-0007o2-TJ for bug-gnu-emacs@gnu.org; Mon, 24 Apr 2017 10:51:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d2fKQ-0000o8-OQ for bug-gnu-emacs@gnu.org; Mon, 24 Apr 2017 10:51:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39928) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d2fKQ-0000o0-Cj for bug-gnu-emacs@gnu.org; Mon, 24 Apr 2017 10:51:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1d2fKQ-0000lX-1W for bug-gnu-emacs@gnu.org; Mon, 24 Apr 2017 10:51:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Damien Cassou Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 24 Apr 2017 14:51:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 26639 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.14930454092880 (code B ref -1); Mon, 24 Apr 2017 14:51:01 +0000 Original-Received: (at submit) by debbugs.gnu.org; 24 Apr 2017 14:50:09 +0000 Original-Received: from localhost ([127.0.0.1]:38127 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d2fJY-0000kN-MW for submit@debbugs.gnu.org; Mon, 24 Apr 2017 10:50:09 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:37007) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1d2fJW-0000jo-EF for submit@debbugs.gnu.org; Mon, 24 Apr 2017 10:50:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d2fJK-0000Nx-Vf for submit@debbugs.gnu.org; Mon, 24 Apr 2017 10:50:01 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:48528) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d2fJK-0000Nt-Rb for submit@debbugs.gnu.org; Mon, 24 Apr 2017 10:49:54 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56160) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d2fJJ-0007N9-7C for bug-gnu-emacs@gnu.org; Mon, 24 Apr 2017 10:49:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d2fJG-0000N2-3t for bug-gnu-emacs@gnu.org; Mon, 24 Apr 2017 10:49:53 -0400 Original-Received: from mail.choca.pics ([62.210.108.126]:38566) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d2fJF-0000Jn-Nf for bug-gnu-emacs@gnu.org; Mon, 24 Apr 2017 10:49:50 -0400 Original-Received: from localhost (localhost.localdomain [IPv6:::1]) by mail.choca.pics (Postfix) with ESMTP id 5F72B232AE29 for ; Mon, 24 Apr 2017 16:49:40 +0200 (CEST) Original-Received: from mail.choca.pics ([IPv6:::1]) by localhost (mail.choca.pics [IPv6:::1]) (amavisd-new, port 10032) with ESMTP id w9mMVVtLPLHI for ; Mon, 24 Apr 2017 16:49:39 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [IPv6:::1]) by mail.choca.pics (Postfix) with ESMTP id 3ED63232AE2A for ; Mon, 24 Apr 2017 16:49:39 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.10.3 mail.choca.pics 3ED63232AE2A DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cassou.me; s=9EA44F5C-DEF4-11E6-A83F-A08DF322D8FB; t=1493045379; bh=Skz6uAwoBbzsbHI8r175X1sgHSv6jjkpAbFeD1J5YWQ=; h=From:To:Date:Message-ID:MIME-Version; b=Nt8DR3r9X/1S2zptT4G/fAbrcPfYDNePaaGC9o+RY045CqldaoZn5rm3GUJBZxSey aVC8iECGKOJi5zDKLJyLa54J4zC/H2PbAHtal3P14B03Mc1rNMxEDlUfPIW2MDFqJ2 G7dCNQNFyY11H9rclU2z0ae3h+KNGy/w/qh7YXn+Pg94ihN+ZCRjh2oj0VFepqb63m LtT7pM7/0IvD0tdPNW9proDoBaa6D8ffyN1bSOgLx9gBcxarLGim3IemPzuPnsmdhL xreMdiOTNJIc0H/W1mBustAtp/MVb7t+GEFL5cPqrAH8OJxQg42gM7HoCLvIE85nIn RCKBCiyQLmLEg== X-Virus-Scanned: amavisd-new at choca.pics Original-Received: from mail.choca.pics ([IPv6:::1]) by localhost (mail.choca.pics [IPv6:::1]) (amavisd-new, port 10026) with ESMTP id Tn0pl23z7a1b for ; Mon, 24 Apr 2017 16:49:39 +0200 (CEST) Original-Received: from luz4 (31-211-216-84.customers.ownit.se [31.211.216.84]) by mail.choca.pics (Postfix) with ESMTPSA id 014BB232AE29 for ; Mon, 24 Apr 2017 16:49:38 +0200 (CEST) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 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: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:131937 Archived-At: In emacs built from master today (53f8f4bf), evaluate this in the scratch buffer of `emacs -Q`: (cl-defstruct foo slot1 slot2) (setq foo1 (make-foo :slot1 "abc" :slot2 "cba")) (setq foo2 (make-foo :slot1 "abc" :slot2 "cba")) (equal foo1 foo2) ;; should be t (setq hytmp (make-hash-table :test 'equal)) (puthash foo1 'foobar hytmp) (gethash foo1 hytmp 'no) ;; should be 'foobar (gethash foo2 hytmp 'no) ;; should be 'foobar BUT IS 'no I'm expecting last line to return 'foobar instead of 'no. In GNU Emacs 26.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.22.11) of 2017-04-24 built on luz4 Repository revision: 53f8f4bf2db097f4a2c68194c55a87c5a1176c8c Windowing system distributor 'Fedora Project', version 11.0.11903000 System Description: Fedora release 25 (Twenty Five) Recent messages: Mark set [2 times] cl-lib foo #s(foo "abc" "cba") [2 times] t #s(hash-table size 65 test equal rehash-size 1.5 rehash-threshold 0.8125 data ( ...)) foobar [2 times] no GNU Emacs 26.0.50 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.22.11) of 2017-04-24 Making completion list... Configured using: 'configure --with-mailutils' Configured features: XPM JPEG TIFF GIF PNG RSVG IMAGEMAGICK SOUND GPM DBUS GCONF GSETTINGS NOTIFY ACL LIBSELINUX GNUTLS LIBXML2 FREETYPE M17N_FLT LIBOTF XFT ZLIB TOOLKIT_SCROLL_BARS GTK3 X11 Important settings: value of $LC_MONETARY: fr_FR.UTF-8 value of $LC_NUMERIC: fr_FR.UTF-8 value of $LC_TIME: fr_FR.UTF-8 value of $LANG: en_US.UTF-8 value of $XMODIFIERS: @im=ibus locale-coding-system: utf-8-unix Major mode: Lisp Interaction Minor modes in effect: tooltip-mode: t global-eldoc-mode: t electric-indent-mode: t mouse-wheel-mode: t tool-bar-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-composition-mode: t auto-encryption-mode: t auto-compression-mode: t line-number-mode: t transient-mark-mode: t Load-path shadows: None found. Features: (shadow sort mail-extr emacsbug message subr-x puny seq byte-opt bytecomp byte-compile cconv dired dired-loaddefs format-spec rfc822 mml easymenu mml-sec password-cache epa derived epg epg-config gnus-util rmail rmail-loaddefs mm-decode mm-bodies mm-encode mail-parse rfc2231 mailabbrev gmm-utils mailheader sendmail rfc2047 rfc2045 ietf-drums mm-util mail-prsvr mail-utils cl-seq cl-macs gv cl-loaddefs cl-lib time-date mule-util tooltip eldoc electric uniquify ediff-hook vc-hooks lisp-float-type mwheel term/x-win x-win term/common-win x-dnd tool-bar dnd fontset image regexp-opt fringe tabulated-list replace newcomment text-mode elisp-mode lisp-mode prog-mode register page menu-bar rfn-eshadow isearch timer select scroll-bar mouse jit-lock font-lock syntax facemenu font-core term/tty-colors frame cl-generic cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese composite charscript case-table epa-hook jka-cmpr-hook help simple abbrev obarray minibuffer cl-preloaded nadvice loaddefs button faces cus-face macroexp files text-properties overlay sha1 md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote dbusbind inotify dynamic-setting system-font-setting font-render-setting move-toolbar gtk x-toolkit x multi-tty make-network-process emacs) Memory information: ((conses 16 96944 8366) (symbols 48 20210 1) (miscs 40 48 194) (strings 32 17755 4844) (string-bytes 1 573035) (vectors 16 14717) (vector-slots 8 482626 4459) (floats 8 49 150) (intervals 56 269 33) (buffers 976 13)) -- Damien Cassou http://damiencassou.seasidehosting.st "Success is the ability to go from one failure to another without losing enthusiasm." --Winston Churchill