[Top][All Lists]

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

Directory-specific naming of grep buffer as *grep-dir*

From: Nordlöw
Subject: Directory-specific naming of grep buffer as *grep-dir*
Date: Fri, 09 Nov 2007 14:12:38 -0000
User-agent: G2/1.0

The following code enables me to perform several concurrent
compilations in separate directories:

(setq compilation-buffer-name-function
      '(lambda (mode)
         (concat "*" (downcase mode) "-" compilation-directory "*"))

This because a compilation in directory DIR will produce output in
buffer: *compile-DIR*.

The logic also applies to grep-mode but the compilation-directory is
not affected by the grep command and there is no variable grep-
directory to use instead. How can I solve this problem?

Thanks in advance,

reply via email to

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