From unknown Sat Jun 14 03:56:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6069: 23.1.96; sxhash, big uints and overflow-error in custom-file Resent-From: David Reitter Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 30 Apr 2010 23:09:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 6069 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 6069@debbugs.gnu.org X-Debbugs-Original-To: Bug-Gnu-Emacs Received: via spool by submit@debbugs.gnu.org id=B.127266890431964 (code B ref -1); Fri, 30 Apr 2010 23:09:01 +0000 Received: (at submit) by debbugs.gnu.org; 30 Apr 2010 23:08:24 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O7zJn-0008JV-Cm for submit@debbugs.gnu.org; Fri, 30 Apr 2010 19:08:24 -0400 Received: from mx10.gnu.org ([199.232.76.166]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O7zEh-0008HB-9b for submit@debbugs.gnu.org; Fri, 30 Apr 2010 19:03:08 -0400 Received: from lists.gnu.org ([199.232.76.165]:42391) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1O7zEd-0003op-7j for submit@debbugs.gnu.org; Fri, 30 Apr 2010 19:03:03 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O7zEc-0007h8-Lm for bug-gnu-emacs@gnu.org; Fri, 30 Apr 2010 19:03:02 -0400 Received: from [140.186.70.92] (port=49935 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O7zEa-0007f9-Nv for bug-gnu-emacs@gnu.org; Fri, 30 Apr 2010 19:03:02 -0400 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on eggs.gnu.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, T_RP_MATCHES_RCVD autolearn=unavailable version=3.3.0 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O7zEX-0002AK-SZ for bug-gnu-emacs@gnu.org; Fri, 30 Apr 2010 19:03:00 -0400 Received: from smtp.andrew.cmu.edu ([128.2.11.61]:59984) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O7zEX-0002A0-O7 for bug-gnu-emacs@gnu.org; Fri, 30 Apr 2010 19:02:57 -0400 Received: from scarlett.psy.cmu.edu (SCARLETT.PSY.CMU.EDU [128.2.249.106]) (user=reitter mech=PLAIN (0 bits)) by smtp.andrew.cmu.edu (8.14.3/8.14.3) with ESMTP id o3UN2rXC010749 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT) for ; Fri, 30 Apr 2010 19:02:54 -0400 From: David Reitter Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Fri, 30 Apr 2010 19:02:53 -0400 Message-Id: <5A5EF5AB-3423-4AB4-A315-FE0E167CCD71@cmu.edu> Mime-Version: 1.0 (Apple Message framework v1078) X-Mailer: Apple Mail (2.1078) X-PMX-Version: 5.5.9.388399, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2010.4.30.223914 X-SMTP-Spam-Clean: 19% ( RATWARE_SIGNATURE_3 2, SUPERLONG_LINE 0.05, FROM_EDU_TLD 0, __C230066_P5 0, __CP_MEDIA_BODY 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __FRAUD_MONEY 0, __FRAUD_MONEY_VALUE 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __LINES_OF_YELLING 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __MIME_VERSION_APPLEMAIL 0, __MSGID_APPLEMAIL 0, __PHISH_SPEAR_PASSWORD_1 0, __PHISH_SPEAR_STRUCTURE_1 0, __RATWARE_SIGNATURE_3 0, __SANE_MSGID 0, __TO_MALFORMED_2 0, __URI_NO_MAILTO 0, __URI_NO_PATH 0, __URI_NO_WWW 0, __URI_NS , __USER_AGENT_APPLEMAIL 0, __X_MAILER_APPLEMAIL 0) X-SMTP-Spam-Score: 19% X-Scanned-By: MIMEDefang 2.60 on 128.2.11.61 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -4.0 (----) X-Mailman-Approved-At: Fri, 30 Apr 2010 19:08:21 -0400 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -5.3 (-----) Not sure if this is an error of Emacs, or if the fault is mine: - `sxhash' of some object produced a 32-bit unsigned integer, which was = represented just fine in Lisp. - I stored it in a customization variable, which was subsequently saved = to my custom-file. - When reading back the file, I got an overflow error, as in (read-from-string "2475893479") --> overflow error Due to the nature of hashes, it appears unreasonable hard for me to make = a test case. But looking at the code, sxhash is designed to produce an = unsigned int and make a (signed?) Lisp integer from it. INTMASK is 0xffffffff at least on my system. Artihmetic operations, OTOH convert big ints to floats in = arith_driver(): (let ((bigint (+ 1475893479 1000000000))) (floatp bigint)) (Would sxhash in that case produce a negative value if its result is = printed? I don't know. Somewhere along the way to `custom-save-variables', some info about the = meaning of bit #31 gets lost, and Emacs produces string representation = that can't be read.) In GNU Emacs 23.1.96.1 (i386-apple-darwin9.8.0, NS apple-appkit-949.54) of 2010-04-30 on braeburn.aquamacs.org - Aquamacs Distribution = 2.0preview6 Windowing system distributor `Apple', version 10.3.1038 configured using `configure '--with-ns' '--without-x' 'CFLAGS=3D-arch = i386 -arch ppc' 'LDFLAGS=3D-arch i386 -arch ppc'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Text Minor modes in effect: which-function-mode: t savehist-mode: t smart-frame-positioning-mode: t aquamacs-autoface-mode: t recentf-mode: t osx-key-mode: t tabbar-mwheel-mode: t tabbar-mode: t show-paren-mode: t delete-selection-mode: t pc-selection-mode: t cua-mode: t tooltip-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-encryption-mode: t auto-compression-mode: t smart-spacing-mode: t column-number-mode: t line-number-mode: t visual-line-mode: t transient-mark-mode: t Recent input: E G A T I V E SPC V B A L U =20 A L U E ? =20 =E2=87=A7D O E SPC S =20 S SPC T H E R SPC ` P 0 R I N =20 =20 SPC =20 ^H V ^G ^H F=20 C U S T O M I - S A V E - V =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =20 =E2=8C=98C = =20 =E2=87=A7S=20 O M E W H E R E SPC A L O N M G =20 G SPC T H E SPC W A Y SPC T O SPC ` =E2=8C=98V ' SPC S =20 M , SPC S O M E T =20 T H=20 I S SPC G E T S SPC L O S T SPC , SPC A=20 N D SPC I T SPC P R O D U C E S SPC A SPC C U S T O=20 =20 S T R I N G SPC R E P R E S=20 E N T A T I O N SPC T H A T SPC C A N ' T SPC B E SPC=20 R E A D SPC B . =20 =E2=8C=98A =E2=8C=98C = =20 =20 Recent messages: Making completion list... Type "q" to quit. if: Search failed: "arith_d" Mark set Undo... Undo! Mark set Quit uncompressing cus-edit.el.gz...done Unable to load color "dark cyan" Load-path shadows: /Users/dr/Library/Preferences/Aquamacs Emacs/Recent Files hides = /Users/dr/Library/Preferences/Aquamacs Emacs/Aquamacs Emacs2/Recent = Files /Users/dr/Library/Preferences/Aquamacs Emacs/Preferences hides = /Users/dr/Library/Preferences/Aquamacs Emacs/Aquamacs Emacs2/Preferences /Users/dr/Library/Preferences/Aquamacs Emacs/places hides = /Users/dr/Library/Preferences/Aquamacs Emacs/Aquamacs Emacs2/places /Users/dr/Library/Preferences/Aquamacs Emacs/minibuffer-history hides = /Users/dr/Library/Preferences/Aquamacs Emacs/Aquamacs = Emacs2/minibuffer-history /Users/dr/Library/Preferences/Aquamacs Emacs/frame-positions hides = /Users/dr/Library/Preferences/Aquamacs Emacs/Aquamacs = Emacs2/frame-positions /Users/dr/Library/Preferences/Aquamacs Emacs/customizations hides = /Users/dr/Library/Preferences/Aquamacs Emacs/Aquamacs = Emacs2/customizations /Users/dr/Library/Application Support/Aquamacs Emacs/JDEE/site-start = hides /Library/Application Support/Aquamacs Emacs/SLIME/site-start /Users/dr/Library/Application Support/Aquamacs Emacs/JDEE/site-start = hides /Users/dr/Downloads/Aquamacs = 2.app/Contents/Resources/lisp/aquamacs/site-start Features: (shadow sort mail-extr message ecomplete rfc822 mml mml-sec password-cache mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev nnheader gnus-util netrc mm-util mail-prsvr gmm-utils mailheader canlock sha1 hex-util hashcash mail-utils emacsbug jka-compr multi-isearch vc-git cc-mode cc-fonts cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs find-func pp which-func imenu slime-autoloads load-emacs-plugins aquamacs-mode-defaults auctex-config server tex-site smart-dnd aquamacs-aux savehist mouse-sel one-buffer-one-frame smart-frame-positioning drews_init color-theme-autoloads saveplace visual-line aquamacs-bug aquamacs-autoface-mode aquamacs-editing sendmail recentf tree-widget cus-edit osxkeys emulate-mac-keyboard-mode frame-cmds strings misc-fns thingatpt+ thingatpt frame-fns avoid aquamacs-mac-fontsets fit-frame aquamacs-frame-setup aquamacs-tabbar tabbar-window cl cl-19 tabbar easy-mmode cus-start cus-load load-emacs-pre-plugins aquamacs-site-start cocoa-compatibility filladapt aquamacs-redo check-for-updates aquamacs-menu osx_defaults aquamacs-tool-bar aquamacs mac-extra-functions aquamacs-tools aquamacs-macros parse-time timezone time-date paren delsel pc-select cua-base wid-edit regexp-opt advice advice-preload byte-opt bytecomp byte-compile debug help-fns help-mode view image-file disp-table tooltip ediff-hook vc-hooks lisp-float-type mwheel ns-win easymenu tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process ns multi-tty emacs) Command line: (/Users/dr/Downloads/Aquamacs = 2.app/Contents/MacOS/Aquamacs) PATH: = /opt/local/bin:/opt/local/sbin:/opt/local/bin:/opt/local/sbin:/opt/local/b= in:/opt/local/sbin:/Library/Frameworks/Python.framework/Versions/Current/b= in:/opt/local/lib/postgresql82/bin:/opt/local/bin:/opt/local/sbin:/usr/bin= :/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/texbin:/usr/X= 11/bin:/Users/dr/Applications:/Users/dr/Applications/bin:/Users/dr/Project= s/openccg/bin:/usr/texbin/powerpc-apple-darwin-current:/usr/local/git/bin:= /Developer/Platforms/iPhoneFOSS.platform/Developer/bin:/usr/bin:/bin:/usr/= sbin:/sbin:/usr/texbin:/usr/local/texlive/2009/bin exec-path: (/opt/local/bin /opt/local/sbin /opt/local/bin = /opt/local/sbin /opt/local/bin /opt/local/sbin = /Library/Frameworks/Python.framework/Versions/Current/bin = /opt/local/lib/postgresql82/bin /opt/local/bin /opt/local/sbin /usr/bin = /bin /usr/sbin /sbin /usr/local/bin /usr/local/git/bin /usr/texbin = /usr/X11/bin /Users/dr/Applications /Users/dr/Applications/bin = /Users/dr/Projects/openccg/bin /usr/texbin/powerpc-apple-darwin-current = /usr/local/git/bin = /Developer/Platforms/iPhoneFOSS.platform/Developer/bin /usr/bin /bin = /usr/sbin /sbin /Users/dr/Downloads/Aquamacs 2.app/Contents/MacOS/bin = /usr/local/texlive/2009/bin)= From unknown Sat Jun 14 03:56:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6069: INTMASK on 32/64 bit machines References: <5A5EF5AB-3423-4AB4-A315-FE0E167CCD71@cmu.edu> In-Reply-To: <5A5EF5AB-3423-4AB4-A315-FE0E167CCD71@cmu.edu> Resent-From: David Reitter Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 01 May 2010 02:32:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6069 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: 6069@debbugs.gnu.org Received: via spool by 6069-submit@debbugs.gnu.org id=B6069.12726810875028 (code B ref 6069); Sat, 01 May 2010 02:32:01 +0000 Received: (at 6069) by debbugs.gnu.org; 1 May 2010 02:31:27 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O82UI-0001J3-0p for submit@debbugs.gnu.org; Fri, 30 Apr 2010 22:31:26 -0400 Received: from mail-vw0-f44.google.com ([209.85.212.44]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O82UF-0001Ix-VO for 6069@debbugs.gnu.org; Fri, 30 Apr 2010 22:31:24 -0400 Received: by vws13 with SMTP id 13so596890vws.3 for <6069@debbugs.gnu.org>; Fri, 30 Apr 2010 19:31:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:content-type :content-transfer-encoding:subject:date:message-id:to:mime-version :x-mailer; bh=6mMKhbahJqendLHQ8csq0XU1L7AKMz00nkGnDxeslSE=; b=pWPykORQi4lG73oBtpAa+G/iV6zDd2YB1UJXTGNOnV01vekEu4uAkUcpU54H2kVNUJ GJjb5jE8VbDRsa5RYKym3mLARpysTksu1HKImkGMgsrdxFc77Sl41qQlzAbdiOBDrCnm KnkAcr2Pm1r2bxxrh+kf+6/hoUcUTMaKKaYrI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:content-type:content-transfer-encoding:subject:date:message-id :to:mime-version:x-mailer; b=Ew70kB7LxXrkmw3BDaxqCLU5nruuACAT+bo3rWdAtWkMJ4eB67a/w38PPuQJLXiMkx 8ReYjA0hbDMcaIrIk4VuQusRNDV9RPp1RQ1d460oIttKeNtWnlXZlyPEzQ6M/qnJoU0A eEiRjKZKPrdTWnrZ8Dh5OWSjWaNgiP+bjA6E4= Received: by 10.220.63.143 with SMTP id b15mr7465650vci.123.1272681080118; Fri, 30 Apr 2010 19:31:20 -0700 (PDT) Received: from [192.168.1.42] (pool-72-95-200-56.pitbpa.east.verizon.net [72.95.200.56]) by mx.google.com with ESMTPS id x6sm11631845vco.23.2010.04.30.19.31.18 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 30 Apr 2010 19:31:19 -0700 (PDT) From: David Reitter Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Date: Fri, 30 Apr 2010 22:31:17 -0400 Message-Id: Mime-Version: 1.0 (Apple Message framework v1078) X-Mailer: Apple Mail (2.1078) X-Spam-Score: -3.1 (---) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -3.5 (---) I have one post-scriptum. I just noticed that the large `sxhash' integer was produced on a 64-bit = machine with INTMASK 0xffffffff, but that the read failure occurred with a binary compiled for 32-bit = architectures. In that Emacs, INTMASK is 0x3fffffff. I think that explains what I'm seeing. Would it be sensible to make `sxhash' use a lower common denominator for = modern machines, such as 0x3fffffff? Or, should the lower INTMASK be used on 64-bit architectures as well? It's less than ideal that printed Lisp expressions, especially those in = customization files, are not interchangeable between different builds of = the same version of Emacs. From unknown Sat Jun 14 03:56:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6069: 23.1.96; sxhash, big uints and overflow-error in custom-file Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Mar 2011 20:47:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6069 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: David Reitter Cc: 6069@debbugs.gnu.org Received: via spool by 6069-submit@debbugs.gnu.org id=B6069.130125878721837 (code B ref 6069); Sun, 27 Mar 2011 20:47:01 +0000 Received: (at 6069) by debbugs.gnu.org; 27 Mar 2011 20:46:27 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q3wqw-0005gA-Gb for submit@debbugs.gnu.org; Sun, 27 Mar 2011 16:46:26 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q3wqu-0005fy-Rz for 6069@debbugs.gnu.org; Sun, 27 Mar 2011 16:46:25 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEALSgj01MCqRC/2dsb2JhbAClUHjAGYVpBJYFg0s X-IronPort-AV: E=Sophos;i="4.63,251,1299474000"; d="scan'208";a="98273866" Received: from 76-10-164-66.dsl.teksavvy.com (HELO pastel.home) ([76.10.164.66]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 27 Mar 2011 16:46:19 -0400 Received: by pastel.home (Postfix, from userid 20848) id 2129158EBD; Sun, 27 Mar 2011 16:46:19 -0400 (EDT) From: Stefan Monnier Message-ID: References: <5A5EF5AB-3423-4AB4-A315-FE0E167CCD71@cmu.edu> Date: Sun, 27 Mar 2011 16:46:19 -0400 In-Reply-To: <5A5EF5AB-3423-4AB4-A315-FE0E167CCD71@cmu.edu> (David Reitter's message of "Fri, 30 Apr 2010 19:02:53 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.1 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) > - I stored it in a customization variable, which was subsequently > saved to my custom-file. What was the use of this sxhash value in your customization? Stefan From unknown Sat Jun 14 03:56:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6069: 23.1.96; sxhash, big uints and overflow-error in custom-file Resent-From: David Reitter Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 27 Mar 2011 21:18:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6069 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier Cc: 6069@debbugs.gnu.org Received: via spool by 6069-submit@debbugs.gnu.org id=B6069.130126062524404 (code B ref 6069); Sun, 27 Mar 2011 21:18:02 +0000 Received: (at 6069) by debbugs.gnu.org; 27 Mar 2011 21:17:05 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q3xKa-0006LZ-SF for submit@debbugs.gnu.org; Sun, 27 Mar 2011 17:17:05 -0400 Received: from smtp.andrew.cmu.edu ([128.2.11.61]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q3xKY-0006L4-VA for 6069@debbugs.gnu.org; Sun, 27 Mar 2011 17:17:03 -0400 Received: from elin.local (pool-71-182-175-78.pitbpa.east.verizon.net [71.182.175.78]) (user=reitter mech=PLAIN (0 bits)) by smtp.andrew.cmu.edu (8.14.4/8.14.4) with ESMTP id p2RLGulc025469 (version=TLSv1/SSLv3 cipher=AES128-SHA bits=128 verify=NOT); Sun, 27 Mar 2011 17:16:57 -0400 Mime-Version: 1.0 (Apple Message framework v1082) Content-Type: text/plain; charset=us-ascii From: David Reitter In-Reply-To: Date: Sun, 27 Mar 2011 17:16:56 -0400 Content-Transfer-Encoding: quoted-printable Message-Id: References: <5A5EF5AB-3423-4AB4-A315-FE0E167CCD71@cmu.edu> X-Mailer: Apple Mail (2.1082) X-PMX-Version: 5.5.9.388399, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2011.3.18.170322 X-SMTP-Spam-Clean: 8% ( SUPERLONG_LINE 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_1000_LESS 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_600_699 0, BODY_SIZE_7000_LESS 0, FROM_EDU_TLD 0, RDNS_GENERIC_POOLED 0, RDNS_POOLED 0, RDNS_SUSP 0, RDNS_SUSP_GENERIC 0, RDNS_SUSP_SPECIFIC 0, __BOUNCE_CHALLENGE_SUBJ 0, __BOUNCE_NDR_SUBJ_EXEMPT 0, __CT 0, __CTE 0, __CT_TEXT_PLAIN 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __MIME_TEXT_ONLY 0, __MIME_VERSION 0, __MIME_VERSION_APPLEMAIL 0, __MSGID_APPLEMAIL 0, __PHISH_SPEAR_STRUCTURE_1 0, __RDNS_POOLED_9 0, __SANE_MSGID 0, __TO_MALFORMED_2 0, __USER_AGENT_APPLEMAIL 0, __X_MAILER_APPLEMAIL 0) X-SMTP-Spam-Score: 8% X-Scanned-By: MIMEDefang 2.60 on 128.2.11.61 X-Spam-Score: -6.6 (------) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) On Mar 27, 2011, at 4:46 PM, Stefan Monnier wrote: >> - I stored it in a customization variable, which was subsequently >> saved to my custom-file. >=20 > What was the use of this sxhash value in your customization? I allow users to customize the toolbar through a standard graphical = interface. This customization is specific to the toolbar set by the = major mode (and other contextual factors). Thus, I associate a toolbar = setting with a hash over the keys used in the tool-bar-map. This is not = ideal (as other keymaps may also define icons that appear in the = toolbar), but works reasonably well.=20 - D= From unknown Sat Jun 14 03:56:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6069: 23.1.96; sxhash, big uints and overflow-error in custom-file Resent-From: Stefan Monnier Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 28 Mar 2011 00:40:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6069 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: David Reitter Cc: 6069@debbugs.gnu.org Received: via spool by 6069-submit@debbugs.gnu.org id=B6069.130127280012080 (code B ref 6069); Mon, 28 Mar 2011 00:40:03 +0000 Received: (at 6069) by debbugs.gnu.org; 28 Mar 2011 00:40:00 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q40Ux-00038m-9r for submit@debbugs.gnu.org; Sun, 27 Mar 2011 20:39:59 -0400 Received: from ironport2-out.teksavvy.com ([206.248.154.183] helo=ironport2-out.pppoe.ca) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Q40Uq-00038S-Si; Sun, 27 Mar 2011 20:39:57 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AvsEANHXj01MCqRC/2dsb2JhbAClSnjANoVpBJYFg0s X-IronPort-AV: E=Sophos;i="4.63,252,1299474000"; d="scan'208";a="98288792" Received: from 76-10-164-66.dsl.teksavvy.com (HELO pastel.home) ([76.10.164.66]) by ironport2-out.pppoe.ca with ESMTP/TLS/ADH-AES256-SHA; 27 Mar 2011 20:39:46 -0400 Received: by pastel.home (Postfix, from userid 20848) id A91A158EBD; Sun, 27 Mar 2011 20:39:46 -0400 (EDT) From: Stefan Monnier Message-ID: References: <5A5EF5AB-3423-4AB4-A315-FE0E167CCD71@cmu.edu> Date: Sun, 27 Mar 2011 20:39:46 -0400 In-Reply-To: (David Reitter's message of "Sun, 27 Mar 2011 17:16:56 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-Spam-Score: -2.1 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.1 (--) >>> - I stored it in a customization variable, which was subsequently >>> saved to my custom-file. >> What was the use of this sxhash value in your customization? > I allow users to customize the toolbar through a standard graphical > interface. This customization is specific to the toolbar set by the major > mode (and other contextual factors). Thus, I associate a toolbar setting > with a hash over the keys used in the tool-bar-map. This is not ideal (as > other keymaps may also define icons that appear in the toolbar), but works > reasonably well. So you could work around the problem by doing a logand with #xfffffff. I'm not saying that the problem you describe is an Emacs feature, but simply that the only way to "make it work right" (i.e. make that sxhash returns the same value on all systems) involves clipping it to #xfffffff and while that's OK in many cases, I'd rather do it when it can be avoided (e.g. when the sxhash value is used to index a hash table). Also sxhash's values are not guaranteed to be the same between different Emacs versions, so maybe instead of storing the sxhash you should simply use the list of keys as-is. It's not like it's expected to be very long. Stefan From unknown Sat Jun 14 03:56:11 2025 X-Loop: help-debbugs@gnu.org Subject: bug#6069: 23.1.96; sxhash, big uints and overflow-error in custom-file Resent-From: Lars Magne Ingebrigtsen Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 21 Sep 2011 19:45:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 6069 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: To: Stefan Monnier Cc: David Reitter , 6069@debbugs.gnu.org Received: via spool by 6069-submit@debbugs.gnu.org id=B6069.13166342939313 (code B ref 6069); Wed, 21 Sep 2011 19:45:03 +0000 Received: (at 6069) by debbugs.gnu.org; 21 Sep 2011 19:44:53 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R6Siy-0002QA-RN for submit@debbugs.gnu.org; Wed, 21 Sep 2011 15:44:53 -0400 Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R6Sit-0002Pp-TC for 6069@debbugs.gnu.org; Wed, 21 Sep 2011 15:44:50 -0400 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1R6SiV-0004cU-J7; Wed, 21 Sep 2011 21:44:23 +0200 From: Lars Magne Ingebrigtsen In-Reply-To: (Stefan Monnier's message of "Sun, 27 Mar 2011 20:39:46 -0400") Date: Wed, 21 Sep 2011 21:40:47 +0200 Message-ID: References: <5A5EF5AB-3423-4AB4-A315-FE0E167CCD71@cmu.edu> User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux) X-Now-Playing: Colder's _Heat_: "Losing Myself" MIME-Version: 1.0 Content-Type: text/plain X-MailScanner-ID: 1R6SiV-0004cU-J7 X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1317239063.95326@82XWubKqWNWDtwMy7r1q5w X-Spam-Status: No X-Spam-Score: -2.6 (--) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) Stefan Monnier writes: > Also sxhash's values are not guaranteed to be the same between different > Emacs versions, so maybe instead of storing the sxhash you should simply > use the list of keys as-is. It's not like it's expected to be very long. This doesn't seem to be a bug -- the sxhash values are system-dependent and shouldn't be used directly when storing, so I'm closing this bug report. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/ From debbugs-submit-bounces@debbugs.gnu.org Wed Sep 21 15:44:43 2011 Received: (at control) by debbugs.gnu.org; 21 Sep 2011 19:44:43 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R6Sio-0002Pe-S3 for submit@debbugs.gnu.org; Wed, 21 Sep 2011 15:44:43 -0400 Received: from hermes.netfonds.no ([80.91.224.195]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1R6Sim-0002PW-Go for control@debbugs.gnu.org; Wed, 21 Sep 2011 15:44:41 -0400 Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1R6SiQ-0004cE-3I for control@debbugs.gnu.org; Wed, 21 Sep 2011 21:44:18 +0200 Date: Wed, 21 Sep 2011 21:40:51 +0200 Message-Id: To: control@debbugs.gnu.org From: Lars Magne Ingebrigtsen Subject: control message for bug #6069 X-MailScanner-ID: 1R6SiQ-0004cE-3I X-Netfonds-MailScanner: Found to be clean X-Netfonds-MailScanner-From: larsi@gnus.org MailScanner-NULL-Check: 1317239058.34227@c38LlJsQX1W+Y8XhbCQg2g X-Spam-Status: No X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) tags 6069 notabug close 6069