From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Kevin Rodgers Newsgroups: gmane.emacs.bugs Subject: ediff-make-wide-display needs to specify (user-position . t) in frame parameter alist Date: Mon, 28 Nov 2005 10:03:32 -0700 Message-ID: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------020502030705040908080607" X-Trace: sea.gmane.org 1133200058 10786 80.91.229.2 (28 Nov 2005 17:47:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 28 Nov 2005 17:47:38 +0000 (UTC) Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Nov 28 18:47:37 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Egn4g-0002Ua-Bk for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Nov 2005 18:45:59 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Egn4e-0002Uo-Rk for geb-bug-gnu-emacs@m.gmane.org; Mon, 28 Nov 2005 12:45:56 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Egn43-0002GK-Kz for bug-gnu-emacs@gnu.org; Mon, 28 Nov 2005 12:45:19 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Egn42-0002G4-N2 for bug-gnu-emacs@gnu.org; Mon, 28 Nov 2005 12:45:19 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Egn42-0002G1-FN for bug-gnu-emacs@gnu.org; Mon, 28 Nov 2005 12:45:18 -0500 Original-Received: from [80.91.229.2] (helo=ciao.gmane.org) by monty-python.gnu.org with esmtp (TLS-1.0:RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1Egn42-0004kM-0C for bug-gnu-emacs@gnu.org; Mon, 28 Nov 2005 12:45:18 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1EgmTH-0005Cf-CN for bug-gnu-emacs@gnu.org; Mon, 28 Nov 2005 18:07:19 +0100 Original-Received: from 207.167.42.60 ([207.167.42.60]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 28 Nov 2005 18:07:19 +0100 Original-Received: from ihs_4664 by 207.167.42.60 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 28 Nov 2005 18:07:19 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-To: bug-gnu-emacs@gnu.org Original-Lines: 112 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 207.167.42.60 User-Agent: Mozilla Thunderbird 0.9 (X11/20041105) X-Accept-Language: en-us, en X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:14329 Archived-At: This is a multi-part message in MIME format. --------------020502030705040908080607 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit --------------020502030705040908080607 Content-Type: message/rfc822; name="Re: [comp.emacs] ediff wide/gnome (emacs 21)" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="Re: [comp.emacs] ediff wide/gnome (emacs 21)" Path: news.gmane.org!not-for-mail From: Mike Ballard Newsgroups: gmane.emacs.help Subject: Re: [comp.emacs] ediff wide/gnome (emacs 21) Date: Fri, 25 Nov 2005 08:43:21 GMT Approved: news@gmane.org Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1132918669 2216 80.91.229.2 (25 Nov 2005 11:37:49 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 25 Nov 2005 11:37:49 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Nov 25 12:37:48 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Efbt8-0007QY-FM for geh-help-gnu-emacs@m.gmane.org; Fri, 25 Nov 2005 12:37:10 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1EfbrE-0003Yw-Ff for geh-help-gnu-emacs@m.gmane.org; Fri, 25 Nov 2005 06:35:12 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news4.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!130.81.64.211.MISMATCH!cycny01.gnilink.net!spamkiller2.gnilink.net!gnilink.net!trndny01.POSTED!de648aa3!not-for-mail Original-Newsgroups: gnu.emacs.help X-Newsreader: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Original-Lines: 45 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 Original-NNTP-Posting-Host: 71.243.99.184 Original-X-Complaints-To: abuse@verizon.net Original-X-Trace: trndny01 1132908201 71.243.99.184 (Fri, 25 Nov 2005 03:43:21 EST) Original-NNTP-Posting-Date: Fri, 25 Nov 2005 03:43:21 EST Original-Xref: shelby.stanford.edu gnu.emacs.help:135733 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:31335 Archived-At: 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 -- --------------020502030705040908080607 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Bug-gnu-emacs mailing list Bug-gnu-emacs@gnu.org http://lists.gnu.org/mailman/listinfo/bug-gnu-emacs --------------020502030705040908080607--