|
From: | Juri Linkov |
Subject: | Re: recompile uses wrong buffer.. hint |
Date: | Mon, 07 Jun 2004 12:29:00 +0300 |
User-agent: | Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) |
"Stephan Stahl" <address@hidden> writes: > I tried to find a solution to this problem and at least found what was > causing this strange behaviour. > > The function `compilation-buffer-name' tries to get a name for the > compilation buffer. There is a test: > ((and (eq major-mode 'compilation-mode) > (equal mode-name (nth 2 compilation-arguments))) > (buffer-name)) > that equal will (always?) return nil because the structure of > compilation-arguments has changed in the recent compile.el rewrite. > Because of this the function will always return a default name. Maybe its > sufficient to remove that equal but i'm not sure.. Removing `equal' and thus leaving only `(eq major-mode 'compilation-mode)' doesn't work for grep mode. I think the right condition should be: ((eq major-mode (nth 1 compilation-arguments)) (buffer-name)) -- Juri Linkov http://www.jurta.org/emacs/
[Prev in Thread] | Current Thread | [Next in Thread] |