unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Jon Dufresne <jon.dufresne@gmail.com>
To: emacs-devel@gnu.org
Subject: emacsclient always raise frame (possible regression)
Date: Thu, 25 Jul 2013 11:29:29 -0700	[thread overview]
Message-ID: <CADhq2b4RH-7wgTmo9zwc2-KbjTeoSYp0FB7VD+EShQmt=JybuQ@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 892 bytes --]

Hi,

I recently updated my system to Fedora 19. Fedora 19 packages Gnome 3.8 and
Emacs 24.2.1.

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.

First off, should this elisp do what I'm trying to do? Is this a regression
in Emacs or an issue with Gnome? If this is wrong, what is the correct way
to always raise new frames?

Thanks,
Jon

[-- Attachment #2: Type: text/html, Size: 1028 bytes --]

             reply	other threads:[~2013-07-25 18:29 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-25 18:29 Jon Dufresne [this message]
2013-07-29  8:42 ` emacsclient always raise frame (possible regression) Michael Heerdegen
2013-07-29 11:56 ` chad
2013-07-29 15:20   ` Stefan Monnier
2013-07-29 15:44     ` chad
2013-07-29 16:41       ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CADhq2b4RH-7wgTmo9zwc2-KbjTeoSYp0FB7VD+EShQmt=JybuQ@mail.gmail.com' \
    --to=jon.dufresne@gmail.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).