[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: emacsclient always raise frame (possible regression)

From: chad
Subject: Re: emacsclient always raise frame (possible regression)
Date: Mon, 29 Jul 2013 06:56:00 -0500

On 25 Jul 2013, at 13:29, Jon Dufresne <address@hidden> wrote:

> I run Emacs in daemon mode. When using tools such as mercurial or git from 
> the command line, an editor is invoked with the command "emacsclient -c 
> FILENAME". When this editor is invoked I want the newly created frame 
> immediately raised to the top of Gnome's window stack so I may interact with 
> it.
> In previous Fedora/Emacs versions I achieved this with the following in my 
> init.el
> (add-hook 'after-make-frame-functions
>           (lambda (frame)
>             (raise-frame frame)))
> This no longer works. Now whenever mercurial invokes the editor the frame 
> remains at the bottom of the stack of windows.

I used to use:

 (setq server-visit-hook (append server-visit-hook '(raise-frame)))

I'm not in a position to test it right now, but you might give it a try.

Hope that helps,

reply via email to

[Prev in Thread] Current Thread [Next in Thread]