Ar an t-ochtú lá is fiche de mí Iúil, scríobh Alan Mackenzie:
I would like to put functions into function-key-map as the bindings
key sequence, something like:
(define-key function-key-map [?\e ?\[ ?1 ?}] 'kn-prefix-control)
, the intention being that on receiving the key sequence ESC [ 1 },
the control modifier will be added to the next key received.
This works fine on another editor. I'm not having luck with it in
XEmacs. The documentation for function-key-map doesn't mention
functions as bindings.
Yes, this is possible. See keymap.el, especially this:
(define-key function-key-map-parent [?\C-x ?＠ ?c] 'event-apply-control-modifier)
(though the binding would equally work in function-key-map.) The various
files in lisp/term/ do similar things all the time, and we should probably
add some code there to support your terminal--what is it, exactly?
If there isn't the possibility of functions here, is there some
to do what I want?
‘Iodine deficiency was endemic in parts of the UK until, through what has been
described as “an unplanned and accidental public health triumph”, iodine was
added to cattle feed to improve milk production in the 1930s.’
(EN Pearce, Lancet, June 2011)
XEmacs-Beta mailing list