emacs-problems for current buffer

80 views
Skip to first unread message

Helder Martins

unread,
Mar 6, 2013, 8:24:51 PM3/6/13
to emacs...@googlegroups.com
Is there any way to use the problems commands to show only the problems of the current buffer, instead of the full project?

Another thing, is when I invoke the correct problems command, it tries to correct a random problem even if it is in another file. I don't know if 
this is the normal behavior, but how to apply this only to the current buffer? (like in vim)

Thanks.

fred-o

unread,
Mar 8, 2013, 4:03:54 AM3/8/13
to emacs...@googlegroups.com


On Thursday, March 7, 2013 2:24:51 AM UTC+1, Helder Martins wrote:
Is there any way to use the problems commands to show only the problems of the current buffer, instead of the full project?

Yes, if you press 'f' in the problems buffer, it will narrow down to show only the problems for the buffer you last edited. Similarly, you can display only errors ('e'), warnings ('w') or switch back to displaying all problems ('a').
 
Another thing, is when I invoke the correct problems command, it tries to correct a random problem even if it is in another file. I don't know if 
this is the normal behavior, but how to apply this only to the current buffer? (like in vim)

That seems strange. Looks like the problems list is somehow out of sync. Are you running the latest version from github? I fixed a bug that made the problems list lag one step behind a few days ago.

Cheers,
-- Fredrik

Helder Martins

unread,
Mar 8, 2013, 5:43:42 AM3/8/13
to emacs...@googlegroups.com
I installed through melpa, so i guess the answer is no =P. 
But i think i wasn't using the command correctly. I was invoking it in the source code, and not in the problem buffer. Now i got the expected result.



fred-o

unread,
Mar 10, 2013, 7:41:56 AM3/10/13
to emacs...@googlegroups.com


On Friday, March 8, 2013 11:43:42 AM UTC+1, Helder Martins wrote:

But i think i wasn't using the command correctly. I was invoking it in the source code, and not in the problem buffer. Now i got the expected result.


That's actually not a bad idea. I've changed eclim-problems-correct so that it can now be invoked from a source file as well as the problems list. It's on github now and should be in MELPA shortly.

Cheers,
-- Fredrik

 
Reply all
Reply to author
Forward
0 new messages