From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tom Browder Newsgroups: gmane.emacs.help Subject: Re: How do I use a var as a string? Date: Thu, 28 Jul 2016 12:11:03 -0500 Message-ID: References: <9dd02d8f-a99b-4a41-8ab6-375619e05916@default> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1469725896 10308 80.91.229.3 (28 Jul 2016 17:11:36 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 28 Jul 2016 17:11:36 +0000 (UTC) Cc: "help-gnu-emacs@gnu.org" To: Drew Adams Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jul 28 19:11:35 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 1bSoqM-0001EG-Mg for geh-help-gnu-emacs@m.gmane.org; Thu, 28 Jul 2016 19:11:34 +0200 Original-Received: from localhost ([::1]:54770 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSoqL-00047M-Me for geh-help-gnu-emacs@m.gmane.org; Thu, 28 Jul 2016 13:11:33 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54807) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSopv-000475-2u for help-gnu-emacs@gnu.org; Thu, 28 Jul 2016 13:11:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bSops-0004p6-PF for help-gnu-emacs@gnu.org; Thu, 28 Jul 2016 13:11:05 -0400 Original-Received: from mail-oi0-x231.google.com ([2607:f8b0:4003:c06::231]:35344) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bSops-0004p2-Jv for help-gnu-emacs@gnu.org; Thu, 28 Jul 2016 13:11:04 -0400 Original-Received: by mail-oi0-x231.google.com with SMTP id l72so72154786oig.2 for ; Thu, 28 Jul 2016 10:11:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=4eqX5WyobWj9OgQmJzSFJI1Xy8Yj9JBv0Lf22uf1cQM=; b=YdtO3IXelqSQoND0N8Q7DGOvvDdxF/elX5SISUmIlvUau054OUevPKxONiALjBYE+A hjr7l3wTBISBntez2HYJ36avNUY+pIjK8kI2WTjm1nJrmzXbsEmj/4P0YRre/2MLcli3 gpPSeoPhhACmU5Kf1w5zS46klQNW2oAJf3EP9fuDP/Vm/PoVdJaGX1a5CBTMxsa6/gzR QGSgQ3RRaaWR/cTAb+Fauh9vIHPXJb8ncIxNJNHI162x6AD9VHIGGxaVCJvetoYVH4GO g5/2/ePOTmW5vwfIGu76nvALV2jP/+451zjWi5GXE0lxL4Qrxvsc260KhWFy90shRYYm MM8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=4eqX5WyobWj9OgQmJzSFJI1Xy8Yj9JBv0Lf22uf1cQM=; b=XTkxGVlS2UONBX1m1YFcMS7vMvBuJuPlqVUu80exWUaajRPC09ISpM9zi510o5v9UB b8RnYO3OUcVdfZSK3fh5Uei8cj7EhGHWtd33spIQLmspDE8TXrQ5gFpTEeYBmiuom4bi AB/krjG+0EZnC7cD0YrJs/Lt9eB8vv26ZQdt28Gb0xPOrNvN1Y5unSA+Zh9bWXbrWrMP 0fy6fJv4ykFc3lynedHM/vGJyxQowx7RT0622BCrYpPvD5sKuzeOXXEYOu8fuIvNgBhc XJx/nqyPHvJBwf51v42p4PxuZ31SBN0IqawGqXnwR3VhqFBbtEETE4dI0sJxfl4h+1qA yHeQ== X-Gm-Message-State: AEkoouvpB0BD1oqOo2CnE4kRBmgmFma2ecaipyRvIiDEiY/pU5KZWmW8+aVz67jJZ1zRK7P7y3A5Is1ZI5eMkg== X-Received: by 10.157.22.153 with SMTP id c25mr23662395ote.111.1469725864176; Thu, 28 Jul 2016 10:11:04 -0700 (PDT) Original-Received: by 10.157.62.135 with HTTP; Thu, 28 Jul 2016 10:11:03 -0700 (PDT) In-Reply-To: <9dd02d8f-a99b-4a41-8ab6-375619e05916@default> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4003:c06::231 X-Content-Filtered-By: Mailman/MimeDel 2.1.21 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:110973 Archived-At: On Thursday, July 28, 2016, Drew Adams wrote: > > (defvar my-str (concat "my " "string")) > > (print my-str) > > > > 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. > Duh, no I didn't! Then it does work! (I should be evaling the buffer for the experimenting I'm doing.) Thanks, Drew. -Tom