From xemacs-m  Tue Feb  4 17:45:36 1997
Received: from gwa.ericsson.com (gwa.ericsson.com [198.215.127.2])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id RAA13552
	for <xemacs-beta@xemacs.org>; Tue, 4 Feb 1997 17:45:35 -0600 (CST)
Received: from mr2.exu.ericsson.se (mr2.exu.ericsson.com [138.85.147.12]) by gwa.ericsson.com (8.8.2/8.8.2) with ESMTP id RAA07282 for <xemacs-beta@xemacs.org>; Tue, 4 Feb 1997 17:45:04 -0600 (CST)
Received: from screamer.rtp.ericsson.se (screamer.rtp.ericsson.se [147.117.133.13]) by mr2.exu.ericsson.se (8.7.1/NAHUB-MR1.1) with SMTP id RAA12482 for <xemacs-beta@xemacs.org>; Tue, 4 Feb 1997 17:45:03 -0600 (CST)
Received: from rcur (rcur18.rtp.ericsson.se [147.117.133.138]) by screamer.rtp.ericsson.se (8.6.12/8.6.4) with ESMTP id SAA15644 for <xemacs-beta@xemacs.org>; Tue, 4 Feb 1997 18:45:02 -0500
To: XEmacs Mailing List <xemacs-beta@xemacs.org>
Subject: Proper way to set xemacs icon?
Mime-Version: 1.0 (generated by tm-edit 7.101)
Content-Type: text/plain; charset=US-ASCII
Date: Tue, 04 Feb 1997 18:45:02 -0500
Message-ID: <21628.855099902@rtp.ericsson.se>
From: Raymond Toy <toy@rtp.ericsson.se>


What is the proper way to set the xemacs icon?  From way back when
I've been using this bit of code in my .xemacs.el to set my icon:

(x-set-frame-icon-pixmap 
 (buffer-dedicated-frame) 
 (make-pixmap (expand-file-name "~/lib/X11/twm/emacs.xpm")))

This works just fine.  However, if I gnuattach from an xterm to this
instance of xemacs, do some random editing and exit gnuattach, I get
many copies of the following message in the *Warnings* buffer:

(1) (specifier/warning) (error "Wrong device for image instance" #<image-instance (color-pixmap) on #<x-device on ":0.0" 0x96e> "emacs.xpm" 64x38x8 (0x9c00051/0x9c00053) 0x142a> #<tty-device on "/dev/pts/2" 0x160d>)

Thanks,

Ray

