From owner-ntemacs-users@june  Tue Oct  8 14:57:19 1996
X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil]
	[nil "Tue" " 8" "October" "1996" "17:12:31" "-0400" "Peter Breton" "pbreton@volte-2.i-kinetics.com" nil "21" "> Again Gnuclient" "^From:" nil nil "10" nil nil nil nil]
	nil)
Received: from joker.cs.washington.edu (joker.cs.washington.edu [128.95.1.42]) by june.cs.washington.edu (8.7.6/7.2ju) with SMTP id OAA01378 for <voelker@june.cs.washington.edu>; Tue, 8 Oct 1996 14:57:16 -0700
Received: from june.cs.washington.edu (june.cs.washington.edu [128.95.1.4]) by joker.cs.washington.edu (8.6.12/7.2ws+) with ESMTP id OAA27253 for <voelker@joker.cs.washington.edu>; Tue, 8 Oct 1996 14:57:14 -0700
Received: from ns.i-kinetics.com (ns.i-kinetics.com [198.69.254.24]) by june.cs.washington.edu (8.7.6/7.2ju) with SMTP id OAA26383 for <ntemacs-users@cs.washington.edu>; Tue, 8 Oct 1996 14:14:23 -0700
Received: from i-kinetics.com (dirac [192.31.81.157]) by ns.i-kinetics.com (8.6.12/8.6.9) with SMTP id RAA10711; Tue, 8 Oct 1996 17:08:07 -0400
Received: from volte-2.i-kinetics.com ([192.31.81.196]) by i-kinetics.com (4.1/SMI-4.1/UUNET) 	id AA17430; Tue, 8 Oct 96 17:13:04 EDT
Received: by volte-2.i-kinetics.com (SMI-8.6/SMI-SVR4) 	id RAA17487; Tue, 8 Oct 1996 17:12:31 -0400
Message-Id: <199610082112.RAA17487@volte-2.i-kinetics.com>
In-Reply-To: <199610081942.AA01722@lambda.unx.sas.com>
References: <199610081808.LAA09602@june.cs.washington.edu> 	<199610081942.AA01722@lambda.unx.sas.com>
Reply-To: pbreton@i-kinetics.com
From: Peter Breton <pbreton@volte-2.i-kinetics.com>
To: David Biesack <sasdjb@unx.sas.com>
Cc: sj017gu@unidui.uni-duisburg.de, ntemacs-users@cs.washington.edu
Subject: > Again Gnuclient
Date: Tue, 8 Oct 1996 17:12:31 -0400


 >> the GnuClient keeps me awake. Great program, but one drawback is
 >> left: a few days ago someone asked to de-iconify emacs on
 >> gnuclient request or to bring it to front.

 David> (require 'advice) (defadvice server-edit-files (after
 David> server-raise-frame activate) (raise-frame (selected-frame))
 David> (setq gnuserv-frame (selected-frame)))

 David> (defadvice server-edit-files (after server-raise-frame
 David> activate) (raise-frame (selected-frame)) (message "raising
 David> frame") (sit-for 1) (setq gnuserv-frame (selected-frame)))

Have you tested this on NTEmacs? On NT 4.0 Release Emacs 19.32,

  (raise-frame (selected-frame))

has no effect whatsoever. I guess the advice would work on Unix,
and on NT once the raise-frame function is fixed....

				Peter

From owner-ntemacs-users@june  Tue Jun 25 12:46:56 1996
X-VM-v5-Data: ([nil nil nil nil nil nil nil nil nil]
	[nil "Tue" "25" "June" "1996" "14:20:20" "+0000" "Jonathan Arnold" "jdarnold@world.std.com" nil "29" "gnuserv help" "^From:" nil nil "6" nil nil nil nil]
	nil)
Received: from joker.cs.washington.edu (joker.cs.washington.edu [128.95.1.42]) by june.cs.washington.edu (8.7.5/7.2ju) with SMTP id MAA26902 for <voelker@june.cs.washington.edu>; Tue, 25 Jun 1996 12:46:55 -0700
Received: from june.cs.washington.edu (june.cs.washington.edu [128.95.1.4]) by joker.cs.washington.edu (8.6.12/7.2ws+) with ESMTP id MAA17360 for <voelker@joker.cs.washington.edu>; Tue, 25 Jun 1996 12:46:50 -0700
Received: from europe.std.com (europe.std.com [199.172.62.20]) by june.cs.washington.edu (8.7.5/7.2ju) with ESMTP id LAA17005 for <ntemacs-users@cs.washington.edu>; Tue, 25 Jun 1996 11:22:37 -0700
Received: from world.std.com by europe.std.com (8.7.5/BZS-8-1.0) 	id OAA19303; Tue, 25 Jun 1996 14:22:36 -0400 (EDT)
Received: from max (world.std.com) by world.std.com (5.65c/Spike-2.0) 	id AA22828; Tue, 25 Jun 1996 14:20:29 -0400
Message-Id: <31CFF5A4.40F@world.std.com>
Organization: Roger Wagner Publishing
X-Mailer: Mozilla 2.02Gold (Win95; I)
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
From: Jonathan Arnold <jdarnold@world.std.com>
To: nt-emacs mailing list <ntemacs-users@cs.washington.edu>
Subject: gnuserv help
Date: Tue, 25 Jun 1996 14:20:20 +0000

I'm trying to get the gnuclient to do 2 things:

1) Not open up a new frame.  So I've done this:
    (setq gnuserv-frame (car (frame-list)))
 in my _emacs.  This seems to work, although what happens if I should 
delete my starting frame, I don't know...

2) Raise the frame to the front of windows.  There doesn't seem to be a 
hook for gnuserv/client, so I added a (raise-frame) hook to 
find-file-hooks, but that doesn't seem to work.  Ie:

(add-hook 'find-file-hooks
	  (lambda ()
	    (cond
	     (emacs-iconified
	      (iconify-or-deiconify-frame)
	    (raise-frame)
	    ))))

Any other ideas?
  
-- 

+==================================================+
| Jonathan Arnold (mailto:jdarnold@world.std.com)  |
| Roger Wagner Publishing and HyperStudio          |
| 91 Clematis Ave. Weymouth MA USA 02188           |
| http://world.std.com/~jdarnold  CIS: 72762,1272  |
+==================================================+

