[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Mon, 13 Oct 2008 19:36:51 +0200
Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)
I would like to get a list of functions for keybindings from C-x C-a to
C-x C-z etc.
Since (key-binding (kbd "C-x C-f")) gives find-file
I try to write something like this:
(defun my-list-keybindings ()
(n (- char-z char-a)))
(dotimes (i n)
(setq keyb (concat "C-x C-" (char-to-string (+ char-a i))))
(key-binding (kbd keyb)))))
but unfortunately it doesn't work because kbd doesn't accept variable
string. How to modify this function to get it work?
Thanks in advance.
- elisp question,
Seweryn Kokot <=