I'm trying to fix problems with ediff under mswindows and coming across
some bizarre code:
in ediff-wind.el we have:
(set-specifier top-toolbar-height (list ctl-frame 2))
(sit-for 0)
(set-specifier top-toolbar-height (list ctl-frame 0))
Which used to break under mswindows since you can't display anything in a
toolbar 2 pixels high. Can someone explain what this code is trying to do?
Next we have:
;; synchronize so the cursor will move to control frame
;; per RMS suggestion
(if (ediff-window-display-p)
(let ((count 7))
(sit-for .1)
(while (and (not (frame-visible-p ctl-frame)) (> count 0))
(setq count (1- count))
(sit-for .3))))
Now I can't even byte compile this because of the .3 and .1 - I get errors
about invalid read syntax. Similarly if I try and debug it. And if I try
and run it I get wrong type argument - numberp, 0\.0:876386483
Commenting this code out makes things work much better but what is it
trying to do? Should (sit-for .1) work?
andy
---------------------------------------------------------------------------
" .sigs are like your face - rarely seen by you and uglier than you think"
Dr Andy Piper, Technical Architect, Parallax Solutions Ltd
mail: andyp(a)parallax.co.uk web:
www.parallax.co.uk/~andyp