* [comp.emacs] ediff wide/gnome (emacs 21)
@ 2005-11-15 21:37 Mike Ballard
2005-11-16 21:00 ` Kevin Rodgers
[not found] ` <mailman.15529.1132175100.20277.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 4+ messages in thread
From: Mike Ballard @ 2005-11-15 21:37 UTC (permalink / raw)
I'm not particularly enamored with gnome but have been using it for
awhile, have things set up so would rather just leave it.
But one of the irritating problems I never had until using gnome is ediff
wide-screen positioning; on-screen emacs is positioned near the right edge
where I want it; when I start ediff (using 'ediff-diff-options "-w"')
9x/10 gnome/its wm leave the left edge of emacs as-is and expands for
ediff off-screen (out of view) to the right. Besides dropping gnome or
replacing wms, is there any way I can fix this?
I have no idea how/why gnome does this because as I mentioned, it doesn't
do this each and every single time; sometimes it will correctly
expand/reposition to the center but 90% of the time it expands off-screen
to the right (and this inconsistency could be session-to-session or a
couple times it's done this within a single session).
Mike
--
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [comp.emacs] ediff wide/gnome (emacs 21)
2005-11-15 21:37 [comp.emacs] ediff wide/gnome (emacs 21) Mike Ballard
@ 2005-11-16 21:00 ` Kevin Rodgers
[not found] ` <mailman.15529.1132175100.20277.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 4+ messages in thread
From: Kevin Rodgers @ 2005-11-16 21:00 UTC (permalink / raw)
Mike Ballard wrote:
> I'm not particularly enamored with gnome but have been using it for
> awhile, have things set up so would rather just leave it.
>
> But one of the irritating problems I never had until using gnome is ediff
> wide-screen positioning; on-screen emacs is positioned near the right edge
> where I want it; when I start ediff (using 'ediff-diff-options "-w"')
> 9x/10 gnome/its wm leave the left edge of emacs as-is and expands for
> ediff off-screen (out of view) to the right. Besides dropping gnome or
> replacing wms, is there any way I can fix this?
>
> I have no idea how/why gnome does this because as I mentioned, it doesn't
> do this each and every single time; sometimes it will correctly
> expand/reposition to the center but 90% of the time it expands off-screen
> to the right (and this inconsistency could be session-to-session or a
> couple times it's done this within a single session).
Does adding (user-position . t) to the frame parameters help?
(defun ediff-make-wide-display ()
"Construct an alist of parameters for the wide display.
Saves the old frame parameters in `ediff-wide-display-orig-parameters'.
The frame to be resized is kept in `ediff-wide-display-frame'.
This function modifies only the left margin and the width of the display.
It assumes that it is called from within the control buffer."
(if (not (fboundp 'ediff-display-pixel-width))
(error "Can't determine display width"))
(let* ((frame-A (window-frame ediff-window-A))
(frame-A-params (frame-parameters frame-A))
(cw (ediff-frame-char-width frame-A))
(wd (- (/ (ediff-display-pixel-width) cw) 5)))
(setq ediff-wide-display-orig-parameters
(list (cons 'left (max 0 (eval (cdr (assoc 'left frame-A-params)))))
(cons 'width (cdr (assoc 'width frame-A-params))))
ediff-wide-display-frame frame-A)
(modify-frame-parameters frame-A
`((left . ,cw) (width . ,wd)
(user-position . t)))))
--
Kevin Rodgers
^ permalink raw reply [flat|nested] 4+ messages in thread
[parent not found: <mailman.15529.1132175100.20277.help-gnu-emacs@gnu.org>]
* Re: [comp.emacs] ediff wide/gnome (emacs 21)
[not found] ` <mailman.15529.1132175100.20277.help-gnu-emacs@gnu.org>
@ 2005-11-25 8:43 ` Mike Ballard
2005-11-25 20:49 ` Mike Ballard
0 siblings, 1 reply; 4+ messages in thread
From: Mike Ballard @ 2005-11-25 8:43 UTC (permalink / raw)
On Fri Nov 25, I was peacefully napping until Kevin Rodgers said:
> Mike Ballard wrote:
> > I'm not particularly enamored with gnome but have been using it for
> > awhile, have things set up so would rather just leave it.
> > But one of the irritating problems I never had until using gnome is ediff
> > wide-screen positioning; on-screen emacs is positioned near the right edge
> > where I want it; when I start ediff (using 'ediff-diff-options "-w"')
> > 9x/10 gnome/its wm leave the left edge of emacs as-is and expands for
> > ediff off-screen (out of view) to the right. Besides dropping gnome or
> > replacing wms, is there any way I can fix this?
> > I have no idea how/why gnome does this because as I mentioned, it doesn't
> > do this each and every single time; sometimes it will correctly
> > expand/reposition to the center but 90% of the time it expands off-screen
> > to the right (and this inconsistency could be session-to-session or a
> > couple times it's done this within a single session).
>
> Does adding (user-position . t) to the frame parameters help?
>
> (defun ediff-make-wide-display ()
> "Construct an alist of parameters for the wide display.
> Saves the old frame parameters in `ediff-wide-display-orig-parameters'.
> The frame to be resized is kept in `ediff-wide-display-frame'.
> This function modifies only the left margin and the width of the display.
> It assumes that it is called from within the control buffer."
> (if (not (fboundp 'ediff-display-pixel-width))
> (error "Can't determine display width"))
> (let* ((frame-A (window-frame ediff-window-A))
> (frame-A-params (frame-parameters frame-A))
> (cw (ediff-frame-char-width frame-A))
> (wd (- (/ (ediff-display-pixel-width) cw) 5)))
> (setq ediff-wide-display-orig-parameters
> (list (cons 'left (max 0 (eval (cdr (assoc 'left frame-A-params)))))
> (cons 'width (cdr (assoc 'width frame-A-params))))
> ediff-wide-display-frame frame-A)
> (modify-frame-parameters frame-A
> `((left . ,cw) (width . ,wd)
> (user-position . t)))))
>
Yep; did the trick. Thanks...
Mike
--
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [comp.emacs] ediff wide/gnome (emacs 21)
2005-11-25 8:43 ` Mike Ballard
@ 2005-11-25 20:49 ` Mike Ballard
0 siblings, 0 replies; 4+ messages in thread
From: Mike Ballard @ 2005-11-25 20:49 UTC (permalink / raw)
On Fri Nov 25, I was peacefully napping until Mike Ballard said:
> On Fri Nov 25, I was peacefully napping until Kevin Rodgers said:
>
> > Mike Ballard wrote:
> > > I'm not particularly enamored with gnome but have been using it for
> > > awhile, have things set up so would rather just leave it.
> > > But one of the irritating problems I never had until using gnome is ediff
> > > wide-screen positioning; on-screen emacs is positioned near the right edge
> > > where I want it; when I start ediff (using 'ediff-diff-options "-w"')
> > > 9x/10 gnome/its wm leave the left edge of emacs as-is and expands for
> > > ediff off-screen (out of view) to the right. Besides dropping gnome or
> > > replacing wms, is there any way I can fix this?
> > > I have no idea how/why gnome does this because as I mentioned, it doesn't
> > > do this each and every single time; sometimes it will correctly
> > > expand/reposition to the center but 90% of the time it expands off-screen
> > > to the right (and this inconsistency could be session-to-session or a
> > > couple times it's done this within a single session).
> >
> > Does adding (user-position . t) to the frame parameters help?
> >
> > (defun ediff-make-wide-display ()
> > "Construct an alist of parameters for the wide display.
> > Saves the old frame parameters in `ediff-wide-display-orig-parameters'.
> > The frame to be resized is kept in `ediff-wide-display-frame'.
> > This function modifies only the left margin and the width of the display.
> > It assumes that it is called from within the control buffer."
> > (if (not (fboundp 'ediff-display-pixel-width))
> > (error "Can't determine display width"))
> > (let* ((frame-A (window-frame ediff-window-A))
> > (frame-A-params (frame-parameters frame-A))
> > (cw (ediff-frame-char-width frame-A))
> > (wd (- (/ (ediff-display-pixel-width) cw) 5)))
> > (setq ediff-wide-display-orig-parameters
> > (list (cons 'left (max 0 (eval (cdr (assoc 'left frame-A-params)))))
> > (cons 'width (cdr (assoc 'width frame-A-params))))
> > ediff-wide-display-frame frame-A)
> > (modify-frame-parameters frame-A
> > `((left . ,cw) (width . ,wd)
> > (user-position . t)))))
> >
>
> Yep; did the trick. Thanks...
>
Well that's damn irritating (freakin' gnome/metacity). I merged that into
ediff-wind.el, byte-compiled, put the el in lisp/ and recompiled emacs
(r21.x; tar file is 2 years old). Installed it, tried it out and worked
every time so posted "thanks". Today it's back to its old behavior...
Mike
--
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-11-25 20:49 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-11-15 21:37 [comp.emacs] ediff wide/gnome (emacs 21) Mike Ballard
2005-11-16 21:00 ` Kevin Rodgers
[not found] ` <mailman.15529.1132175100.20277.help-gnu-emacs@gnu.org>
2005-11-25 8:43 ` Mike Ballard
2005-11-25 20:49 ` Mike Ballard
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).