GNU bug report logs - #20097
Add new hook to be run when switching frames

Previous Next

Package: emacs;

Reported by: Rasmus <rasmus <at> gmx.us>

Date: Thu, 12 Mar 2015 11:40:03 UTC

Severity: wishlist

Found in version 25.0.50

Done: Stefan Kangas <stefan <at> marxist.se>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Stefan Kangas <stefan <at> marxist.se>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#20097: closed (Add new hook to be run when switching frames)
Date: Wed, 12 Aug 2020 16:22:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Wed, 12 Aug 2020 09:21:35 -0700
with message-id <CADwFkmk3ffz+uKZQGKAVivRLRx4OZ_-8hz8qCbc1dB_udBkCTA <at> mail.gmail.com>
and subject line Re: bug#20097: focus-out-hook doesn't work w/other emacsclient frame
has caused the debbugs.gnu.org bug report #20097,
regarding Add new hook to be run when switching frames
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
20097: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=20097
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Rasmus <rasmus <at> gmx.us>
To: bug-gnu-emacs <at> gnu.org
Subject: 25.0.50; focus-out-hook doesn't work w/other emacsclient frame
Date: Thu, 12 Mar 2015 12:38:42 +0100
Hi,

I think focus-out-hook doesn't work as expected when used with other
emacsclient that belong to the same daemon.  Of course I could be
misunderstanding the meaning of "input focus" cf. the docstring.

Try the following.  Start a new emacsclient.  Let's call its first GTK
frame 'A' (informally).  Do

1. Make (new-frame).  Let's call this frame 'B' (informally).
2. Make a new buffer in B and eval:
   (set (make-local-variable (quote focus-out-hook)) (quote delete-frame))
3. Switch focus to frame A.  I do so by clicking on A or using
   Super/M-TAB.  Notice that nothing happens
4. Now try this with another program that's not an emacsclient.  The
   Frame is closed as expected.

The real use case for this is an org-agenda desktop file that I use to
integrate the Org calendar with the system calendar button.

Thanks,
Ramus

GNU Emacs 25.0.50.2 (x86_64-unknown-linux-gnu, GTK+ Version 3.14.8) of 2015-02-06 on x200s

-- 
When in doubt, do it!


[Message part 3 (message/rfc822, inline)]
From: Stefan Kangas <stefan <at> marxist.se>
To: Rasmus Pank Roulund <rasmus <at> gmx.us>
Cc: 20097-done <at> debbugs.gnu.org
Subject: Re: bug#20097: focus-out-hook doesn't work w/other emacsclient frame
Date: Wed, 12 Aug 2020 09:21:35 -0700
Rasmus Pank Roulund <rasmus <at> gmx.us> writes:

>>> Yes, but it's up to you to describe your use case with enough info that
>>> the semantics that they choose is useful for you.
>>
>> I'm just triaging bugs, and don't have any use case to provide.
>> Perhaps the OP will be able to provide us with more details.
>
> I hardly remember at this point.
>
> I think I wanted to use it for opening an Org Agenda view via Gnome Shell
> and (type <Super> agenda, opening an emacsclient) and get rid of the
> window once I click somewhere else.
>
> Feel free to close.

Thanks, it seems to be that it will be hard to make any progress here
without having a specific use-case.

I'm therefore closing this bug report.

Best regards,
Stefan Kangas


This bug report was last modified 4 years and 285 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.