From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: Colorize objects by method dispatch type Date: Wed, 01 Apr 2020 23:00:26 -0400 Message-ID: References: <87zhbv6jiu.fsf@web.de> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="61272"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) To: help-gnu-emacs@gnu.org Cancel-Lock: sha1:0lQ0kVcrV/ZVITcS/YFFL6Cy+cI= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 02 05:01:10 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jJq6Q-000Frb-E1 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 02 Apr 2020 05:01:10 +0200 Original-Received: from localhost ([::1]:32804 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jJq6O-00063D-GD for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 01 Apr 2020 23:01:09 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51543) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jJq5r-00061f-JC for help-gnu-emacs@gnu.org; Wed, 01 Apr 2020 23:00:36 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jJq5q-0007JY-GC for help-gnu-emacs@gnu.org; Wed, 01 Apr 2020 23:00:35 -0400 Original-Received: from ciao.gmane.io ([159.69.161.202]:48236) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jJq5q-0007CL-7u for help-gnu-emacs@gnu.org; Wed, 01 Apr 2020 23:00:34 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1jJq5o-000FAc-3I for help-gnu-emacs@gnu.org; Thu, 02 Apr 2020 05:00:32 +0200 X-Injected-Via-Gmane: http://gmane.org/ X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 159.69.161.202 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:122733 Archived-At: > But in the case of registers, the already existing method > implementations defined by the developers for the different types of > registers provide a better source for an equality relation on registers > than `type-of.' That's why I would rather use references to the > appropriate method implementations for hashing. You mean you want to take a hash of the actual code? That will change when the code is tweaked, so I don't think you're going to like that. You're probably better off with a hash of (format "%S" (type-of FOO)). Stefan