From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Drew Adams Newsgroups: gmane.emacs.help Subject: RE: How do I use a var as a string? Date: Fri, 29 Jul 2016 07:59:52 -0700 (PDT) Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1469804449 13921 80.91.229.3 (29 Jul 2016 15:00:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Jul 2016 15:00:49 +0000 (UTC) To: Tom Browder , help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 29 17:00:37 2016 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 1bT9H9-0002Bj-Vz for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Jul 2016 17:00:36 +0200 Original-Received: from localhost ([::1]:59997 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bT9H4-0004O4-1F for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Jul 2016 11:00:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:43567) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bT9Gc-0004Nw-1s for help-gnu-emacs@gnu.org; Fri, 29 Jul 2016 11:00:02 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bT9GY-0002a8-UL for help-gnu-emacs@gnu.org; Fri, 29 Jul 2016 11:00:02 -0400 Original-Received: from aserp1040.oracle.com ([141.146.126.69]:39747) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bT9GY-0002a4-Kt for help-gnu-emacs@gnu.org; Fri, 29 Jul 2016 10:59:58 -0400 Original-Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by aserp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u6TExu7e009631 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 29 Jul 2016 14:59:56 GMT Original-Received: from aserv0121.oracle.com (aserv0121.oracle.com [141.146.126.235]) by userv0022.oracle.com (8.14.4/8.13.8) with ESMTP id u6TExs5X026121 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 29 Jul 2016 14:59:55 GMT Original-Received: from abhmp0008.oracle.com (abhmp0008.oracle.com [141.146.116.14]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id u6TExrBe025804; Fri, 29 Jul 2016 14:59:54 GMT In-Reply-To: X-Priority: 3 X-Mailer: Oracle Beehive Extensions for Outlook 2.0.1.9 (901082) [OL 12.0.6744.5000 (x86)] X-Source-IP: userv0022.oracle.com [156.151.31.74] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 141.146.126.69 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 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" Xref: news.gmane.org gmane.emacs.help:110999 Archived-At: > > I want to bind a string to a variable and then use the variable name as > > the string when a string is expected. I have tried variations of this: > > (defvar my-str (concat "my " "string")) >=20 > My next experiment will be to use "(defconst ...)" which I'm hoping will > solve the problem. What problem? It's not clear (to me) what you are trying to do.