home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / gnu / emacs / bug / 1594 < prev    next >
Encoding:
Text File  |  1992-12-25  |  2.4 KB  |  69 lines

  1. Newsgroups: gnu.emacs.bug
  2. Path: sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!jet.UK!pjr
  3. From: pjr@jet.UK (Paul J Rippin)
  4. Subject: termcap-1.1
  5. Message-ID: <9212241019.AA21670@mmi-codas.jet.uk>
  6. Sender: gnulists@ai.mit.edu
  7. Organization: GNUs Not Usenet
  8. Distribution: gnu
  9. Date: Thu, 24 Dec 1992 10:19:03 GMT
  10. Approved: bug-gnu-emacs@prep.ai.mit.edu
  11. Lines: 56
  12.  
  13. Version : 1.1
  14. Compiler: gcc-2.2.2
  15. Flags   : -O2
  16. H/W     : Sparc2
  17. O/S     : SunOs 4.1.2
  18.  
  19. If $TERMCAP contains the terminal description and NOT the path of the
  20. termcap file, AND $TERM is not the same terminal as the description then
  21. /etc/termcap should be used to find the new description.  This was not
  22. happening.  GNUtermcap was still trying to open the first part of the
  23. description as a file.  This came to light using the program xterm.
  24.  
  25. Xterm running as a vt100 had already loaded the vt100 description into
  26. $TERMCAP.  From the shell inside xterm we tried to run "xterm -t" which
  27. starts up a tektronix 4014 window, so xterm needed to search for the
  28. 4014 entry in /etc/termcap.  Unfortunately it never looked there, but
  29. tried to open "vs|xterm|vs100|xterm" and then reported
  30. "xterm:  unable to find usable termcap entry."
  31.  
  32. This was fixed by modifying line 410 of termcap.c.  If the code reaches
  33. this line then tem must by NULL or point to a file.  If it contains a
  34. usable entry then we have previous executed "goto ret".
  35.  
  36. Paul
  37.  
  38. *** termcap.c.orig      Thu Oct  1 14:44:34 1992
  39. --- termcap.c   Wed Dec 23 17:47:32 1992
  40. ***************
  41. *** 406,412 ****
  42.     else
  43.       indirect = (char *) 0;
  44.   
  45. !   if (!tem)
  46.   #ifdef VMS
  47.       tem = "emacs_library:[etc]termcap.dat";
  48.   #else
  49. --- 406,412 ----
  50.     else
  51.       indirect = (char *) 0;
  52.   
  53. !   if (!tem || !filep) /* tem && !filep && $TERM = name has gone to ret: */
  54.   #ifdef VMS
  55.       tem = "emacs_library:[etc]termcap.dat";
  56.   #else
  57.  
  58. +-------------------------------------------------------------------+
  59. | Paul Rippin           | Voice  : 44-(0)235-465243                 |
  60. | CODAS Division        | FAX    : 44-(0)235-464404                 |
  61. | JET Joint Undertaking | E-mail : pjr@jet.uk                       |
  62. | Abingdon              |-------------------------------------------|
  63. | Oxfordshire           |                                           |
  64. | OX14 3EA              |                                           |
  65. | United Kingdom        |                                           |
  66. +-------------------------------------------------------------------+
  67.  
  68.  
  69.