help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Compilation buffer


From: despen
Subject: Re: Compilation buffer
Date: Wed, 24 Nov 2010 22:08:23 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Burton Samograd <burton@userful.com> writes:

> Andrea Crotti <andrea.crotti.0@gmail.com> writes:
>
>> Another thing it would be nice is a way to jump, from everywhere, to the
>> next error/warning.
>>
>> Now I have to
>> - go to the compilation buffer
>> - go to the next error
>> - press Enter
>>
>> Is there some function already to automate it or should I create a 
>> macro/function?
>
> C-x `
>
> This is bound to 'next-error'.  There is also 'previous-error' but I'm
> not sure what that is bound to.

Me either.  But I use both functions enough that I have this:

(define-key global-map [(f2)] 'next-error)
(define-key global-map [(S-f2)] 'previous-error)

F2 is "logical" because of these bindings:

(define-key global-map [(f1)] 'compile)
(define-key global-map [(S-f1)] 'grep)
(define-key global-map [(C-f1)] 'kill-compilation)



reply via email to

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