From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.help Subject: Re: managing my keybindings Date: Mon, 10 May 2010 10:10:10 -0400 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=us-ascii X-Trace: dough.gmane.org 1291824658 6621 80.91.229.12 (8 Dec 2010 16:10:58 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Wed, 8 Dec 2010 16:10:58 +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:10:54 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 1PQMbV-0004PM-4x for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 17:10:53 +0100 Original-Received: from localhost ([127.0.0.1]:34803 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQMbU-0002XV-4B for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Dec 2010 11:10:52 -0500 Original-Path: usenet.stanford.edu!postnews.google.com!news2.google.com!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!newsfe13.iad.POSTED!7564ea0f!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux) Cancel-Lock: sha1:jfMOQHhIoxjo7pILqGFCksNPyyg= Original-Lines: 18 Original-X-Complaints-To: abuse@UsenetServer.com Original-NNTP-Posting-Date: Mon, 10 May 2010 14:10:11 UTC Original-Xref: usenet.stanford.edu gnu.emacs.help:178100 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:75586 Archived-At: > (let (my-func) > (setq my-func (intern (concat "my-" (symbol-name func)))) This is kind of like: int my-func = 0; my-func = ; except that Elisp's semantics make it harder for the (byte-)compiler to eliminate the redundant initialization. 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