[Top][All Lists]

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

Re: Add M-x occur to the menu-bar

From: Stefan Monnier
Subject: Re: Add M-x occur to the menu-bar
Date: 27 Jan 2004 14:04:29 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50

> I'd prefer the default be to use whichever one (compilation, grep,
> occur) was launched most recently.  Sometimes I have really old
> compile buffers laying around (I never kill them typically).  And I
> wouldn't want the presence of those old compilation buffers to mean
> that I couldn't use this cool new 'C-x `' functionality for the M-x
> occur I just ran a second ago.  I don't usually kill *grep* buffers
> either.

`compile' and `grep' already do that.

> In order to accomplish this, probably M-x compile, M-x occur and M-x
> grep would have to set some variable like `next-error-follow-command'
> to 'compile, 'occur or 'grep, respectively, inside those function
> definitions.

The variable already exists and is called `compilation-last-buffer'.


reply via email to

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