all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* ediff frame appear in another page of Fvwm. How to debug/fix?
@ 2012-09-26  9:22 Oleksandr Gavenko
  0 siblings, 0 replies; 3+ messages in thread
From: Oleksandr Gavenko @ 2012-09-26  9:22 UTC (permalink / raw)
  To: help-gnu-emacs

M-x ediff RET RET create ediff frame. It shown at right upper corner.

But recently it shown in another page of Fvwm, so I don't see main Emacs frame.

I try set:

(defun my-ediff-control-frame-position 
(ctl-buffer ctl-frame-width ctl-frame-height)
  (list '(name . "TEST Ediff") '(top . -10) '(left . -30)))

- now it appear on another page but lower right corner.

I try disable my Fvwm hack:

DestroyFunc MyFuncFocusWindow
AddToFunc MyFuncFocusWindow
+ I FlipFocus
+ I WarpToWindow 50 50
DestroyModuleConfig FvwmEvent-NewWindow
*FvwmEvent-NewWindow: Cmd
*FvwmEvent-NewWindow: Delay 1
*FvwmEvent-NewWindow: StartDelay 10
*FvwmEvent-NewWindow: add_window MyFuncFocusWindow

AddToFunc StartFunction I Module FvwmEvent
AddToFunc StartFunction I FvwmEvent FvwmEvent-NewWindow

and now ediff work good.

This Fvwm code emulate Windows focus behavior that I like.

Any suggestion to fix issue?




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

* Re: ediff frame appear in another page of Fvwm. How to debug/fix?
       [not found] <mailman.9758.1348651384.855.help-gnu-emacs@gnu.org>
@ 2012-09-26 15:07 ` jpkotta
  2012-09-26 21:39   ` Oleksandr Gavenko
  0 siblings, 1 reply; 3+ messages in thread
From: jpkotta @ 2012-09-26 15:07 UTC (permalink / raw)
  To: gnu.emacs.help; +Cc: help-gnu-emacs

On Wednesday, September 26, 2012 4:23:04 AM UTC-5, Oleksandr Gavenko wrote:
> M-x ediff RET RET create ediff frame. It shown at right upper corner.
> 
> 
> 
> But recently it shown in another page of Fvwm, so I don't see main Emacs frame.
> 
> 
> 
> I try set:
> 
> 
> 
> (defun my-ediff-control-frame-position 
> 
> (ctl-buffer ctl-frame-width ctl-frame-height)
> 
>   (list '(name . "TEST Ediff") '(top . -10) '(left . -30)))
> 
> 
> 
> - now it appear on another page but lower right corner.
> 
> 
> 
> I try disable my Fvwm hack:
> 
> 
> 
> DestroyFunc MyFuncFocusWindow
> 
> AddToFunc MyFuncFocusWindow
> 
> + I FlipFocus
> 
> + I WarpToWindow 50 50
> 
> DestroyModuleConfig FvwmEvent-NewWindow
> 
> *FvwmEvent-NewWindow: Cmd
> 
> *FvwmEvent-NewWindow: Delay 1
> 
> *FvwmEvent-NewWindow: StartDelay 10
> 
> *FvwmEvent-NewWindow: add_window MyFuncFocusWindow
> 
> 
> 
> AddToFunc StartFunction I Module FvwmEvent
> 
> AddToFunc StartFunction I FvwmEvent FvwmEvent-NewWindow
> 
> 
> 
> and now ediff work good.
> 
> 
> 
> This Fvwm code emulate Windows focus behavior that I like.
> 
> 
> 
> Any suggestion to fix issue?

On Wednesday, September 26, 2012 4:23:04 AM UTC-5, Oleksandr Gavenko wrote:
> M-x ediff RET RET create ediff frame. It shown at right upper corner.
> 
> 
> 
> But recently it shown in another page of Fvwm, so I don't see main Emacs frame.
> 
> 
> 
> I try set:
> 
> 
> 
> (defun my-ediff-control-frame-position 
> 
> (ctl-buffer ctl-frame-width ctl-frame-height)
> 
>   (list '(name . "TEST Ediff") '(top . -10) '(left . -30)))
> 
> 
> 
> - now it appear on another page but lower right corner.
> 
> 
> 
> I try disable my Fvwm hack:
> 
> 
> 
> DestroyFunc MyFuncFocusWindow
> 
> AddToFunc MyFuncFocusWindow
> 
> + I FlipFocus
> 
> + I WarpToWindow 50 50
> 
> DestroyModuleConfig FvwmEvent-NewWindow
> 
> *FvwmEvent-NewWindow: Cmd
> 
> *FvwmEvent-NewWindow: Delay 1
> 
> *FvwmEvent-NewWindow: StartDelay 10
> 
> *FvwmEvent-NewWindow: add_window MyFuncFocusWindow
> 
> 
> 
> AddToFunc StartFunction I Module FvwmEvent
> 
> AddToFunc StartFunction I FvwmEvent FvwmEvent-NewWindow
> 
> 
> 
> and now ediff work good.
> 
> 
> 
> This Fvwm code emulate Windows focus behavior that I like.
> 
> 
> 
> Any suggestion to fix issue?

Are you talking about the ediff control window?  Personally, I prefer it to be in the same frame as the buffers being compared: (setq ediff-window-setup-function 'ediff-setup-windows-plain).

But even when I use emacs -q and run ediff, the control frame never goes off the page, so it must be related to your Fvwm config.  I doubt it has anything to do with changing focus; it's probably due to whatever placement styles you have enabled.  Here is the part of my Fvwm config which is probably relevant:

,----
| Style * SnapAttraction 10 All Screen
| 
| Style * ResizeOpaque
| 
| Style * UsePPosition
| 
| Style * MinOverlapPlacement
| 
| # start on screen with pointer
| Style * StartsOnScreen c
| 
| # do not jump to a desk that a window suddenly pops up on
| Style * SkipMapping
`----
,----
| # widows are focused by clicking on them
| # the focusing click is passed to the window
| # clicking in the window does not raise, but clicking on the decorations does
| Style * ClickToFocus, FPClickDecorToFocus
| Style * !FPClickRaisesFocused, !FPClickRaisesUnfocused, \
|     FPClickDecorRaisesFocused, FPClickDecorRaisesUnfocused
| 
| # programs can focus themselves
| Style * FPFocusByProgram
| 
| # new windows/transients grab the focus when created
| # closing a window/transient releases focus to the previously focused window
| Style * FPGrabFocus, FPGrabFocusTransient, FPReleaseFocus, FPReleaseFocusTransient
`----

I don't have any emacs-specific fvwm styles.  You should probably ask the Fvwm list.



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

* Re: ediff frame appear in another page of Fvwm. How to debug/fix?
  2012-09-26 15:07 ` ediff frame appear in another page of Fvwm. How to debug/fix? jpkotta
@ 2012-09-26 21:39   ` Oleksandr Gavenko
  0 siblings, 0 replies; 3+ messages in thread
From: Oleksandr Gavenko @ 2012-09-26 21:39 UTC (permalink / raw)
  To: help-gnu-emacs

On 2012-09-26, jpkotta wrote:

> On Wednesday, September 26, 2012 4:23:04 AM UTC-5, Oleksandr Gavenko wrote:
>> 
>> Any suggestion to fix issue?
>
> Are you talking about the ediff control window? Personally, I prefer it to
> be in the same frame as the buffers being compared: (setq
> ediff-window-setup-function 'ediff-setup-windows-plain).
>
I satisfied by ediff-setup-windows-plain!

I perform search in 'info emacs' and don't found this function...

I receive evidence as always fill that reading info page is start point, you
always need to read Emacs .el sources...

> But even when I use emacs -q and run ediff, the control frame never goes off
> the page, so it must be related to your Fvwm config. I doubt it has anything
> to do with changing focus; it's probably due to whatever placement styles
> you have enabled. Here is the part of my Fvwm config which is probably
> relevant:
>
> ,----
> | Style * SnapAttraction 10 All Screen
> | 
> | Style * ResizeOpaque
> | 
> | Style * UsePPosition
> | 
> | Style * MinOverlapPlacement
> | 
> | # start on screen with pointer
> | Style * StartsOnScreen c
> | 
> | # do not jump to a desk that a window suddenly pops up on
> | Style * SkipMapping
> `----
> ,----
> | # widows are focused by clicking on them
> | # the focusing click is passed to the window
> | # clicking in the window does not raise, but clicking on the decorations does
> | Style * ClickToFocus, FPClickDecorToFocus
> | Style * !FPClickRaisesFocused, !FPClickRaisesUnfocused, \
> |     FPClickDecorRaisesFocused, FPClickDecorRaisesUnfocused
> | 
> | # programs can focus themselves
> | Style * FPFocusByProgram
> | 
> | # new windows/transients grab the focus when created
> | # closing a window/transient releases focus to the previously focused window
> | Style * FPGrabFocus, FPGrabFocusTransient, FPReleaseFocus, FPReleaseFocusTransient
> `----
>
> I don't have any emacs-specific fvwm styles. You should probably ask the
> Fvwm list.
>
Next night I back to your config, have go to sleep now. Next issues I address
to fvwn user list.

Thanks for support!

-- 
Best regards!




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

end of thread, other threads:[~2012-09-26 21:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.9758.1348651384.855.help-gnu-emacs@gnu.org>
2012-09-26 15:07 ` ediff frame appear in another page of Fvwm. How to debug/fix? jpkotta
2012-09-26 21:39   ` Oleksandr Gavenko
2012-09-26  9:22 Oleksandr Gavenko

Code repositories for project(s) associated with this external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.