[Top][All Lists]

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

Re: Problems with compile-mode

From: Stefan Monnier
Subject: Re: Problems with compile-mode
Date: 28 May 2004 18:31:08 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

>> >     (save-current-buffer
>> >       (save-selected-window
>> >         (save-excursion
>> >           (select-window window)
>> >           (enlarge-window (- height (window-height))))))
>> How about placing the save-excursion before the save-selected-window ?
>> In other words throwing out save-current-buffer and replacing it with
>> save-excursion?

> Yes, this has the same effect.  Alas this still introduces the second error
> Oscar reported:

> ] Now, setting compilation-scroll-output to nil has no effect. The
> ] window always scrolls as text is added to the compilation buffer.

Then how about

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

>> Of course, maybe save-excursion should be fixed to remember which point it
>> saved and to restore the same one, just like `let' was fixed to restore the
>> value of a variable in the same buffer in which it was saved.

> Any improvement of the underlying mechanism is welcome. :-)

I don't have time to look into it now,


reply via email to

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