israel@umcp-cs (01/07/84)
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)