From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Johan Andersson Newsgroups: gmane.emacs.help Subject: Re: String to Vector Date: Wed, 3 Feb 2010 20:21:21 +0000 Message-ID: <929ccd881002031221g55417bcev971f5b6955307991@mail.gmail.com> References: <929ccd881002030940k5eff17b2ke380cbd89d3fd058@mail.gmail.com> <929ccd881002031007p7ef662b2i19f5cd0ecb6de561@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=0016e6d624692d31e9047eb7f6df X-Trace: ger.gmane.org 1265228573 27876 80.91.229.12 (3 Feb 2010 20:22:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 3 Feb 2010 20:22:53 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Lennart Borgman Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Feb 03 21:22:50 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NclkL-0003mr-Ev for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Feb 2010 21:22:45 +0100 Original-Received: from localhost ([127.0.0.1]:46774 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NclkK-0007ya-Qc for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Feb 2010 15:22:44 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NcljV-0007Uu-AP for help-gnu-emacs@gnu.org; Wed, 03 Feb 2010 15:21:53 -0500 Original-Received: from [199.232.76.173] (port=40376 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NcljS-0007Sy-4H for help-gnu-emacs@gnu.org; Wed, 03 Feb 2010 15:21:50 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1Nclj0-0004Ds-M4 for help-gnu-emacs@gnu.org; Wed, 03 Feb 2010 15:21:49 -0500 Original-Received: from fg-out-1718.google.com ([72.14.220.158]:10238) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Nclj0-0004De-5Q for help-gnu-emacs@gnu.org; Wed, 03 Feb 2010 15:21:22 -0500 Original-Received: by fg-out-1718.google.com with SMTP id e21so10836fga.12 for ; Wed, 03 Feb 2010 12:21:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=huLhvKd2wh351JtGNy0dwHF9qTi2SaOhnypQf5FNJ0Y=; b=iBqbTLJTiH6zYfFHlD+hRdr3dUJxmJjO5MDQdElGXUiwsJ+13FvYLNFcJGHcPAiyJa fg+V0ffgd9UacPtODmUCh9q/JAFcriKuVpLPOGubV3uceA/4NpJDuFHlrSVKBkET0ozR iIlC7MwQCdLsubiojFOrv/MlhL+9LEh+mPdKs= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=t3/MX+2puMUUIuh12UP4To+V6v8eAqT7iN97chhTdxi0hMPUu51eEHvn4IBvZSweeL YlGfqIRP1t2v2yeBwkQ1INUjauSb57Ur1eGpQnrNTLKQVyxltDgqzt0KImppCD3WGgp9 eH1wJ3oQ4sU0BnKwc+eTUbKr9LfXWxnHowkIs= Original-Received: by 10.216.87.80 with SMTP id x58mr49698wee.92.1265228481114; Wed, 03 Feb 2010 12:21:21 -0800 (PST) In-Reply-To: X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:71665 Archived-At: --0016e6d624692d31e9047eb7f6df Content-Type: text/plain; charset=ISO-8859-1 Ok, thanks! On Wed, Feb 3, 2010 at 6:10 PM, Lennart Borgman wrote: > On Wed, Feb 3, 2010 at 7:07 PM, Johan Andersson > wrote: > > In Emacs, it's all about finding the functions. Yes, Lennart that's the > > function I'm looking for. > > But can you execute the chain without concatenating the vectors? I would > > rather be able to do something like this: > > (progn > > (execute-kbd-macro (edmacro-parse-keys "M-x")) > > (execute-kbd-macro (edmacro-parse-keys "linum-mode")) > > (execute-kbd-macro (vector 'return))) > > I want the above to give me the same result as this: > > (execute-kbd-macro > > (vconcat > > (edmacro-parse-keys "M-x") > > (edmacro-parse-keys "linum-mode") > > (vector 'return))) > > > I have no idea. I do not use keyboard macros that way. > > But if you really want to know I guess the easiest way is just > trial-and-error. Record a keyboard macro, save it and examine how it > looks. > --0016e6d624692d31e9047eb7f6df Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Ok, thanks!

On Wed, Feb 3, 2010 at 6:10 P= M, Lennart Borgman <lennart.borgman@gmail.com> wrote:
On Wed, Feb 3, 2010 at 7:07 PM, Johan Andersson <johan.rejeep@gmail.com> wrote:<= br> > In Emacs, it's all about finding the functions. Yes, Lennart that&= #39;s the
> function I'm looking for.
> But can you execute the chain without concatenating the vectors? I wou= ld
> rather be able to do something like this:
> (progn
> =A0=A0(execute-kbd-macro (edmacro-parse-keys "M-x"))
> =A0=A0(execute-kbd-macro (edmacro-parse-keys "linum-mode"))<= br> > =A0=A0(execute-kbd-macro (vector 'return)))
> I want the above to give me the same result as this:
> (execute-kbd-macro
> =A0(vconcat
> =A0=A0(edmacro-parse-keys "M-x")
> =A0=A0(edmacro-parse-keys "linum-mode")
> =A0=A0(vector 'return)))


I have no idea. I do not use keyboard macros that way.

But if you really want to know I guess the easiest way is just
trial-and-error. Record a keyboard macro, save it and examine how it
looks.

--0016e6d624692d31e9047eb7f6df--