From: Marcin Borkowski <mbork@mbork.pl>
To: Emanuel Berg <embe8573@student.uu.se>
Cc: help-gnu-emacs@gnu.org
Subject: Re: "cl-case" with strings
Date: Fri, 05 Feb 2016 09:25:25 +0100 [thread overview]
Message-ID: <87zivfva16.fsf@mbork.pl> (raw)
In-Reply-To: <87wpqjred8.fsf@debian.uxu>
On 2016-02-05, at 05:05, Emanuel Berg <embe8573@student.uu.se> wrote:
> Marcin Borkowski <mbork@mbork.pl> 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.
Well, it was not my idea - I found it somewhere (can't find it right
now). I'm not sure whether this is a hack or the proper way to do it;
I quite like it personally.
> 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.
Ah, I see now what you meant.
> 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.
:-)
--
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Faculty of Mathematics and Computer Science
Adam Mickiewicz University
next prev parent reply other threads:[~2016-02-05 8:25 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-02-04 1:13 "cl-case" with strings Emanuel Berg
2016-02-04 1:39 ` Dmitry Gutov
2016-02-04 7:23 ` Marcin Borkowski
2016-02-04 22:12 ` Emanuel Berg
2016-02-04 22:30 ` Stefan Monnier
2016-02-04 22:41 ` Emanuel Berg
2016-02-05 4:55 ` Dmitry Gutov
2016-02-05 4:58 ` Emanuel Berg
2016-02-05 5:02 ` Dmitry Gutov
2016-02-05 18:20 ` Emanuel Berg
2016-02-05 18:37 ` Dmitry Gutov
2016-02-04 23:03 ` Marcin Borkowski
2016-02-05 4:05 ` Emanuel Berg
2016-02-05 8:25 ` Marcin Borkowski [this message]
[not found] ` <mailman.3642.1454623944.843.help-gnu-emacs@gnu.org>
2016-02-04 22:16 ` Joost Kremers
2016-02-05 4:52 ` Emanuel Berg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87zivfva16.fsf@mbork.pl \
--to=mbork@mbork.pl \
--cc=embe8573@student.uu.se \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.