home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / gnu / emacs / help / 4836 < prev    next >
Encoding:
Internet Message Format  |  1992-11-17  |  3.9 KB

  1. Path: sparky!uunet!usc!elroy.jpl.nasa.gov!ames!sun-barr!west.West.Sun.COM!cronkite.Central.Sun.COM!texsun!digi!kgallagh
  2. From: kgallagh@digi.lonestar.org (Kevin Gallagher)
  3. Newsgroups: gnu.emacs.help
  4. Subject: Re: Help in Demacs
  5. Message-ID: <1992Nov18.024630.10665@digi.lonestar.org>
  6. Date: 18 Nov 92 02:46:30 GMT
  7. References: <9211131423.AA06353@accura_nc.aisg.com> <hm342st.721920493@unidui>
  8. Organization: DSC Communications Corp, Plano, TX
  9. Lines: 69
  10.  
  11. In article <hm342st.721920493@unidui> hm342st@unidui.uni-duisburg.de (Michael Staats) writes:
  12. >In <9211131423.AA06353@accura_nc.aisg.com> keith%accura_nc@concert.net (Keith B. Kee {AISG} ) writes:
  13. >
  14. >>Hi:
  15. >> I have obtained a copy of demacs 1.20. After hours of installing it, I 
  16. >>finally got it running. However, there are two things that I could not
  17. >>get it to work right. 
  18. >
  19. >>    1) Putting (load-library "bobcat") in my _emacs did not swap the 
  20. >>       backspace and Del.
  21. >
  22. >Hello,
  23. >the .../lisp/term directory is not in the default load-path.
  24. >Use
  25. >(load-library "term/bobcat")
  26. >instead.
  27.  
  28. But if (load-library "bobcat") failed to find bobcat.el, it would have
  29. complained by issuing an error message.  My copy of Demacs came with bobcat.el
  30. in the demacs/lisp directory, not the demacs/lisp/term directory.  So I don't
  31. think that this will solve Keith's problem.
  32.  
  33. I believe that Keith may be misunderstanding what bobcat.el does.  It does NOT
  34. swap the meaning of the Backspace and Del KEYS on the PC keyboard.  It
  35. actually has nothing to do with the PC Del key (or the extended Delete key).
  36. It swaps the C-h ascii character with the DEL ascii character, when seen by
  37. emacs as entered from the keyboard.  The PC BackSpace key normally results in
  38. a C-h being seen by the application program.  Holding the PC control key down
  39. and pressing the PC BackSpace key normally results in a DEL character being
  40. seen by the application program (which many people don't realize).
  41.  
  42. When bobcat.el is loaded into Demacs, it tells Demacs to treat any C-h
  43. character it sees coming from the keyboard as if a DEL character were sent
  44. from the keyboard, and vice versa.  This results in the BackSpace key (and C-h
  45. entered from the keyboard, using the PC control key and H keys) appearing as a
  46. DEL character to Demacs.  To have Demacs think that a C-h character was
  47. entered from the keyboard, you have to press the PC control key and BackSpace
  48. keys together.
  49.  
  50. >>    2) I could not get the "mark-command" from my keyboard. I tried
  51. >>       using ^h-k to help me determine the bindings, and typing
  52. >>       c-@ on the keyboard gave me this sequence instead: c-@ c-c.
  53. >
  54. >Can't help you with that, on the german keyboard it is a little
  55. >different. But try Control-Space to set the mark.
  56.  
  57. Some, but not all, keyboards generate a C-@ when Control-Space is entered.
  58. Under ANSI.SYS, on a PC, Control-Space does NOT return a C-@.  Instead, it
  59. simply returns a Space character when Control-Space is entered from the PC
  60. keyboard.  That is, ANSI.SYS ignores the fact that the control key is pressed.
  61.  
  62. The authors of Demacs clearly have modified the Demacs code to directly detect
  63. when the control key is pressed so that Demacs can choose to interpret
  64. Control-Space as a C-@ (NUL) character, since Demacs cannot depend upon
  65. ANSI.SYS to do this for it.
  66.  
  67. Unfortunately, on the PC, most PC function and keypad keys generate
  68. two-character sequences, the first of which is C-@.  Therefore, in Demacs, C-@
  69. cannot be bound to set-mark-command (the GNU Emacs default binding) because
  70. C-@ is a prefix-character for most of the PC function and keypad keys.  So,
  71. the authors of Demacs compromised and bound the set-mark-command to the
  72. sequence C-@ C-@.  Thus, to set the mark in Demacs, just press Control-Space
  73. TWICE.
  74.  
  75. -- 
  76. ----------------------------------------------------------------------------
  77. Kevin Gallagher        kgallagh@digi.lonestar.org OR ...!uunet!digi!kgallagh
  78. DSC Communications Corporation   Addr: MS 152, 1000 Coit Rd, Plano, TX 75075
  79. ----------------------------------------------------------------------------
  80.