home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume1 / 8711 / microemacs-3.9 / ue3.9e.bugfix < prev    next >
Text File  |  1988-04-08  |  3KB  |  84 lines

  1. Article 682 of comp.sources.bugs:
  2. Path: tut.cis.ohio-state.edu!mailrus!nrl-cmf!ukma!uflorida!codas!usfvax2!jc3b21!larry
  3. From: larry@jc3b21.UUCP (Lawrence F. Strickland)
  4. Newsgroups: comp.sources.bugs,comp.emacs
  5. Subject: Bug in Uemacs 3.9e (w/cursor key mods)
  6. Keywords: MicroEmacs 3.9e BSD
  7. Message-ID: <363@jc3b21.UUCP>
  8. Date: 7 Apr 88 13:00:04 GMT
  9. Organization: St. Petersburg Jr. College, FL
  10. Lines: 69
  11. Xref: tut.cis.ohio-state.edu comp.sources.bugs:682 comp.emacs:1599
  12.  
  13. In the modifications to MicroEmacs 3.9e to allow cursor/function key handling
  14. under UNIX, there was a bug that affected ONLY building MicroEmacs on a BSD
  15. type system.  The (simple) patch is given below:
  16.  
  17. DESCRIPTION:  When using BSD4.[23], the ESC key did not always work unless
  18. you waited at least one second after hitting the key.
  19.  
  20. REPEAT-BY:  Execute emacs, then hit ESC followed by x rather fast.  Instead
  21. of getting a : at the bottom of the screen, nothing happens.  Hitting the
  22. space bar results in the message:  [Mark Set]
  23.  
  24. FIX: At or about line 448 in the tcap.c file, you will find the two lines:
  25.         if(pbptr > pbbuf)
  26.             c = *--pbptr;
  27. Change to the following four lines (NOTE:  just add two lines):
  28.         if(pbptr > pbbuf)
  29.             {
  30.             c = *--pbptr;
  31.             return(127 & c);
  32.             }
  33. Note that this is a QUICK FIX.  There are some additional changes that would
  34. prove better, but this does repair the problem.  A more complete change that
  35. improves running speed follows.  Here is an official context diff which can
  36. be used with Larry Walls patch program:
  37.  
  38. -------cut here-------------------cut here-------------------cut here-------
  39. *** tcap.c.orig    Thu Apr  7 07:43:50 1988
  40. --- tcap.c    Thu Apr  7 07:45:51 1988
  41. ***************
  42. *** 446,451
  43.       int c;
  44.   
  45.       if(pbptr > pbbuf)
  46.           c = *--pbptr;
  47.   #if    USG
  48.       else if(kbdqp)    /* char waiting in buffer */
  49.  
  50. --- 446,452 -----
  51.       int c;
  52.   
  53.       if(pbptr > pbbuf)
  54. +         {
  55.           c = *--pbptr;
  56.           return(127 & c);
  57.           }
  58. ***************
  59. *** 447,452
  60.   
  61.       if(pbptr > pbbuf)
  62.           c = *--pbptr;
  63.   #if    USG
  64.       else if(kbdqp)    /* char waiting in buffer */
  65.           {
  66.  
  67. --- 448,455 -----
  68.       if(pbptr > pbbuf)
  69.           {
  70.           c = *--pbptr;
  71. +         return(127 & c);
  72. +         }
  73.   #if    USG
  74.       else if(kbdqp)    /* char waiting in buffer */
  75.           {
  76. -------cut here-------------------cut here-------------------cut here-------
  77. -- 
  78. +--------------------------------------+-- St. Petersburg Junior College --+
  79. |        Lawrence F. Strickland        |   P.O. Box 13489                  |
  80. | ...gatech!codas!usfvax2!jc3b21!larry |   St. Petersburg, FL 33733        |
  81. +-(or) ...gatech!usfvax2!jc3b21!larry -+-- Phone: +1 813 341 4705 ---------+
  82.  
  83.  
  84.