help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: managing my keybindings


From: LanX
Subject: Re: managing my keybindings
Date: Wed, 08 Dec 2010 15:07:40 -0000
User-agent: G2/1.0

> 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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]