fosli@UUNET.UU.NET (11/25/88)
I have tried to write a little routine for being able to enter ctrl and shift as a sequence of caracters, eg. enter ^a (when meaning CTRL-A). This require me to be able to call the command-dispatcher I think, and this I have not been able to do sucessfully. To insert controll caracters by using hat could easily be done by writing a function as: (defun ctrl-key (char) (interactive "c") (insert (- char 96))) (global-set-key "^" 'ctrl-key) But this would work if the key was supposed to invoke a command(which most ctrl keys is). Then again I could change the keymap, but that doesn't solve the whole problem as well. IS THERE A WAY I COULD WRITE SOMETHING LIKE THIS: (defun ctrl-key (char) (interactive "c") (dispatch-command (- char 96))) (global-set-key "^" 'ctrl-key) Please, post to me directly as we have lost the capability to follow this group for the time being. ----------------------------------------------------------------------- Oystein Fosli snail: P.O.Box 1053, Blindern ARPA Internet: University of Oslo fosli%ifi.uio.no@uunet.uu.net 0316 OSLO 3 voice:+47-2-45-5973 Norway