Article View: gnu.emacs.bug
Article #87275menu positioning bug fix.
From: Bill Sommerfeld
Date: Fri, 07 Oct 1994 23:13
Date: Fri, 07 Oct 1994 23:13
33 lines
1595 bytes
1595 bytes
In GNU Emacs 19.27.6 (hppa1.1-hp-hpux9shr, X toolkit) of Wed Sep 21 1994 on snarfblatt
Roughtly two weeks ago, I reported a bug in menu placement for the
"Buffers" sub-menu when it includes long buffer names (the sub-menu
window popped up to the left of the parent menu, which put it off the
left edge of the screen...).
The following diff shows the fix I came up with to xlwmenu.c:
*** xlwmenu.c@@/EMACS_19.27 Thu Aug 25 18:35:01 1994
--- xlwmenu.c Fri Oct 7 18:57:28 1994
***************
*** 740,745 ****
--- 740,747 ----
ws->x = previous_ws->x - ws->width;
else
ws->x = screen_width - ws->width;
+ if (ws->x < 0)
+ ws->x = 0;
}
if (ws->y < 0)
ws->y = 0;
***************
*** 749,754 ****
--- 751,758 ----
ws->y = previous_ws->y - ws->height;
else
ws->y = screen_height - ws->height;
+ if (ws->y < 0)
+ ws->y = 0;
}
}
Technical Details
Message-ID:
<9410072307.AA10131@life.ai.mit.edu>Path:
arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!apollo.hp.com!sommerfeldShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fb2f1,e33d882b315a69de,start X-Google-Attributes: gidfb2f1,public X-Google-ArrivalTime: 1994-10-08 13:06:39 PST Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!apollo.hp.com!sommerfeld From: sommerfeld@apollo.hp.com (Bill Sommerfeld) Newsgroups: gnu.emacs.bug Subject: menu positioning bug fix. Date: 7 Oct 1994 19:13:46 -0400 Organization: GNUs Not Usenet Lines: 33 Sender: daemon@cis.ohio-state.edu Approved: bug-gnu-emacs@prep.ai.mit.edu Distribution: gnu Message-ID: <9410072307.AA10131@life.ai.mit.edu>