From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Zero Void Newsgroups: gmane.emacs.help Subject: Re: let emacs server get the focus Date: Thu, 20 Feb 2003 11:50:52 -0500 Organization: I don't know Sender: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1045760250 352 80.91.224.249 (20 Feb 2003 16:57:30 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 20 Feb 2003 16:57:30 +0000 (UTC) Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18lu0d-00004t-00 for ; Thu, 20 Feb 2003 17:57:19 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18ltzJ-0007iZ-03 for gnu-help-gnu-emacs@m.gmane.org; Thu, 20 Feb 2003 11:55:57 -0500 Original-Newsgroups: gnu.emacs.help Original-Lines: 28 Original-NNTP-Posting-Host: zeus.ece.cmu.edu Original-X-Trace: nntp.ece.cmu.edu 1045759851 9743 128.2.133.104 (20 Feb 2003 16:50:51 GMT) Original-X-Complaints-To: gripe@ece.cmu.edu Original-NNTP-Posting-Date: 20 Feb 2003 16:50:51 GMT User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2 (i686-pc-linux-gnu) Cancel-Lock: sha1:Wl5UEcJbElV1S8aEOLn1nULAmf4= Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!nntp.cs.ubc.ca!cyclone.bc.net!newspump.monmouth.com!newspeer.monmouth.com!newsgate.duke.edu!news.ysu.edu!nntp.ece.cmu.edu!not-for-mail Original-Xref: shelby.stanford.edu gnu.emacs.help:110433 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: help-gnu-emacs-bounces+gnu-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:6935 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:6935 Glenn Morris writes: > Zero Void wrote: > >> Is it possible that when after I run emacsclient, emacs can >> automatically popup to the front and get focus? I found it's really >> inconvenient when I have emacs minimized and in the meanwhile >> running emacsclient. > > I use this: > > (add-hook 'server-visit-hook > '(lambda () > (setq server-window (make-frame)))) > > > I tried the following as well for a bit (to delete the frame on exit), > but then decided against it. It doesn't work with --no-wait. > > (add-hook 'server-done-hook > '(lambda () > (delete-frame server-window) > (setq server-window nil))) Thanks a lot Glenn. It's much better now. -- monitor VLF leakage