From: Johan Andersson <johan.rejeep@gmail.com>
To: Lennart Borgman <lennart.borgman@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: String to Vector
Date: Wed, 3 Feb 2010 18:07:14 +0000 [thread overview]
Message-ID: <929ccd881002031007p7ef662b2i19f5cd0ecb6de561@mail.gmail.com> (raw)
In-Reply-To: <e01d8a51002030955g6f5cc95fm703eaac7fc11bbf7@mail.gmail.com>
[-- Attachment #1: Type: text/plain, Size: 876 bytes --]
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)))
On Wed, Feb 3, 2010 at 5:55 PM, Lennart Borgman
<lennart.borgman@gmail.com>wrote:
> On Wed, Feb 3, 2010 at 6:40 PM, Johan Andersson <johan.rejeep@gmail.com>
> wrote:
> > Hi,
> > How can I convert for example the string: "M-x" to the vector: "[?\M-x]"?
>
> Is it something like this you are looking for:
>
> (edmacro-parse-keys "M-x")
>
[-- Attachment #2: Type: text/html, Size: 1468 bytes --]
next prev parent reply other threads:[~2010-02-03 18:07 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-03 17:40 String to Vector Johan Andersson
2010-02-03 17:55 ` Lennart Borgman
2010-02-03 18:07 ` Johan Andersson [this message]
2010-02-03 18:10 ` Lennart Borgman
2010-02-03 20:21 ` Johan Andersson
[not found] <mailman.649.1265218832.14305.help-gnu-emacs@gnu.org>
2010-02-03 19:40 ` Stefan Monnier
2010-02-03 22:05 ` Johan Andersson
2010-02-03 22:16 ` Pascal J. Bourguignon
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=929ccd881002031007p7ef662b2i19f5cd0ecb6de561@mail.gmail.com \
--to=johan.rejeep@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=lennart.borgman@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.