unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* full screen mode hides ediff control frame
@ 2015-04-08  2:32 Joe Riel
  2015-04-08  3:26 ` Drew Adams
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Joe Riel @ 2015-04-08  2:32 UTC (permalink / raw)
  To: Help GNU Emacs

I start emacs in full-screen mode, mainly to remove
any border so as to get maximum screen area.
When ediff is started, the separate control frame
is behind the main emacs frame, so I need to M-tab 
to it, which is a mild annoyance.  Is there a simple
way to move it the front automatically?

-- 
Joe Riel




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

* RE: full screen mode hides ediff control frame
  2015-04-08  2:32 full screen mode hides ediff control frame Joe Riel
@ 2015-04-08  3:26 ` Drew Adams
  2015-04-08  4:05 ` Xavier Maillard
  2015-04-08 22:43 ` Tak Kunihiro
  2 siblings, 0 replies; 4+ messages in thread
From: Drew Adams @ 2015-04-08  3:26 UTC (permalink / raw)
  To: Joe Riel, Help GNU Emacs

> I start emacs in full-screen mode, mainly to remove
> any border so as to get maximum screen area.
> When ediff is started, the separate control frame
> is behind the main emacs frame, so I need to M-tab
> to it, which is a mild annoyance.  Is there a simple
> way to move it the front automatically?

Have you tried `raise-frame' on one of the Ediff hooks?

Ediff has a bunch of hooks that you can take a look at.
Here are two that might help:
`ediff-(after|before)-setup-control-frame-hook'
`ediff-(after|before)-setup-windows-hook'



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

* Re: full screen mode hides ediff control frame
  2015-04-08  2:32 full screen mode hides ediff control frame Joe Riel
  2015-04-08  3:26 ` Drew Adams
@ 2015-04-08  4:05 ` Xavier Maillard
  2015-04-08 22:43 ` Tak Kunihiro
  2 siblings, 0 replies; 4+ messages in thread
From: Xavier Maillard @ 2015-04-08  4:05 UTC (permalink / raw)
  To: Joe Riel; +Cc: Help GNU Emacs


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

> I start emacs in full-screen mode, mainly to remove
> any border so as to get maximum screen area.
> When ediff is started, the separate control frame
> is behind the main emacs frame, so I need to M-tab
> to it, which is a mild annoyance.  Is there a simple
> way to move it the front automatically?

Seems you are missing `ediff-window-setup-function':

ediff-window-setup-function is a variable defined in `ediff-wind.el'.
Its value is ediff-setup-windows-plain
Original value was
ediff-setup-windows-default

  This variable may be risky if used as a file-local variable.

Documentation:
Function called to set up windows.
Ediff provides a choice of three functions:
 (1) `ediff-setup-windows-multiframe', which sets the control panel
     in a separate frame.
 (2) `ediff-setup-windows-plain', which does everything in one frame
 (3) `ediff-setup-windows-default' (the default), which does (1)
     on a graphical display and (2) on a text terminal.

The command M-x ediff-toggle-multiframe can be used to toggle
between the multiframe display and the single frame display.  If
the multiframe function detects that one of the buffers A/B is
seen in some other frame, it will try to keep that buffer in that
frame.

If you don't like any of the two provided functions, write your own one.
The basic guidelines:
    1. It should leave the control buffer current and the control window
       selected.
    2. It should set `ediff-window-A', `ediff-window-B', `ediff-window-C',
       and `ediff-control-window' to contain window objects that display
       the corresponding buffers.
    3. It should accept the following arguments:
       buffer-A, buffer-B, buffer-C, control-buffer
       Buffer C may not be used in jobs that compare only two buffers.
If you plan to do something fancy, take a close look at how the two
provided functions are written.

You can customize this variable.

This variable was introduced, or its default value was changed, in
version 24.3 of Emacs.

Regards
-- Xavier.



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

* Re: full screen mode hides ediff control frame
  2015-04-08  2:32 full screen mode hides ediff control frame Joe Riel
  2015-04-08  3:26 ` Drew Adams
  2015-04-08  4:05 ` Xavier Maillard
@ 2015-04-08 22:43 ` Tak Kunihiro
  2 siblings, 0 replies; 4+ messages in thread
From: Tak Kunihiro @ 2015-04-08 22:43 UTC (permalink / raw)
  To: joer, help-gnu-emacs

> I start emacs in full-screen mode, mainly to remove
> any border so as to get maximum screen area.
> When ediff is started, the separate control frame
> is behind the main emacs frame, so I need to M-tab 
> to it, which is a mild annoyance.  Is there a simple
> way to move it the front automatically?

I use single frame instead of having separated control frame, with
following setup.

(setq ediff-window-setup-function 'ediff-setup-windows-plain)
(setq ediff-split-window-function 'split-window-horizontally)
(setq ediff-merge-split-window-function 'split-window-vertically)



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

end of thread, other threads:[~2015-04-08 22:43 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-08  2:32 full screen mode hides ediff control frame Joe Riel
2015-04-08  3:26 ` Drew Adams
2015-04-08  4:05 ` Xavier Maillard
2015-04-08 22:43 ` Tak Kunihiro

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