home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / alt / lucidem / help / 788 < prev    next >
Encoding:
Text File  |  1992-12-12  |  2.6 KB  |  74 lines

  1. x-gateway: rodan.UU.NET from help-lucid-emacs to alt.lucid-emacs.help; Sat, 12 Dec 1992 00:16:03 EST
  2. Date: Fri, 11 Dec 1992 21:15:07 PST
  3. Message-ID: <9212120515.AA21073@thalidomide.lucid>
  4. X-Windows: Don't get frustrated without it.
  5. From: jwz@lucid.com (Jamie Zawinski)
  6. Sender: jwz%thalidomide@lucid.com
  7. Subject: Re: Iconify problem
  8. References: <19921211.171340.169@almaden.ibm.com>
  9. Newsgroups: alt.lucid-emacs.help
  10. Path: sparky!uunet!wendy-fate.uu.net!help-lucid-emacs
  11. Lines: 61
  12.  
  13. In message <19921211.171340.169@almaden.ibm.com> Mickey Ferguson wrote:
  14. >
  15. > But if I iconify by using the iconify-emacs command, the title bar switches
  16. > after a few seconds to 'cs @ water' (which I assume is short for emacs @ 
  17. > water, which is probably the name of the workstation where lucid was linked).
  18.  
  19. The iconify-emacs command has (intentionally) different behavior than
  20. iconifying an emacs screen from your window manager: the latter simply
  21. iconifies that screen, and the former replaces *all* emacs screens with
  22. a single icon, whose name is "emacs @ the-host-its-running-on".
  23.  
  24. The code (iconify-screen (selected-screen)) has the same behavior as the
  25. WM iconify command.
  26.  
  27. However, you shouldn't be seeing "water" (which is short for "watergate", the
  28. machine on which the labrea binaries were built).  This is because the call to
  29. gethostname() is failing.  I'd appreciate it if someone who is having this
  30. problem (that the `system-name' function returns the name of the machine on
  31. which emacs was built) could recompile their emacs after applying the 
  32. following patch, so that we can tell what the actual error is.
  33.  
  34.     -- Jamie
  35.  
  36. diff -c -r1.9 sysdep.c
  37. *** 1.9    1992/12/11 02:29:21
  38. --- sysdep.c    1992/12/12 03:29:19
  39. ***************
  40. *** 1775,1781 ****
  41.   #ifdef BSD4_1
  42.     return sysname;
  43.   #else /* not USG, not 4.1 */
  44. !   static char system_name_saved[32];
  45.   #ifdef VMS
  46.     char *sp;
  47.     if ((sp = egetenv ("SYS$NODE")) == 0)
  48. --- 1775,1781 ----
  49.   #ifdef BSD4_1
  50.     return sysname;
  51.   #else /* not USG, not 4.1 */
  52. !   static char system_name_saved[256];
  53.   #ifdef VMS
  54.     char *sp;
  55.     if ((sp = egetenv ("SYS$NODE")) == 0)
  56. ***************
  57. *** 1789,1795 ****
  58.       }
  59.     strcpy (system_name_saved, sp);
  60.   #else /* not VMS */
  61. !   gethostname (system_name_saved, sizeof (system_name_saved));
  62.   #endif /* not VMS */
  63.     return system_name_saved;
  64.   #endif /* not USG, not 4.1 */
  65. --- 1789,1796 ----
  66.       }
  67.     strcpy (system_name_saved, sp);
  68.   #else /* not VMS */
  69. !   if (gethostname (system_name_saved, sizeof (system_name_saved)) != 0)
  70. !     sprintf (system_name_saved, "gethostname: %s", sys_errlist[errno]);
  71.   #endif /* not VMS */
  72.     return system_name_saved;
  73.   #endif /* not USG, not 4.1 */
  74.