From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: Colorize objects by method dispatch type Date: Sat, 04 Apr 2020 01:23:47 +0200 Message-ID: <87y2rc40ho.fsf@web.de> References: <87zhbv6jiu.fsf@web.de> <87r1x65z5v.fsf@web.de> <87zhbtjvsz.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="127913"; 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: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Apr 04 01:25:44 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 1jKVh1-000XA8-NY for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 04 Apr 2020 01:25:43 +0200 Original-Received: from localhost ([::1]:33626 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jKVh0-0001KH-Hl for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 03 Apr 2020 19:25:42 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35162) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jKVfF-0001K2-Qh for help-gnu-emacs@gnu.org; Fri, 03 Apr 2020 19:23:54 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jKVfE-0006yZ-VD for help-gnu-emacs@gnu.org; Fri, 03 Apr 2020 19:23:53 -0400 Original-Received: from mout.web.de ([212.227.15.3]:45643) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jKVfE-0006xT-JH for help-gnu-emacs@gnu.org; Fri, 03 Apr 2020 19:23:52 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1585956227; bh=ToDJsbGl0CmJGZa47sHqcTdsdex4sndDFS37KaSkWKM=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=A8armTAAM2unVIOkOauubYMkLGrr87Z9noDh2WVi/7ew19Oik0hYtaDntst9pHi7+ spwbuO34kpIu2boSBMgYrNlqO6KVpUFZYFBHM+TTXI8MbsmPFJqWTa5YAbeCmI9b1/ bWir+pVAiEYsRv3s3InihQPrNcYJnm2W4lkQH6Jo= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from drachen.dragon ([188.98.99.7]) by smtp.web.de (mrweb004 [213.165.67.108]) with ESMTPSA (Nemesis) id 0MYZ8c-1jok8e40VG-00VOGX; Sat, 04 Apr 2020 01:23:47 +0200 In-Reply-To: (Stefan Monnier's message of "Fri, 03 Apr 2020 12:01:59 -0400") X-Provags-ID: V03:K1:ICk3UA7JVQHcKnRcoJZ7S/hiZksNRfp+8Ff9xYYGrai8di3MRLk BKcJg+i64b9y/nLIrn2ZjU+C2cb+H2RAKsUoNWoNykPcM7oaTLamMNuGNFWXexg1lQ9F8Oo mZmUfw7tEkH3C0ggbB52bL/o0lmx4xR2+MSJW54BS3JCxuPXatIIaBInMYfWZonTPSah7dU dpZAnJEZdE8AXUMy5PCGQ== X-UI-Out-Filterresults: notjunk:1;V03:K0:yDtermP0GuA=:a+UcclSmG515RVHsTcGZpI YKv5Fdw7ZTR5+pDkJY+6Ek7HYv1IVpzdVuEeoPlGr387mFMSjtXNgFOKBNUVWGKdCtfykTnG5 EOo2GZlz2C2Alfyf3BY4VDSejKFUEnNdNSnjlBUyHWsT+wR6mrta/3/tPRAEzjL5fLbF6omMe rdS33953YoTbhHfuT6nLBDDv9vnl60fZVZaiVZAS3+Zxc1BjKFQYZ+ygalCe+iBEgw+Bg7zLC mwWfZIgIx4FgQ94qbeQzha5gQiUBDKBrDutuqT2aTzFgrGnhytlhIx7SLghxCOklUxGhawf7e 3RqC7SBIHc5ciglRiHqkP+gMaS4I5BmKXKyIwTbMhY4GHiEamOyydVqCF+RhH/OXsTf5BTCKv SP+d9CQVCQPCJhGM5J4PNAwu+3mbJysz5N5io1GgdZwIObjpdSyq6HvAlhJQ/mwQ4NPjB2dCz Z9Vfbw6Gnf6Qkfn0WwwT5YxXwRrES3HJnsz+wzuQy90j5MSXQRXOtV43Q7NCccGI1k6tdmMes R9wiUxBH6LTbEaMT261EfSYN7jve/wchGpN6GJU9uonNPxUFN36LqhDJpVBOTCtlVzclWkEKd OOpqp0cEil08JDM23DV1+GsJ6sG8toMVzwLV/b3G5qBtFtYBmpcLTEumWwfpr2pb+ckVJfHgN YQYx79AgsSxZEu9w7mmdq+1FPhhHPpwY6bU4dipYhMaRQ9iDHVqSkui+GxBFw0y5xIjvWt7a3 phOMWygLrAX9bi7YIresBwpau5r4jpzEeJ+oMsI+yrKpv58Qbw/cj18Heu2TrBiu4hoFHxxO X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 212.227.15.3 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:122745 Archived-At: Stefan Monnier writes: > Then again, maybe > > (defun my-type-hash (v) > (let ((type (if (and (consp v) (symbolp (car v))) (car v) (type-of v)))) > (sxhash-equal (symbol-name type)))) > > is not such a bad idea after all ;-) Hmm, yes - probably, I'll go with that :-) Thanks for the elaborations. Michael.