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: Fri, 29 Jul 2016 09:50:39 -0500 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: ger.gmane.org 1469803881 10018 80.91.229.3 (29 Jul 2016 14:51:21 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 29 Jul 2016 14:51:21 +0000 (UTC) To: "help-gnu-emacs@gnu.org" Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jul 29 16:51:21 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 1bT98C-00068v-Ib for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Jul 2016 16:51:20 +0200 Original-Received: from localhost ([::1]:59964 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bT986-0007uA-JY for geh-help-gnu-emacs@m.gmane.org; Fri, 29 Jul 2016 10:51:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41511) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bT97b-0007tt-M8 for help-gnu-emacs@gnu.org; Fri, 29 Jul 2016 10:50:44 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bT97Z-0000fx-Sz for help-gnu-emacs@gnu.org; Fri, 29 Jul 2016 10:50:42 -0400 Original-Received: from mail-oi0-x22f.google.com ([2607:f8b0:4003:c06::22f]:36469) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bT97Z-0000fs-Nu for help-gnu-emacs@gnu.org; Fri, 29 Jul 2016 10:50:41 -0400 Original-Received: by mail-oi0-x22f.google.com with SMTP id w18so109344259oiw.3 for ; Fri, 29 Jul 2016 07:50:41 -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; bh=WYsy75j2SUE9zlbNLVdRyGrR7AnoJWzo8bHD3GLqkvU=; b=RmkqOfR6pxVmW7Urs6kruUUJjYhQ9JEF4Pd9MDKQGCbT5n59ukBSSLFpy6eTjKQlOu N6tjsC5/cLXQY998zfPJlhl5z3//L6nmzgZ5qay6oMrt5zUmoV88X4I6Q4yoO2Md5qDP 15pNmQEPvoBasHcJDuaGzZeFA75ccRdnez/DOGSWGQXHtq9zObJfwmnE8sRiMzrumThq /IT5s0Xf6TcWYL2EqxCcca91gClapnFtAkS9aPFo9jIwk4T0FR6jRabhaUPN1DqP8xoz 6ll38tsGf6sErnFOCMY3aCix5ELbRSiDz2gL/u4gbC59LNv+I/jOc0QzoLf/Hu3Z36t8 QIVQ== 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; bh=WYsy75j2SUE9zlbNLVdRyGrR7AnoJWzo8bHD3GLqkvU=; b=L7e+gzUGRR2sgFaLuiClMJB9oOUYq+W9z6bxtqwZRua3PtV02KoYuGMyL0T7ksEvCx t+fjUJOgG/dc1Beem/4qDCgvCSxTp4IQzQHJZQuMQuz3D4JMMLhZY7l5LTsbDTeCH9FM kAhikgNVq9fx+zarjaDhHiq5DYpC3/cSphV/YwigyerFRCcyaOhAysqZgHM08BSfLOb0 z+XC9+gT3PM78+e9N91uLtvIG4a8t+2kqEcivZRNShcHEhd4p09jlIYmBajwUXEmcs9T KBztHu4Vgk8tLMlxU4LL0bHLtoXYcZIPeyDaJtl0BA/1djQOsKVB/xRTKzEoZKNeJ6D5 eMuw== X-Gm-Message-State: AEkoouuVii2A4nspCDu7J6FIeqnx4fl4KA0Bk7XxqZKZYmzmWVicyckEoXvTBMQYaPn3pSjL2fctex3BbKeiRQ== X-Received: by 10.157.47.248 with SMTP id b53mr26537000otd.106.1469803840856; Fri, 29 Jul 2016 07:50:40 -0700 (PDT) Original-Received: by 10.157.62.135 with HTTP; Fri, 29 Jul 2016 07:50:39 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:4003:c06::22f 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:110998 Archived-At: On Thursday, July 28, 2016, Tom Browder wrote: > 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")) > My next experiment will be to use "(defconst ...)" which I'm hoping will solve the problem. -Tom