From xemacs-m  Wed Apr 16 17:28:01 1997
Received: from jagor.srce.hr (hniksic@jagor.srce.hr [161.53.2.130])
	by xemacs.org (8.8.5/8.8.5) with ESMTP id RAA16258
	for <xemacs-beta@xemacs.org>; Wed, 16 Apr 1997 17:27:56 -0500 (CDT)
Received: (from hniksic@localhost)
          by jagor.srce.hr (8.8.5/8.8.4)
	  id AAA08529; Thu, 17 Apr 1997 00:27:52 +0200 (MET DST)
To: XEmacs Developers <xemacs-beta@xemacs.org>
Cc: bugs@gnus.org
Subject: Re: Success with 20.1final (plus patches) on Solaris 2.5.1
References: <199704162103.OAA02607@sandman> <QQcloo19467.199704162135@crystal.WonderWorks.COM>
X-URL: ftp://gnjilux.cc.fer.hr/pub/unix/util/wget/
X-Attribution: Hrv
X-Face: &}4JQk=L;e.~x+|eo]#DGk@x3~ed!.~lZ}YQcYb7f[WL9L'Z*+OyA\nA
        EL1M(".[qvI#a2E6WYI5>>e7'@_)3Ol9p|Nn2wNa/;~06jL*B%tTcn/X
        vhAu7qeES0\|MF%$;sI#yn1+y"
From: Hrvoje Niksic <hniksic@srce.hr>
Date: 17 Apr 1997 00:27:52 +0200
In-Reply-To: Kyle Jones's message of Wed, 16 Apr 1997 17:35:33 -0400 (EDT)
Message-ID: <kigg1wqvc0n.fsf@jagor.srce.hr>
Lines: 33
X-Mailer: Gnus v5.4.45/XEmacs 19.15

Kyle Jones <kyle_jones@wonderworks.com> writes:

> The toolbar had its own frame creation code.

No, I don't think so.  I mean, it does for Gnus.  For VM it simply
"knows" VM will be good enough to open its own frame.  The
`toolbar-mail' function looks like this:

(defun toolbar-mail ()
  "Run mail in a separate frame."
  (interactive)
  (let ((command (assq toolbar-mail-reader toolbar-mail-commands-alist)))
    (if (not command)
	(error "Uknown mail reader %s" toolbar-mail-reader))
    (funcall (cdr command))))

And the command for VM in the alist is:

(vm		. vm)

For Gnus the command is much much more comples -- it also involves
adding a hook to Gnus exit code to remove the frame, etc.

This is why I prefer VM's frame behaviour.  An ideal setting would be
to have a `vm-startup-in-new-frame' variable, as well as
`gnus-startup-in-new-frame', and others -- then toolbar would have its
little hands free to do what it wants, according to the user's wishes.

-- 
Hrvoje Niksic <hniksic@srce.hr> | Student at FER Zagreb, Croatia
--------------------------------+--------------------------------
You'll notice that perl is not itself written in Perl.
                                                 -- The Perl FAQ

