unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* ediff control frame doesn't start with focus
@ 2021-02-01 21:16 Joe Riel
  2021-02-01 22:49 ` Alan D. Salewski
  2021-02-02 21:06 ` Michael Heerdegen
  0 siblings, 2 replies; 9+ messages in thread
From: Joe Riel @ 2021-02-01 21:16 UTC (permalink / raw)
  To: Help GNU Emacs

When launching ediff (emacs 26.1) the floating frame that controls the session
isn't automatically being selected, I have to do so manually.  Is there a way
to configure it so that it is selected at the launch?

-- 
Joe Riel




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: ediff control frame doesn't start with focus
  2021-02-01 21:16 ediff control frame doesn't start with focus Joe Riel
@ 2021-02-01 22:49 ` Alan D. Salewski
  2021-02-15 16:58   ` Joe Riel
  2021-02-02 21:06 ` Michael Heerdegen
  1 sibling, 1 reply; 9+ messages in thread
From: Alan D. Salewski @ 2021-02-01 22:49 UTC (permalink / raw)
  To: help-gnu-emacs

On Mon, Feb 1, 2021, at 16:16, Joe Riel wrote:
> When launching ediff (emacs 26.1) the floating frame that controls the session
> isn't automatically being selected, I have to do so manually.  Is there a way
> to configure it so that it is selected at the launch?
> 
> -- 
> Joe Riel

Though not an answer to your specific question, if you customize
ediff-window-setup-function to be ediff-setup-windows-plain, then no extra
frame will be created when you launch ediff. The ediff control window will be
a small (one line) window beneath the windows of the buffers being compared,
and it will have the focus so you can just start driving ediff.

-Al

-- 
a l a n   d.   s a l e w s k i
ads@salewski.email
salewski@att.net
https://github.com/salewski



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: ediff control frame doesn't start with focus
  2021-02-01 21:16 ediff control frame doesn't start with focus Joe Riel
  2021-02-01 22:49 ` Alan D. Salewski
@ 2021-02-02 21:06 ` Michael Heerdegen
  2021-02-03  7:11   ` Janusz S. Bień
  2021-02-03 16:53   ` Joe Riel
  1 sibling, 2 replies; 9+ messages in thread
From: Michael Heerdegen @ 2021-02-02 21:06 UTC (permalink / raw)
  To: help-gnu-emacs

Joe Riel <joer@san.rr.com> writes:

> When launching ediff (emacs 26.1) the floating frame that controls the
> session isn't automatically being selected, I have to do so manually.
> Is there a way to configure it so that it is selected at the launch?

As far as I recall, the behavior you want is the default behavior, and
has been for a long time.

The control frame is only not selected if it is already existing and
iconified, or if `ediff-use-long-help-message' is set to a non-nil
value, or if your window manager prevents Emacs from setting input
focus.

Could one of these points be true for you?

Michael.





^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: ediff control frame doesn't start with focus
  2021-02-02 21:06 ` Michael Heerdegen
@ 2021-02-03  7:11   ` Janusz S. Bień
  2021-02-03 14:27     ` Michael Heerdegen
  2021-02-03 16:25     ` Stefan Monnier
  2021-02-03 16:53   ` Joe Riel
  1 sibling, 2 replies; 9+ messages in thread
From: Janusz S. Bień @ 2021-02-03  7:11 UTC (permalink / raw)
  To: Michael Heerdegen; +Cc: help-gnu-emacs

On Tue, Feb 02 2021 at 22:06 +01, Michael Heerdegen wrote:
> Joe Riel <joer@san.rr.com> writes:
>
>> When launching ediff (emacs 26.1) the floating frame that controls the
>> session isn't automatically being selected, I have to do so manually.
>> Is there a way to configure it so that it is selected at the launch?
>
> As far as I recall, the behavior you want is the default behavior, and
> has been for a long time.

It used to be the default behaviour, but since some time (several years
if I remember well) it is not.

>
> The control frame is only not selected if it is already existing and
> iconified, or if `ediff-use-long-help-message' is set to a non-nil
> value, or if your window manager prevents Emacs from setting input
> focus.
>
> Could one of these points be true for you?

None is true for me.

Janusz

-- 
             ,   
Janusz S. Bien
emeryt (emeritus)
https://sites.google.com/view/jsbien



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: ediff control frame doesn't start with focus
  2021-02-03  7:11   ` Janusz S. Bień
@ 2021-02-03 14:27     ` Michael Heerdegen
  2021-02-03 16:25     ` Stefan Monnier
  1 sibling, 0 replies; 9+ messages in thread
From: Michael Heerdegen @ 2021-02-03 14:27 UTC (permalink / raw)
  To: help-gnu-emacs

jsbien@mimuw.edu.pl (Janusz S. Bień) writes:

> None is true for me.

Do you observe this with emacs -Q?

Michael.




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: ediff control frame doesn't start with focus
  2021-02-03  7:11   ` Janusz S. Bień
  2021-02-03 14:27     ` Michael Heerdegen
@ 2021-02-03 16:25     ` Stefan Monnier
  1 sibling, 0 replies; 9+ messages in thread
From: Stefan Monnier @ 2021-02-03 16:25 UTC (permalink / raw)
  To: help-gnu-emacs

>> The control frame is only not selected if it is already existing and
>> iconified, or if `ediff-use-long-help-message' is set to a non-nil
>> value, or if your window manager prevents Emacs from setting input
>> focus.
>> Could one of these points be true for you?
> None is true for me.

I wonder how you can be so sure that it can't be that "your window
manager prevents Emacs from setting input focus".  I think most people
who have worked on this part of Emacs's code would find it hard to
answer this question definitively.


        Stefan




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: ediff control frame doesn't start with focus
  2021-02-02 21:06 ` Michael Heerdegen
  2021-02-03  7:11   ` Janusz S. Bień
@ 2021-02-03 16:53   ` Joe Riel
  2021-02-05 18:58     ` Tomas Nordin
  1 sibling, 1 reply; 9+ messages in thread
From: Joe Riel @ 2021-02-03 16:53 UTC (permalink / raw)
  To: Michael Heerdegen; +Cc: help-gnu-emacs

On Tue, 02 Feb 2021 22:06:02 +0100
Michael Heerdegen <michael_heerdegen@web.de> wrote:

> Joe Riel <joer@san.rr.com> writes:
> 
> > When launching ediff (emacs 26.1) the floating frame that controls the
> > session isn't automatically being selected, I have to do so manually.
> > Is there a way to configure it so that it is selected at the launch?  
> 
> As far as I recall, the behavior you want is the default behavior, and
> has been for a long time.
> 
> The control frame is only not selected if it is already existing and
> iconified, or if `ediff-use-long-help-message' is set to a non-nil
> value, or if your window manager prevents Emacs from setting input
> focus.
> 
> Could one of these points be true for you?

I recently upgraded my Debian distro from 9 to 10.  That's when
the behavior changed.  I recall that, some years ago, the default
behavior was for the ediff control frame to not get focus initially.
Then it started working (either with change to Emacs or distro, don't recall).
Now its back to not working [my opinion].

I verified that ediff-use-long-help-messages is nil and that the
frame doesn't already exist.

-- 
Joe Riel




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: ediff control frame doesn't start with focus
  2021-02-03 16:53   ` Joe Riel
@ 2021-02-05 18:58     ` Tomas Nordin
  0 siblings, 0 replies; 9+ messages in thread
From: Tomas Nordin @ 2021-02-05 18:58 UTC (permalink / raw)
  To: Joe Riel, Michael Heerdegen; +Cc: help-gnu-emacs

Joe Riel <joer@san.rr.com> writes:

> On Tue, 02 Feb 2021 22:06:02 +0100
> Michael Heerdegen <michael_heerdegen@web.de> wrote:
>
>> Joe Riel <joer@san.rr.com> writes:
>> 
>> > When launching ediff (emacs 26.1) the floating frame that controls the
>> > session isn't automatically being selected, I have to do so manually.
>> > Is there a way to configure it so that it is selected at the launch?  
>> 
>> As far as I recall, the behavior you want is the default behavior, and
>> has been for a long time.
>> 
>> The control frame is only not selected if it is already existing and
>> iconified, or if `ediff-use-long-help-message' is set to a non-nil
>> value, or if your window manager prevents Emacs from setting input
>> focus.
>> 
>> Could one of these points be true for you?
>
> I recently upgraded my Debian distro from 9 to 10.  That's when
> the behavior changed.  I recall that, some years ago, the default
> behavior was for the ediff control frame to not get focus initially.
> Then it started working (either with change to Emacs or distro, don't recall).
> Now its back to not working [my opinion].
>
> I verified that ediff-use-long-help-messages is nil and that the
> frame doesn't already exist.

At work on ms windows the behavior was always that the ediff frame gets
focus when started. On my Debian (as far back as I can remember, a few
debian versions), it never got focus. Me too prefer get focus. I never
understood why and just assumed it had something to do with the relation
Emacs/Gnome.

--
Tomas



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: ediff control frame doesn't start with focus
  2021-02-01 22:49 ` Alan D. Salewski
@ 2021-02-15 16:58   ` Joe Riel
  0 siblings, 0 replies; 9+ messages in thread
From: Joe Riel @ 2021-02-15 16:58 UTC (permalink / raw)
  To: Alan D. Salewski; +Cc: help-gnu-emacs

On Mon, 01 Feb 2021 17:49:41 -0500
"Alan D. Salewski" <ads@salewski.email> wrote:

> On Mon, Feb 1, 2021, at 16:16, Joe Riel wrote:
> > When launching ediff (emacs 26.1) the floating frame that controls the session
> > isn't automatically being selected, I have to do so manually.  Is there a way
> > to configure it so that it is selected at the launch?
> > 
> > -- 
> > Joe Riel  
> 
> Though not an answer to your specific question, if you customize
> ediff-window-setup-function to be ediff-setup-windows-plain, then no extra
> frame will be created when you launch ediff. The ediff control window will be
> a small (one line) window beneath the windows of the buffers being compared,
> and it will have the focus so you can just start driving ediff.

Thanks Al.  Finally got around to trying this, and it is a suitable workaround.


-- 
Joe Riel




^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-02-15 16:58 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-02-01 21:16 ediff control frame doesn't start with focus Joe Riel
2021-02-01 22:49 ` Alan D. Salewski
2021-02-15 16:58   ` Joe Riel
2021-02-02 21:06 ` Michael Heerdegen
2021-02-03  7:11   ` Janusz S. Bień
2021-02-03 14:27     ` Michael Heerdegen
2021-02-03 16:25     ` Stefan Monnier
2021-02-03 16:53   ` Joe Riel
2021-02-05 18:58     ` Tomas Nordin

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).