FVWM: Changing Icons for Xemacs

From: Andrew Jaffe <jaffe_at_cita.utoronto.ca>
Date: Mon, 22 Apr 1996 11:51:10 -0400

Hi, folks,

I would think this is a FAQ, but I couldn't find it anywhere...

I want to change the Icon of a window based on its name and/or icon
name. Simple, right? Well, it *almost* works for XEmacs.

In XEmacs, I have
        (setq frame-title-format "%S: %b")
        (setq frame-icon-title-format "%b")
which sets the name and icon name to "emacs: buffername" and
"buffername" respectively. In my .fvwm2rc, I have

Style "emacs" Icon gnu-animal.xpm
Style "emacs*INBOX*" Icon xmail.xpm, StickyIcon
Style "emacs* Summary$" Icon xmail.xpm, StickyIcon
Style "emacs*mail*" Icon xmail.xpm, StickyIcon
Style "emacs: *Group*" Icon news212.xpm
Style "emacs*Summary *" Icon news212.xpm

The idea is for a normal xemacs icon to be gnu-animal, a mail window to
be xmail, and a news window to be news212. It doesn't quite work: it
seems that the icon is determined by the name of the frame that
"created" the frame in question (since, I think, the new frame-name
isn't assigned until later in the process, after fvwm determines the
icon).

Does this make sense? Is there a fix? I can fix it now by creating new
frames (C-x 5 b) and destroying old ones (C-x 5 0), but that's
considerably less than automatic.

Thanks,

Andrew

----------------------------------------------------------------------
Andrew Jaffe jaffe_at_cita.utoronto.ca
CITA, U. Toronto (416) 978-8497, 6879
60 Saint George St. -3921 (Fax)
Toronto, ON M5S 1A1 CANADA
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Mon Apr 22 1996 - 10:48:41 BST

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:58 BST