Playing around with uemacs I noticed that some of the default alternative key bindings are set to the Fn key in combination with a different key (for example, an alternative for 'help' is set to FNh, i.e. press Fn+h). From what I know, using the Fn key as a meta key is not possible (since doing the command xev and pressing Fn does not generate any keycode). Is there a work around for using Fn in uemacs?
Asked
Active
Viewed 578 times
2
-
This `FNh` is an internal name in uemacs. It is not related to the `Fn` key on laptops. Which of the several uemacs/microemacs are you using? – Gilles 'SO- stop being evil' Jan 01 '12 at 19:32
-
1It's from github, version 4.0.15. What do you mean by internal name? – chimil Jan 02 '12 at 12:30
1 Answers
2
OP is likely referring to
- this project on github: https://github.com/snaewe/uemacs,
- created by an import from https://www.kernel.org/pub/software/editors/uemacs/em-4.0.15-lt.tar.gz
Referring to the source (on github, since it is easily linked and not much changed from the import):
emacs.rc has bindings like this:
bind-to-key help FN;which use
FNas an internal name, e.g.,bind.c in functions cmdstr and stock translates that from/to the mask value
SPEC(special key).uemacs only knows about terminals (no X), so
xevis irrelevant- uemacs detects special keys when you type them into a terminal because they are escape sequences. In particular, those which begin with CSI, e.g., escape[ tell it to mark those with
SPEC. - It does this in input.c function
getcmdby ORing theSPECflag with the final character of the escape sequence which it read. For instance, a cursor up-arrow would be escape[A. - in ebind.h, that corresponds to the
backlinefunction.
So there is no literal "FN" used for a key-binding, nor is the special key FN used (which you may find on various small keyboards, e.g., laptops). It is used only to make the bindings more readable.
Further reading:
Thomas Dickey
- 75,040
- 9
- 171
- 268