unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Multiple *compilation* buffers
@ 2008-10-31 10:23 John Paul Foster
  2008-10-31 14:52 ` Peter Dyballa
  2008-11-01 13:35 ` Kevin Rodgers
  0 siblings, 2 replies; 7+ messages in thread
From: John Paul Foster @ 2008-10-31 10:23 UTC (permalink / raw)
  To: help-gnu-emacs

I dont want to ^ever^ leave emacs so is there a way to run multiple grep
and/or compilation processes at once?
Any ideas, or is this a question for the devel list?

JP





^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Multiple *compilation* buffers
       [not found] <mailman.2567.1225462677.25473.help-gnu-emacs@gnu.org>
@ 2008-10-31 14:46 ` Dmitry Dzhus
  0 siblings, 0 replies; 7+ messages in thread
From: Dmitry Dzhus @ 2008-10-31 14:46 UTC (permalink / raw)
  To: help-gnu-emacs

John Paul Foster wrote:
> I dont want to ^ever^ leave emacs so is there a way to run multiple grep
> and/or compilation processes at once?
> Any ideas, or is this a question for the devel list?

You'll want to customize `compilation-buffer-name-function` variable.
Try to read documentation string for `compile` function.
-- 
Happy Hacking.

http://sphinx.net.ru^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Multiple *compilation* buffers
  2008-10-31 10:23 John Paul Foster
@ 2008-10-31 14:52 ` Peter Dyballa
  2008-11-01 13:36   ` Kevin Rodgers
       [not found]   ` <mailman.2629.1225547112.25473.help-gnu-emacs@gnu.org>
  2008-11-01 13:35 ` Kevin Rodgers
  1 sibling, 2 replies; 7+ messages in thread
From: Peter Dyballa @ 2008-10-31 14:52 UTC (permalink / raw)
  To: John Paul Foster; +Cc: help-gnu-emacs


Am 31.10.2008 um 11:23 schrieb John Paul Foster:

> I dont want to ^ever^ leave emacs so is there a way to run multiple  
> grep
> and/or compilation processes at once?


Does it work to invoke each function with the universal argument C-u ?

--
Greetings

   Pete

The day Microsoft makes something that doesn't suck is the day they  
start selling vacuum cleaners.
				– Ernest Jan Plugge







^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Multiple *compilation* buffers
  2008-10-31 10:23 John Paul Foster
  2008-10-31 14:52 ` Peter Dyballa
@ 2008-11-01 13:35 ` Kevin Rodgers
  1 sibling, 0 replies; 7+ messages in thread
From: Kevin Rodgers @ 2008-11-01 13:35 UTC (permalink / raw)
  To: help-gnu-emacs

John Paul Foster wrote:
> I dont want to ^ever^ leave emacs so is there a way to run multiple grep
> and/or compilation processes at once?
> Any ideas, or is this a question for the devel list?

`C-h f compile' ssys:

	To run more than one compilation at once, start one then rename
	the `*compilation*' buffer to some other name with
	M-x rename-buffer.  Then _switch buffers_ and start the new compilation.
	It will create a new `*compilation*' buffer.

I guess you'd have to do the same thing with the *grep* buffer.

-- 
Kevin Rodgers
Denver, Colorado, USA





^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Multiple *compilation* buffers
  2008-10-31 14:52 ` Peter Dyballa
@ 2008-11-01 13:36   ` Kevin Rodgers
  2008-11-03  8:13     ` John Paul Foster
       [not found]   ` <mailman.2629.1225547112.25473.help-gnu-emacs@gnu.org>
  1 sibling, 1 reply; 7+ messages in thread
From: Kevin Rodgers @ 2008-11-01 13:36 UTC (permalink / raw)
  To: help-gnu-emacs

Peter Dyballa wrote:
> 
> Am 31.10.2008 um 11:23 schrieb John Paul Foster:
> 
>> I dont want to ^ever^ leave emacs so is there a way to run multiple grep
>> and/or compilation processes at once?
> 
> 
> Does it work to invoke each function with the universal argument C-u ?

Probably not, `C-h f grep' says:

	A prefix argument says to default the argument based upon the current
	tag the cursor is over, substituting it into the last grep command
	in the grep command history (or into `grep-command'
	if that history list is empty).

-- 
Kevin Rodgers
Denver, Colorado, USA





^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Multiple *compilation* buffers
  2008-11-01 13:36   ` Kevin Rodgers
@ 2008-11-03  8:13     ` John Paul Foster
  0 siblings, 0 replies; 7+ messages in thread
From: John Paul Foster @ 2008-11-03  8:13 UTC (permalink / raw)
  Cc: help-gnu-emacs

>  
> > Does it work to invoke each function with the universal argument C-u ?
> 
> Probably not, `C-h f grep' says:

No universal arg doesn't work.

Got it made a function to rename the buffer by appending the directory

(defun comp-buffer-name (maj-mode)
(concat "*" (downcase maj-mode) " " default-directory "*"))
(setq compilation-buffer-name-function
      comp-buffer-name)

Could do all sorts of stuff, like add the 
grep command line if the mode is grep etc etc

this will do me for now.
Thanks folks
-- 
JP





^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: Multiple *compilation* buffers
       [not found]   ` <mailman.2629.1225547112.25473.help-gnu-emacs@gnu.org>
@ 2008-12-01  3:03     ` David Combs
  0 siblings, 0 replies; 7+ messages in thread
From: David Combs @ 2008-12-01  3:03 UTC (permalink / raw)
  To: help-gnu-emacs

In article <mailman.2629.1225547112.25473.help-gnu-emacs@gnu.org>,
Kevin Rodgers  <kevin.d.rodgers@gmail.com> wrote:
>Peter Dyballa wrote:
>> 
>> Am 31.10.2008 um 11:23 schrieb John Paul Foster:
>> 
>>> I dont want to ^ever^ leave emacs so is there a way to run multiple grep
>>> and/or compilation processes at once?
>> 
>> 
>> Does it work to invoke each function with the universal argument C-u ?
>
>Probably not, `C-h f grep' says:
>
>	A prefix argument says to default the argument based upon the current
>	tag the cursor is over, substituting it into the last grep command
>	in the grep command history (or into `grep-command'
>	if that history list is empty).
>
>-- 
>Kevin Rodgers
>Denver, Colorado, USA

What I do is simply M-x rename-buffer to *grep--<its purpose>*.

You can end up with several of them.



David


One trick I especially like is to, BY HAND, do eg
  egrep -in 'regexp'  ... >!  t.loc

then M-x grep, but then changing the default "grep ..." command
it gives you to "cat t.loc".


You don't have to use grep -- just so long as that t.loc
file LOOKS LIKE it came from a grep -n (with filename at left,
or course, so emacs can know what file(s) you're talking about.)


I really "they" should put this "trick" into the emacs manual --
so simple, and buys so much!


David




^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2008-12-01  3:03 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.2567.1225462677.25473.help-gnu-emacs@gnu.org>
2008-10-31 14:46 ` Multiple *compilation* buffers Dmitry Dzhus
2008-10-31 10:23 John Paul Foster
2008-10-31 14:52 ` Peter Dyballa
2008-11-01 13:36   ` Kevin Rodgers
2008-11-03  8:13     ` John Paul Foster
     [not found]   ` <mailman.2629.1225547112.25473.help-gnu-emacs@gnu.org>
2008-12-01  3:03     ` David Combs
2008-11-01 13:35 ` Kevin Rodgers

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).