From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Joe Riel Newsgroups: gmane.emacs.help Subject: Byte-compile constants in a function Date: Tue, 3 Jul 2012 09:57:12 -0700 Message-ID: <20120703095712.2bc53aae@gauss> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1341335840 32584 80.91.229.3 (3 Jul 2012 17:17:20 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 3 Jul 2012 17:17:20 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Jul 03 19:17:19 2012 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Sm6iu-0005Wg-Mi for geh-help-gnu-emacs@m.gmane.org; Tue, 03 Jul 2012 19:17:12 +0200 Original-Received: from localhost ([::1]:41014 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sm6it-0004X0-J0 for geh-help-gnu-emacs@m.gmane.org; Tue, 03 Jul 2012 13:17:11 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:44274) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sm6il-0004W0-A5 for help-gnu-emacs@gnu.org; Tue, 03 Jul 2012 13:17:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sm6Pj-0005Ok-3x for help-gnu-emacs@gnu.org; Tue, 03 Jul 2012 12:58:42 -0400 Original-Received: from cdptpa-omtalb.mail.rr.com ([75.180.132.120]:32159) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sm6Pi-0005Ng-Vt for help-gnu-emacs@gnu.org; Tue, 03 Jul 2012 12:57:23 -0400 X-Authority-Analysis: v=2.0 cv=PqURnnw3 c=1 sm=0 a=GGzZdJT2oJO+GUpSCk/8YQ==:17 a=A67dEwaWxOsA:10 a=-r7LLmKTJ_YA:10 a=05ChyHeVI94A:10 a=kj9zAlcOel0A:10 a=ayC55rCoAAAA:8 a=ZcOOn_m9jVvhiB_sxpQA:9 a=CjuIK1q_8ugA:10 a=GGzZdJT2oJO+GUpSCk/8YQ==:117 X-Cloudmark-Score: 0 X-Originating-IP: 66.75.5.27 Original-Received: from [66.75.5.27] ([66.75.5.27:51693] helo=gauss) by cdptpa-oedge02.mail.rr.com (envelope-from ) (ecelerity 2.2.3.46 r()) with ESMTP id FF/91-25624-E6423FF4; Tue, 03 Jul 2012 16:57:18 +0000 X-Mailer: Claws Mail 3.7.9 (GTK+ 2.24.4; x86_64-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 75.180.132.120 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:85633 Archived-At: Is there a way to define constant/macros so that the value is expanded during byte-compilation of a function that uses them? For example, I want to do (defconst tag-prompt ?>) (defun check (char) (eq char tag-prompt)) where the byte-compilation of check is the same as that of (defun check (char) (eq char ?>)) -- Joe Riel