Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Grouped results sometimes omit the "File", and break next-error #120

Open
tomjakubowski opened this issue Jul 27, 2016 · 1 comment
Open

Comments

@tomjakubowski
Copy link
Contributor

Here's an example:

File: tests/MetabolizerTest.C
171:5:    switch (how)
186:5:    switch (how)
201:5:    switch (how)
220:5:    switch (how)
236:5:    switch (how)
252:5:    switch (how)
276:5:    switch (how)

File: UrDrome.C
703:3:{ switch (fdwCtrlType)

VideoSource.h
349:45:   * In any case, it's a mode -- on or off. Switching modes may
350:25:   * fail. For example, switching to live mode on a pool without an

Moving between locations in tests/MetabolizerTest.C and UrDrome.C using M-g p and M-g n (previous-error and next-error) works fine. But when I move to the location in UrDrome.C and then hit M-g n to jump to 349:45 in VideoSource.h, it instead jumps to that location in UrDrome.C.

If it helps, the equivalent lines of output from running ag (taken from the ag command at the top of the buffer) are:

tests/MetabolizerTest.C
171:5:    switch (how)
186:5:    switch (how)
201:5:    switch (how)
220:5:    switch (how)
236:5:    switch (how)
252:5:    switch (how)
276:5:    switch (how)

UrDrome.C
703:3:{ switch (fdwCtrlType)

VideoSource.h
349:45:   * In any case, it's a mode -- on or off. Switching modes may
350:25:   * fail. For example, switching to live mode on a pool without an

On my machine, the output of ag --version is: ag version 0.31.0

My Emacs version is: GNU Emacs 25.0.92.1

I'm using: Mac OS X 10.11.4

@jasonm23
Copy link

jasonm23 commented Aug 4, 2016

M-x customize-variable RET ag-group-matches RET

Set the value to nil

The default is grouped. (it's a new change which borks a few things. I'm hoping it won't be the default for much longer!)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants