[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [h-e-w] gnuclientw is starting new instances of emacs.
From: |
andy . ling |
Subject: |
Re: [h-e-w] gnuclientw is starting new instances of emacs. |
Date: |
Thu, 15 Nov 2001 10:23:16 +0000 |
>> When I right-click on a file and select Send To... Emacs it always opens
a
>> new instance of Emacs.
> I have
> (setq gnuserv-frame (selected-frame))
> in my .emacs to prevent this from happening. However, if you close the
> first frame that emacs creates, then it won't work (as I've been told).
I have the following, which sets the gnuserv frame to whichever was
the last frame used. This gets round the problem of deleting the
first frame
(defadvice server-find-file
(before server-select-current-frame activate)
"Select current frame before gnuserv finds a file"
(setq gnuserv-frame (selected-frame)))
----------------------------------------------------------------
Andy Ling email: address@hidden
Quantel Ltd. Tel: +44 (0)1635 48222
Turnpike Road, Newbury Berks UK. RG14 2NE
----------------------------------------------------------------