[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.
(save-current-buffer
(save-selected-window
(save-excursion
(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:
http://lernu.net/
- Re: Problems with compile-mode, (continued)
- Re: Problems with compile-mode, Oscar Fuentes, 2004/05/09
- Re: Problems with compile-mode, Eli Zaretskii, 2004/05/10
- Re: Problems with compile-mode, Oscar Fuentes, 2004/05/10
- Re: Problems with compile-mode, Stefan Daschek, 2004/05/10
- Re: Problems with compile-mode, Daniel Pfeiffer, 2004/05/12
- Re: Problems with compile-mode, Oscar Fuentes, 2004/05/18
- Re: Problems with compile-mode, Richard Stallman, 2004/05/19
- Re: Problems with compile-mode,
Daniel Pfeiffer <=
- Re: Problems with compile-mode, Stefan Monnier, 2004/05/19
- Re: Problems with compile-mode, Daniel Pfeiffer, 2004/05/24
- Re: Problems with compile-mode, Eli Zaretskii, 2004/05/24
- Re: Problems with compile-mode, Stefan Monnier, 2004/05/29
- Re: Problems with compile-mode, Stefan Monnier, 2004/05/28
- Re: Problems with compile-mode, Richard Stallman, 2004/05/29
- Re: Problems with compile-mode, Stefan Monnier, 2004/05/29
- Re: Problems with compile-mode, Richard Stallman, 2004/05/30
- Re: Problems with compile-mode, Richard Stallman, 2004/05/20
Re: Problems with compile-mode, Eli Zaretskii, 2004/05/10