From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lawrence Mitchell Newsgroups: gmane.emacs.bugs Subject: bug#1073: 23.0.60; Bad interaction between compilation-scroll-output and dedicated windows Date: Fri, 03 Oct 2008 14:01:42 +0100 Organization: me Message-ID: References: <48E611C7.7020901@gmx.at> Reply-To: Lawrence Mitchell , 1073@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1223040638 12221 80.91.229.12 (3 Oct 2008 13:30:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 3 Oct 2008 13:30:38 +0000 (UTC) Cc: 1073@emacsbugs.donarmstrong.com To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Oct 03 15:31:35 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Klkki-0000ry-8e for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Oct 2008 15:31:29 +0200 Original-Received: from localhost ([127.0.0.1]:38203 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Klkje-0000WU-6A for geb-bug-gnu-emacs@m.gmane.org; Fri, 03 Oct 2008 09:30:22 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KlkjL-0000Nm-En for bug-gnu-emacs@gnu.org; Fri, 03 Oct 2008 09:30:03 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KlkjJ-0000Me-Lj for bug-gnu-emacs@gnu.org; Fri, 03 Oct 2008 09:30:02 -0400 Original-Received: from [199.232.76.173] (port=49814 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KlkjJ-0000MQ-42 for bug-gnu-emacs@gnu.org; Fri, 03 Oct 2008 09:30:01 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:38084) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KlkjH-0000Nu-BT for bug-gnu-emacs@gnu.org; Fri, 03 Oct 2008 09:30:00 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m93DTuoi021045; Fri, 3 Oct 2008 06:29:57 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m93DA5N6016298; Fri, 3 Oct 2008 06:10:05 -0700 X-Loop: don@donarmstrong.com Resent-From: Lawrence Mitchell Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Fri, 03 Oct 2008 13:10:05 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 1073 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 1073-submit@emacsbugs.donarmstrong.com id=B1073.122303890814140 (code B ref 1073); Fri, 03 Oct 2008 13:10:05 +0000 Original-Received: (at 1073) by emacsbugs.donarmstrong.com; 3 Oct 2008 13:01:48 +0000 Original-Received: from nougat.ucs.ed.ac.uk (nougat.ucs.ed.ac.uk [129.215.13.205]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m93D1iGS014132 for <1073@emacsbugs.donarmstrong.com>; Fri, 3 Oct 2008 06:01:45 -0700 Original-Received: from wrath.ph.ed.ac.uk (wrath.ph.ed.ac.uk [129.215.73.7]) by nougat.ucs.ed.ac.uk (8.13.8/8.13.4) with ESMTP id m93D1gQm015525; Fri, 3 Oct 2008 14:01:42 +0100 (BST) Original-Received: from lamacq.ph.ed.ac.uk (lamacq.ph.ed.ac.uk [129.215.72.156]) by wrath.ph.ed.ac.uk (8.13.8/8.12.10) with ESMTP id m93D1gu3005826; Fri, 3 Oct 2008 14:01:42 +0100 Original-Received: from lamacq.ph.ed.ac.uk (localhost.localdomain [127.0.0.1]) by lamacq.ph.ed.ac.uk (8.13.1/8.12.10) with ESMTP id m93D1gAo012393; Fri, 3 Oct 2008 14:01:42 +0100 Original-Received: (from s0198183@localhost) by lamacq.ph.ed.ac.uk (8.13.1/8.13.1/Submit) id m93D1g4U012388; Fri, 3 Oct 2008 14:01:42 +0100 X-Authentication-Warning: lamacq.ph.ed.ac.uk: s0198183 set sender to lawrence.mitchell@ed.ac.uk using -f In-Reply-To: <48E611C7.7020901@gmx.at> (martin rudalics's message of "Fri, 03 Oct 2008 14:36:23 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) X-Edinburgh-Scanned: at nougat.ucs.ed.ac.uk with MIMEDefang 2.60, Sophie, Sophos Anti-Virus, Clam AntiVirus X-Scanned-By: MIMEDefang 2.60 on 129.215.13.205 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Resent-Date: Fri, 03 Oct 2008 09:30:02 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:21033 Archived-At: martin rudalics wrote: >> When this code in `compilation-start' is executed: >> (if (buffer-local-value 'compilation-scroll-output outbuf) >> (save-selected-window >> (select-window outwin) >> (goto-char (point-max)))) >> outwin is # >> and after the select-window call (selected-window) is #> on *compilation*>. However, at this point (current-buffer) >> returns *test*, rather than *compilation*. > This is a very, very great nuisance of `select-window'. Would the > attached patch DTRT? The attached patch fixes the observed problem, however, I do not think that it is entirely correct: [...] > ! > ! (with-current-buffer (window-buffer outwin) > ! (when (local-variable-p 'compilation-scroll-output) local-variable-p will return t if compilation-scroll-output is nil, but buffer-local. I think you mean (when (buffer-local-value 'compilation-scroll-output (current-buffer)) ...) ? [...] Cheers, Lawrence