all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* String to Vector
@ 2010-02-03 17:40 Johan Andersson
  2010-02-03 17:55 ` Lennart Borgman
  0 siblings, 1 reply; 8+ messages in thread
From: Johan Andersson @ 2010-02-03 17:40 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 345 bytes --]

Hi,

How can I convert for example the string: "M-x" to the vector: "[?\M-x]"?

(string-to-vector "M-x") will not give me the correct vector. I will give me
the vector for each part of the string.

I want to do something like this:
(execute-kbd-macro
 (vconcat
  (string-to-vector "M-x ")
  (string-to-vector "linum-mode ")
  (vector 'return)))

[-- Attachment #2: Type: text/html, Size: 535 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2010-02-03 22:16 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.649.1265218832.14305.help-gnu-emacs@gnu.org>
2010-02-03 19:40 ` String to Vector Stefan Monnier
2010-02-03 22:05   ` Johan Andersson
2010-02-03 22:16 ` Pascal J. Bourguignon
2010-02-03 17:40 Johan Andersson
2010-02-03 17:55 ` Lennart Borgman
2010-02-03 18:07   ` Johan Andersson
2010-02-03 18:10     ` Lennart Borgman
2010-02-03 20:21       ` Johan Andersson

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.