home *** CD-ROM | disk | FTP | other *** search
- x-gateway: rodan.UU.NET from help-lucid-emacs to alt.lucid-emacs.help; Sat, 12 Dec 1992 00:16:03 EST
- Date: Fri, 11 Dec 1992 21:15:07 PST
- Message-ID: <9212120515.AA21073@thalidomide.lucid>
- X-Windows: Don't get frustrated without it.
- From: jwz@lucid.com (Jamie Zawinski)
- Sender: jwz%thalidomide@lucid.com
- Subject: Re: Iconify problem
- References: <19921211.171340.169@almaden.ibm.com>
- Newsgroups: alt.lucid-emacs.help
- Path: sparky!uunet!wendy-fate.uu.net!help-lucid-emacs
- Lines: 61
-
- In message <19921211.171340.169@almaden.ibm.com> Mickey Ferguson wrote:
- >
- > But if I iconify by using the iconify-emacs command, the title bar switches
- > after a few seconds to 'cs @ water' (which I assume is short for emacs @
- > water, which is probably the name of the workstation where lucid was linked).
-
- The iconify-emacs command has (intentionally) different behavior than
- iconifying an emacs screen from your window manager: the latter simply
- iconifies that screen, and the former replaces *all* emacs screens with
- a single icon, whose name is "emacs @ the-host-its-running-on".
-
- The code (iconify-screen (selected-screen)) has the same behavior as the
- WM iconify command.
-
- However, you shouldn't be seeing "water" (which is short for "watergate", the
- machine on which the labrea binaries were built). This is because the call to
- gethostname() is failing. I'd appreciate it if someone who is having this
- problem (that the `system-name' function returns the name of the machine on
- which emacs was built) could recompile their emacs after applying the
- following patch, so that we can tell what the actual error is.
-
- -- Jamie
-
- diff -c -r1.9 sysdep.c
- *** 1.9 1992/12/11 02:29:21
- --- sysdep.c 1992/12/12 03:29:19
- ***************
- *** 1775,1781 ****
- #ifdef BSD4_1
- return sysname;
- #else /* not USG, not 4.1 */
- ! static char system_name_saved[32];
- #ifdef VMS
- char *sp;
- if ((sp = egetenv ("SYS$NODE")) == 0)
- --- 1775,1781 ----
- #ifdef BSD4_1
- return sysname;
- #else /* not USG, not 4.1 */
- ! static char system_name_saved[256];
- #ifdef VMS
- char *sp;
- if ((sp = egetenv ("SYS$NODE")) == 0)
- ***************
- *** 1789,1795 ****
- }
- strcpy (system_name_saved, sp);
- #else /* not VMS */
- ! gethostname (system_name_saved, sizeof (system_name_saved));
- #endif /* not VMS */
- return system_name_saved;
- #endif /* not USG, not 4.1 */
- --- 1789,1796 ----
- }
- strcpy (system_name_saved, sp);
- #else /* not VMS */
- ! if (gethostname (system_name_saved, sizeof (system_name_saved)) != 0)
- ! sprintf (system_name_saved, "gethostname: %s", sys_errlist[errno]);
- #endif /* not VMS */
- return system_name_saved;
- #endif /* not USG, not 4.1 */
-