From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Mathias Dahl Newsgroups: gmane.emacs.help Subject: Re: Execute as a command a yanked text Date: Wed, 03 May 2006 11:35:30 +0200 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1146649255 11441 80.91.229.2 (3 May 2006 09:40:55 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 3 May 2006 09:40:55 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed May 03 11:40:54 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FbDqi-000571-Ix for geh-help-gnu-emacs@m.gmane.org; Wed, 03 May 2006 11:40:49 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FbDqi-0008CA-5H for geh-help-gnu-emacs@m.gmane.org; Wed, 03 May 2006 05:40:48 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!newsfeed-00.mathworks.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 25 Original-X-Trace: individual.net 9DOJu3hnYa/B289iSJQpAQENSaoGWukn0gcF6H3rG0Mh9dM5gg User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (windows-nt) Cancel-Lock: sha1:NQSfnmwuY1xCZ4BZJHEoqEuO8Qk= Original-Xref: shelby.stanford.edu gnu.emacs.help:139143 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:34766 Archived-At: Stefan Horomnea writes: > Hello, > > Do you have any idea how to execute a text that was previously killed ? > I mean, I have a function named insert-html-table. > > This code works: > (command-execute 'insert-html-table) > > This code doesn't work: > (command-execute (car kill-ring-yank-pointer)) > > *and I have previously killed "insert-html-table" > > and, this also works (insert (car kill-ring-yank-pointer)) - and > inserts the text: "insert-html-table". The problem seems to be that (car kill-ring-yank-pointer) returns a *string*, not a symbol which `command-execute' needs. Maybe this works (untested): (command-execute (make-symbol (car kill-ring-yank-pointer))) Try it.