From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.help Subject: Re: let emacs server get the focus Date: Thu, 20 Feb 2003 16:47:39 +0000 Organization: None 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 1045759951 30766 80.91.224.249 (20 Feb 2003 16:52:31 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Thu, 20 Feb 2003 16:52:31 +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 18ltvx-0007zu-00 for ; Thu, 20 Feb 2003 17:52:29 +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 18ltu1-0005T9-03 for gnu-help-gnu-emacs@m.gmane.org; Thu, 20 Feb 2003 11:50:29 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!diablo.theplanet.net!mephistopheles.news.clara.net!news.clara.net!skynet.be!skynet.be!peer.news.eu-x.com!server2.netnews.ja.net!hgmp.mrc.ac.uk!pegasus.csx.cam.ac.uk!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Original-NNTP-Posting-Host: xpc21.ast.cam.ac.uk X-Attribution: GM Mail-Copies-To: never User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/directory/emacs.html) Cancel-Lock: sha1:BqMHH1WkQRm66jiR5fUoGUYHiUE= Original-Xref: shelby.stanford.edu gnu.emacs.help:110432 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:6934 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:6934 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)))