[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Misc. minor compile.el issues
From: |
Kim F. Storm |
Subject: |
Re: Misc. minor compile.el issues |
Date: |
07 Dec 2002 02:49:09 +0100 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
"Stefan Monnier" <monnier+gnu/address@hidden> writes:
> > > > Related to this, I would like the setup function to be able to
> > > > access the buffer and/or window for the compilation process (e.g.
> > > > to set buffer-local variables).
> > >
> > > AFAIK, you can use (current-buffer). No need for `outbuf'.
> > > Am I missing something ?
> >
> > AFAICS, the setup function is (typically) not called with
> > current-buffer == outbuf.
>
> Huh? The only place where it is called seems to be in:
>
> (with-current-buffer outbuf
[...]
> (set-window-start outwin (point-min))
> (or (eq outwin (selected-window))
> (set-window-point outwin (point-min)))
> (compilation-set-window-height outwin)
> (if compilation-process-setup-function
> (funcall compilation-process-setup-function))
>
> I don't see anything between the with-current-buffer and the call
> to compilation-process-setup-function which could change current-buffer.
Absolutely true... I was confusing outbuf/current-buffer [which are
identical] with outwin/selected-window which are not necessarily the
same. But I guess we can live without accessing the outwin...
--
Kim F. Storm <address@hidden> http://www.cua.dk