[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
elisp question
From: |
Seweryn Kokot |
Subject: |
elisp question |
Date: |
Mon, 13 Oct 2008 19:36:51 +0200 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux) |
Hello,
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 ()
(interactive)
(let* (keyb
(char-a 97)
(char-z 122)
(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.
--
regards,
Seweryn
- elisp question,
Seweryn Kokot <=