help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Restore window configuration after Ediff


From: martin rudalics
Subject: Re: Restore window configuration after Ediff
Date: Sat, 16 Apr 2011 09:36:17 +0200
User-agent: Thunderbird 2.0.0.21 (Windows/20090302)

> ======================================================================
> (defvar saved-configuration nil)
>
> (defun do-ediff()
>   (interactive)
>   (add-hook 'ediff-quit-hook 'do-ediff-cleanup)
>   (setq saved-configuration (current-window-configuration))
>   (ediff-buffers "*scratch*" "*scratch*"))
>
> (defun do-ediff-cleanup()
>   (set-window-configuration saved-configuration)
>   (remove-hook 'ediff-quit-hook 'do-ediff-cleanup))
> ======================================================================
>
> The problem is that after I quit ediff, the ediff control frame
> doesn't always disappear.

Replace `current-window-configuration' by `current-frame-configuration'
and `set-window-configuration' by `set-frame-configuration'.

martin



reply via email to

[Prev in Thread] Current Thread [Next in Thread]