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: Thu, 02 Apr 2020 08:56:23 -0400 Message-ID: References: <87zhbv6jiu.fsf@web.de> <87r1x65z5v.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="115751"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Michael Heerdegen Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Thu Apr 02 14:56:55 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 1jJzOw-000TzZ-W0 for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 02 Apr 2020 14:56:54 +0200 Original-Received: from localhost ([::1]:38204 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jJzOv-0001VH-UX for geh-help-gnu-emacs@m.gmane-mx.org; Thu, 02 Apr 2020 08:56:53 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36033) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jJzOc-0001VA-Ae for help-gnu-emacs@gnu.org; Thu, 02 Apr 2020 08:56:35 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jJzOa-0004mQ-HS for help-gnu-emacs@gnu.org; Thu, 02 Apr 2020 08:56:33 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:62938) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jJzOa-0004kt-B6 for help-gnu-emacs@gnu.org; Thu, 02 Apr 2020 08:56:32 -0400 Original-Received: from pmg2.iro.umontreal.ca (localhost.localdomain [127.0.0.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id 78B62814A3; Thu, 2 Apr 2020 08:56:31 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg2.iro.umontreal.ca (Proxmox) with ESMTP id BCB1481363; Thu, 2 Apr 2020 08:56:29 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1585832189; bh=oHs/+q/gOvAys+NH2ifZKVB6dkd7B0Q5XPQCC0rzkPY=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=i9IsFPAPl7qFtbxUW/jFYIlTGsEXD1I00wW4yS1y/solUkTXrk32oypQpDP35kb8x iDZNemHigQ825SwaopZy0GlSiH4wc+9JxdnmbSpzS5R87IqcmS8HRrwJIcRmq89gmE 9WWNDQUVhmGRjPc/SHz8iIHsIFTlb61GMWKP6xUaGa0rRuK2GT8ZF/3ddtNgAW7jF3 3mr4AhH5WR+ScSqo2m2o6W3fCoUZf+kz2pbJTxSGD8PYdlZLoDWzJ02o66F4aJkICM 0N2KD2M4w0A/+FtrrLSiq307QYydR8fOSE1ALwRjK0b2Cuftjo4xbTdgwq22E/KHCG 6OPCVNe6bjzrA== Original-Received: from alfajor (unknown [104.247.241.114]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 5F1EB120695; Thu, 2 Apr 2020 08:56:29 -0400 (EDT) In-Reply-To: <87r1x65z5v.fsf@web.de> (Michael Heerdegen's message of "Thu, 02 Apr 2020 05:45:00 +0200") X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 132.204.25.50 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:122737 Archived-At: >> 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. > > Not necessarily the code, better would be a reference to the code, or > the entry point of the code, if something like that is available. I must be missing something: you do want to get some sort of a hash, right? And you do want that hash to be stable over time, so you can get used to which color corresponds to what, right? Hashing a reference will not give you a stable result. As for "entry point", I don't really what that would be but it doesn't sound like it'd be something that results in a stable hash either. Also it's not clear to me exactly which part of `type-of` you don't like. Stefan