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

next-error won't work in Edit mode keymap the 2nd time (and afterwards) of using it #405

Open
xuanni opened this issue Feb 17, 2023 · 0 comments

Comments

@xuanni
Copy link

xuanni commented Feb 17, 2023

  • Emacs version : 28.2
  • Operating system : (manjaro, ubuntu)
  • Search command(ag, pt, ack etc) and version : ag-2.2.0
  • Last value of helm-ag--last-command : Its value is ("ag" "--nocolor" "--nogroup" "install") not sure about this

Actual behavior

M-n M-g (next-error) only work in edit mode once per emacs session. After use it once, I have to close emacs and re-open it to make it work.

Expected behavior

M-n M-g (next-error) should work in edit mode (C-c C-e from helm-ag result) every time it's used.

Steps to reproduce

  1. Run emacs -q, setup melpa then package-initialize, install helm-ag from melpa (helm-ag-20221017.1528).
  2. Then in any directory with files, m-x helm-ag RET pattern RET, in then C-c C-e go to edit mode, M-g M-n (next-error) will bring you to the search result in the source file. (1st time of use is all good).
  3. Now C-c C-k to abort the helm-ag. Repeat step 2, the next-error returns message "marker does not point anywhere", and it won't work unless you exit and re-open emacs. Each emacs session allows only one instance of edit mode usage.

in the README, it says quote

You can use next-error and previous-error for seeing file content which current line indicates.

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

No branches or pull requests

1 participant