From: LanX <lanx.perl@googlemail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: managing my keybindings
Date: Mon, 10 May 2010 07:25:39 -0700 (PDT) [thread overview]
Message-ID: <bd89c363-38fb-43cd-ba79-11066f706490@24g2000yqy.googlegroups.com> (raw)
In-Reply-To: jwvhbmfetnt.fsf-monnier+gnu.emacs.help@gnu.org
> A generally good rule of thumb is "setq (aka assignment) is bad for your
> karma". So just write:
>
> (let ((my-func (intern (concat "my-" (symbol-name func)))))
>
> -- Stefan
Thanks Stefan!
Actually I tried this more than once, but was stuck in error message
"Attempt to set a constant symbol: nil"
Now I realize that I just forgot one level of parens. :(
(Anyway I knew posting ugly code provokes a fast response ;-)
Cheers
Rolf
prev parent reply other threads:[~2010-05-10 14:25 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-08 0:38 managing my keybindings LanX
2010-05-08 2:09 ` Lennart Borgman
2010-05-08 12:22 ` LanX
[not found] ` <mailman.0.1273284589.603.help-gnu-emacs@gnu.org>
2010-05-09 11:29 ` Andreas Politz
2010-05-09 11:55 ` Lennart Borgman
2010-05-09 18:21 ` LanX
2010-05-09 19:12 ` LanX
2010-05-10 14:10 ` Stefan Monnier
2010-05-10 14:25 ` LanX [this message]
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=bd89c363-38fb-43cd-ba79-11066f706490@24g2000yqy.googlegroups.com \
--to=lanx.perl@googlemail.com \
--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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).