🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.epoch.misc
Article #1969

GWM won't name my Epoch icons correctly

#1969
From: Douglas K. Rand
Date: Sun, 19 May 1991 02:56
36 lines
2154 bytes
I'm using the following code to set my window and icon names in Epoch.
I set my window names to be the buffer name with "@ <hostname>" after
it. My icon names are just the buffer names. (I hate wide icons!)

GWM changes my window names for me just fine. They get out of sync
once in a while, but I think that that is a problem with Epoch not
calling the set-window-buffer-hook often enough.

Ok. So not I've got a window with ".profile.gwm @ phoenix" at the top.
"M-ESC (title)" returns the same string. "M-ESC (icon-name" returns
".profile.gwm", just like it should. But when I iconize the window, it
gets named "icon".

Anybody? Here is my Epoch code to set the window name.

(defun set-window-name (win)
  (let* ((buff (window-buffer win))
	 (name (or (and buff (buffer-name buff)) "# No-Name #") )
	 (scr (epoch::screen-of-window win)))
    (if (and buff (buffer-file-name buff))
	(progn (epoch::title (concat name " @ " (system-name)) scr)
	       (epoch::icon-name name scr)))))

(setq set-window-buffer-hook 'set-window-name)


Here is my GWM code dealing with the icons.

(customize simple-icon any Emacs               simple-icon.background (color-make "wheat"))
(customize simple-icon any MiniBuffer          simple-icon.background (color-make "wheat"))
(set-icon-window any        simple-icon)

--
Douglas Keenan Rand                Honeywell -- Air Transport Systems Division
Phone: +1 602 436 2814               US Snail: P.O. Box 21111 Phoenix AZ 85036
NSFnet: rand@hwcae.cfsat.honeywell.com   UUCP: uunet!asuvax!apciphx!hwcae!rand
Technical Details
Message-ID: <9105190256.AA07676@hwcae.cfsat.honeywell.com>
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!unreplyable!garbage

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fc7ee,4030602daaa915c8,start
X-Google-Attributes: gidfc7ee,public
X-Google-ArrivalTime: 1991-05-19 04:17:39 PST
Path: arc1-ca.pugleaf.net!gmdzi!unido!mcsun!uunet!tut.cis.ohio-state.edu!unreplyable!garbage
From: rand@hwcae.cfsat.honeywell.com (Douglas K. Rand)
Newsgroups: gnu.epoch.misc
Subject: GWM won't name my Epoch icons correctly
Message-ID: <9105190256.AA07676@hwcae.cfsat.honeywell.com>
Date: 19 May 91 02:56:35 GMT
Sender: daemon@tut.cis.ohio-state.edu
Distribution: gnu
Organization: GNUs Not Usenet
Lines: 36