home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Source Code 1993 July / THE_SOURCE_CODE_CD_ROM.iso / gnu / lucid / help-lucid-emacs / text0432.txt < prev    next >
Encoding:
Text File  |  1993-07-14  |  2.7 KB  |  66 lines

  1. Per Abrahamsen wrote:
  2. > It was also slightly easier to figure out how to redefine oslash, since
  3. > I could define it interactively and examine what was changed in the keymap.
  4.  
  5. I don't see how this is any harder in lemacs (C-h b).
  6.  
  7. > I think about it as remapping text.  The text just happens to come
  8. > from the keyboard in one case, but may as well be in a buffer.
  9.  
  10. But X doesn't give you text, it gives you keysyms; it's up to the application
  11. (emacs) to translate keysyms to text, and that's where define-key sits.  Emacs
  12. doesn't really have a second-level hook for doing further translation on that
  13. text, and this is why I don't think that thinking of it as remapping text is
  14. the best model (given what you've got to work with right now, at least.)
  15.  
  16. > I'm not interested in anything from the keyboard that is not text, not
  17. > even plain-old control characters.
  18.  
  19. Well let's say you've changed the ` key to generate oslash; I would expect
  20. C-` to then be interpreted as C-oslash, not C-`, because that's what it
  21. would do if you were sitting at a keyboard which came from the factory
  22. with oslash on it, instead of simulating one.
  23.  
  24. > - Numbers easier for programs than symbols.
  25.  
  26. No they're not.  This is lisp!
  27.  
  28. > - Symbols easier than numbers for humans.
  29. > Events may then be either symbols or integers (plus auxiliary
  30. > information) which might be considered inelegant.
  31.  
  32. It certainly is by me...
  33.  
  34. > It is not inelegant from my point of view, since `printable' and `special'
  35. > keys really are different for my application (they even have different
  36. > colors on my Sun type-4 keyboard :-).
  37.  
  38. But for my application (lemacs) they're not different at all; A and F1 and
  39. oslash and Control-Meta-cokebottle are the same thing: sequences of little
  40. plastic squares sitting on microswitches which you can bind commands to.  Some
  41. of those commands involve inserting elements of some character set or another
  42. into buffers, and some don't.
  43.  
  44. I'm not ruling out use of unicode (I haven't thought too hard about it yet)
  45. but it's going to take a lot of covincing for me to use integers as events.
  46. Not that using unicode necessarily implies that.
  47.  
  48. > For output FSF has included Howard Gayle's code for mapping between the
  49. > character set in the buffer and the character set being displayed.  This
  50. > means that it is f.x. possible to view (and edit) Latin1 text with a pure
  51. > ASCII terminal (or font).  oslash will be stored as character 248 but
  52. > displayed as {\o}.
  53. > I can't figure out if Lucid can do this.  It documents
  54. > `standard-display-table', but then refers to `buffer-display-table'
  55. > which is not documented.
  56.  
  57. None of the display table stuff works right now, but it (or something of
  58. equivalent functionality) will most likely be made to work some time in the
  59. future (after the new redisplay is in place.)
  60.  
  61.     -- Jamie
  62.  
  63.