emacs-devel
[Top][All Lists]
Advanced

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

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


From: Benjamin Rutt
Subject: Re: Add M-x occur to the menu-bar
Date: Tue, 27 Jan 2004 12:24:55 -0500
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (usg-unix-v)

Ted Zlatanov <address@hidden> writes:

> I like your patch, but would it be possible to have an intelligent
> dwim-next that did the right thing in Emacs?  It would look for
> *compilation* then *grep* then *occur*, and depending on which one it
> found it could call the appropriate "next" function (maybe the order
> would be customizable too).

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.

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




reply via email to

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