[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problems with compile-mode

From: Daniel Pfeiffer
Subject: Re: Problems with compile-mode
Date: Wed, 19 May 2004 22:01:12 +0200

Saluton, Moin,

Richard Stallman <address@hidden> skribis:

>     > I have no idea what select-window does, but protecting it with
>     > save-excursion does the trick.  I didn't change the calling function,
>     > so either something else changed, or the bug was always there.
>     Now, setting compilation-scroll-output to nil has no effect. The
>     window always scrolls as text is added to the compilation buffer.
> In the past, I've observed problems like this to result
> from the strange things that happen when a buffer is displayed
> in a window that isn't selected.  The window has its value
> of point, and the buffer has its value, and the values get transferred
> at specific times.
> I'm not saying that is the cause here, but it is worth thinking about.

In compilation-set-window-height I had added save-excursion to save the first
problem about insertion point.

               (select-window window)
               (enlarge-window (- height (window-height))))))

The only reason this is necessary, is that enlarge-window insists on changing
the selected window, rather than just making that the default.  My experiments
seem to indicate that adding this as a parameter, and no longer selecting the
window, might solve the problem.  But I can't be sure, till there is a 4th
parameter I can use.

coralament / best Grötens / liebe Grüße / best regards / elkorajn salutojn
Daniel Pfeiffer

lerne / learn / apprends / läramå / ucz się    Esperanto:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]