From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: Execute a string as a command Date: Thu, 05 Nov 2015 22:36:42 -0500 Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1446781219 23436 80.91.229.3 (6 Nov 2015 03:40:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Nov 2015 03:40:19 +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 Nov 06 04:40:18 2015 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 1ZuXsv-0008QN-Di for geh-help-gnu-emacs@m.gmane.org; Fri, 06 Nov 2015 04:40:17 +0100 Original-Received: from localhost ([::1]:36472 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZuXsu-0005gh-QX for geh-help-gnu-emacs@m.gmane.org; Thu, 05 Nov 2015 22:40:16 -0500 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.fsmpi.rwth-aachen.de!newsfeed.straub-nv.de!eternal-september.org!feeder.eternal-september.org!mx02.eternal-september.org!barmar.motzarella.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 19 Injection-Info: barmar.motzarella.org; posting-host="2be9e9f5dd9af768b8861af71b85fc28"; logging-data="13814"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19fG9eCyjERdZ6SrFgm9Oc2" User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Cancel-Lock: sha1:xv3HADii1BwAOk0ZUORbrnrpwIA= Original-Xref: usenet.stanford.edu gnu.emacs.help:215675 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:107961 Archived-At: In article , Tim Johnson wrote: > Example : A string has the value of : > "toggle-truncate-lines" > > (setq string-wants-to-be-a-command "toggle-truncate-lines") > > How may I convert 'string-wants-to-be-a-command to a command: > I.E. => (toggle-truncate-lines) to be used programmatically? > > thanks (call-interactively (intern string-wants-to-be-a-command)) -- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me ***