From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Re: Misc. minor compile.el issues Date: 06 Dec 2002 21:15:11 +0100 Sender: emacs-devel-admin@gnu.org Message-ID: <5xisy6j44w.fsf@kfs2.cua.dk> References: <5xn0nkasst.fsf@kfs2.cua.dk> <200212061655.gB6GtA208490@rum.cs.yale.edu> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1039205451 2145 80.91.224.249 (6 Dec 2002 20:10:51 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Fri, 6 Dec 2002 20:10:51 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18KOo1-0000Xz-00 for ; Fri, 06 Dec 2002 21:10:37 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18KOwn-0002Ps-00 for ; Fri, 06 Dec 2002 21:19:41 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18KOfn-0001SV-00; Fri, 06 Dec 2002 15:02:07 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18KOez-0001Ik-00 for emacs-devel@gnu.org; Fri, 06 Dec 2002 15:01:17 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18KOJl-0005Ev-00 for emacs-devel@gnu.org; Fri, 06 Dec 2002 14:39:53 -0500 Original-Received: from gnudist.gnu.org ([199.232.41.7]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18KOJk-0005Ao-00 for emacs-devel@gnu.org; Fri, 06 Dec 2002 14:39:20 -0500 Original-Received: from mail.filanet.dk ([195.215.206.179]) by gnudist.gnu.org with esmtp (Exim 4.10.13) id 18KNwm-0002GC-00 for emacs-devel@gnu.org; Fri, 06 Dec 2002 14:15:36 -0500 Original-Received: from kfs2.cua.dk.cua.dk (unknown [10.1.82.3]) by mail.filanet.dk (Postfix) with SMTP id A9D917C017; Fri, 6 Dec 2002 19:15:27 +0000 (GMT) Original-To: "Stefan Monnier" In-Reply-To: <200212061655.gB6GtA208490@rum.cs.yale.edu> Original-Lines: 17 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:9934 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:9934 "Stefan Monnier" 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. We could of course change that, but maybe there are some information in the source buffer (where M-x compile is started) that could be accessed (e.g. default-directory, the buffer name, or some buffer-local variable). -- Kim F. Storm http://www.cua.dk