From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: LanX Newsgroups: gmane.emacs.help Subject: Re: managing my keybindings Date: Mon, 10 May 2010 07:25:39 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <89f1a7ef-b8e5-41e9-8571-17ef186b78b4@e1g2000yqe.googlegroups.com> <9129c243-472e-4cd4-9c89-f017db8ea5b2@o14g2000yqb.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1291824849 7741 80.91.229.12 (8 Dec 2010 16:14:09 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 8 Dec 2010 16:14:09 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 08 17:14:06 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1PQMeb-0006Tz-Fy for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 17:14:05 +0100 Original-Received: from localhost ([127.0.0.1]:38300 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQMea-0004un-Nj for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 11:14:04 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!24g2000yqy.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 19 Original-NNTP-Posting-Host: 188.97.64.177 Original-X-Trace: posting.google.com 1273501539 19084 127.0.0.1 (10 May 2010 14:25:39 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Mon, 10 May 2010 14:25:39 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: 24g2000yqy.googlegroups.com; posting-host=188.97.64.177; posting-account=W9fpQwoAAADZYmkl-8sXk1VPxG3rq-Pd User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.0.19) Gecko/2010040118 Ubuntu/8.10 (intrepid) Firefox/3.0.19,gzip(gfe) Original-Xref: usenet.stanford.edu gnu.emacs.help:178101 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:75590 Archived-At: > A generally good rule of thumb is "setq (aka assignment) is bad for your > karma". =A0So just write: > > =A0 =A0(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