* Directory-specific naming of grep buffer as *grep-dir*
@ 2007-11-09 14:12 Nordlöw
2007-11-09 15:32 ` Peter Dyballa
0 siblings, 1 reply; 2+ messages in thread
From: Nordlöw @ 2007-11-09 14:12 UTC (permalink / raw)
To: help-gnu-emacs
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,
Nordlöw
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Directory-specific naming of grep buffer as *grep-dir*
2007-11-09 14:12 Directory-specific naming of grep buffer as *grep-dir* Nordlöw
@ 2007-11-09 15:32 ` Peter Dyballa
0 siblings, 0 replies; 2+ messages in thread
From: Peter Dyballa @ 2007-11-09 15:32 UTC (permalink / raw)
To: Nordlöw; +Cc: help-gnu-emacs
Am 09.11.2007 um 15:12 schrieb Nordlöw:
> 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?
Look at the buffer! Does it start with a line like that?
-*- mode: grep; default-directory: "~/foo/bar/" -*-
--
Greetings
Pete
People say that if you play Microsoft CD's backwards, you hear
satanic things, but that's nothing, because if you play them
forwards, they install Windows.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-11-09 15:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-09 14:12 Directory-specific naming of grep buffer as *grep-dir* Nordlöw
2007-11-09 15:32 ` Peter Dyballa
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).