From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: "cl-case" with strings Date: Fri, 05 Feb 2016 05:05:23 +0100 Message-ID: <87wpqjred8.fsf@debian.uxu> References: <8737t92s6s.fsf@debian.uxu> <56B2ABD6.6030902@yandex.ru> <87d1sdc513.fsf@mbork.pl> <8760y4ruq2.fsf@debian.uxu> <871t8sw014.fsf@mbork.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1454645165 13956 80.91.229.3 (5 Feb 2016 04:06:05 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 5 Feb 2016 04:06:05 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Feb 05 05:05:57 2016 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aRXef-0003rX-2m for geh-help-gnu-emacs@m.gmane.org; Fri, 05 Feb 2016 05:05:57 +0100 Original-Received: from localhost ([::1]:45800 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRXee-0002EM-9v for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Feb 2016 23:05:56 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38862) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRXeS-0002Dr-EL for help-gnu-emacs@gnu.org; Thu, 04 Feb 2016 23:05:45 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aRXeJ-00042V-PT for help-gnu-emacs@gnu.org; Thu, 04 Feb 2016 23:05:44 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:37609) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aRXeJ-00041u-Ib for help-gnu-emacs@gnu.org; Thu, 04 Feb 2016 23:05:35 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aRXeI-0003NI-HR for help-gnu-emacs@gnu.org; Fri, 05 Feb 2016 05:05:34 +0100 Original-Received: from nl106-137-227.student.uu.se ([130.243.137.227]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 05 Feb 2016 05:05:34 +0100 Original-Received: from embe8573 by nl106-137-227.student.uu.se with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 05 Feb 2016 05:05:34 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 24 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: nl106-137-227.student.uu.se Mail-Copies-To: never User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cancel-Lock: sha1:aeIaGQRUBl8PURa6MasfAxGM/jo= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:109014 Archived-At: Marcin Borkowski writes: >>> Or this idiom: (cl-case (intern string) ...) >> >> Then the keys cannot be strings - not an issue in >> this "case"... > > Why not? It works fine for me when `string' is > a string. It works for me too but to me it is rather a hack than idiomatic. I'd like the keys to be strings if the (original) data is. Then the keys/strings are also properly highlighted as strings because that's what they are. Now when I have my defun I don't want to change for this, but had I known of this before, perhaps (?) I wouldn't have written the defun. -- underground experts united http://user.it.uu.se/~embe8573