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: Thu, 28 Jul 2016 09:47:45 -0700 (PDT) Message-ID: <9dd02d8f-a99b-4a41-8ab6-375619e05916@default> 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 1469724517 31192 80.91.229.3 (28 Jul 2016 16:48:37 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Jul 2016 16:48:37 +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 Thu Jul 28 18:48:24 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 1bSoTw-00076l-Ej for geh-help-gnu-emacs@m.gmane.org; Thu, 28 Jul 2016 18:48:24 +0200 Original-Received: from localhost ([::1]:54667 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSoTv-0000ze-JD for geh-help-gnu-emacs@m.gmane.org; Thu, 28 Jul 2016 12:48:23 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48206) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSoTS-0000zW-PG for help-gnu-emacs@gnu.org; Thu, 28 Jul 2016 12:47:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bSoTO-0007L3-J7 for help-gnu-emacs@gnu.org; Thu, 28 Jul 2016 12:47:53 -0400 Original-Received: from userp1040.oracle.com ([156.151.31.81]:30184) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSoTO-0007Kz-9k for help-gnu-emacs@gnu.org; Thu, 28 Jul 2016 12:47:50 -0400 Original-Received: from userv0022.oracle.com (userv0022.oracle.com [156.151.31.74]) by userp1040.oracle.com (Sentrion-MTA-4.3.2/Sentrion-MTA-4.3.2) with ESMTP id u6SGlmmI024980 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 28 Jul 2016 16:47:48 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 u6SGlllV000560 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 28 Jul 2016 16:47:47 GMT Original-Received: from abhmp0014.oracle.com (abhmp0014.oracle.com [141.146.116.20]) by aserv0121.oracle.com (8.13.8/8.13.8) with ESMTP id u6SGlkpb004375; Thu, 28 Jul 2016 16:47:46 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: 156.151.31.81 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:110969 Archived-At: > (defvar my-str (concat "my " "string")) > (print my-str) >=20 > and get an error about void symbol my-str. It works for me. Did you evaluate the `defvar', before trying to evaluate the `print' - it sounds like you did not.