Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10 5/3/83; site umcp-cs.UUCP Path: utzoo!linus!decvax!harpo!seismo!rlgvax!cal-unix!umcp-cs!israel From: israel@umcp-cs Newsgroups: net.emacs Subject: Re: automatically removing help window Message-ID: <4664@umcp-cs.UUCP> Date: Fri, 6-Jan-84 23:47:07 EST Article-I.D.: umcp-cs.4664 Posted: Fri Jan 6 23:47:07 1984 Date-Received: Sun, 8-Jan-84 01:03:40 EST References: <113@utai.UUCP> Organization: Univ. of Maryland, Computer Science Dept. Lines: 52 From: kramer@utai.UUCP gosling's emacs: It would be wonderful if the help window that appears for help in word completion would disappear once a word is successfully chosen or the command is aborted. I added this to our local version as an optional behavior. There is a local variable called "remove-help-window" which is default on (because new users need this feature the most). To add this feature: first you add the following declarations to the top of minibuf.c. extern int PopUpWindows; /* for RemoveHelpWindow */ int RemoveHelpWindow; /* if true, after help the help window will go away automatically */ Then you have to change the function getword (the function that does all completion (except for filename completion, if you have it)) as follows: add to the top of getword: int popup = PopUpWindows; if (RemoveHelpWindow) PopUpWindows = 0; this turns off pop-up-windows. that means that getword will use an existing window for the help buffer. At the end of the function, reset PopUpWindows with: PopUpWindows = popup; and the window will be fixed automatically. At the bottom of minibuf.c, define the variable with: DefIntVar ("remove-help-window", &RemoveHelpWindow); and put: RemoveHelpWindow = 1; into the function InitMiniBuf(); -- ^-^ Bruce ^-^ University of Maryland, Computer Science {rlgvax,seismo}!umcp-cs!israel (Usenet) israel.umcp-cs@CSNet-Relay (Arpanet)