-
Notifications
You must be signed in to change notification settings - Fork 9
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
Make "next-error" and "previous-error" work when visiting files that contain results of "pdfgrep" #3
Comments
jeremy-compostella
added a commit
that referenced
this issue
Feb 3, 2021
If the pdfgrep result is loaded from a file the locus buffer name is not `pdfgrep-buffer-name'. This should help with #3. Signed-off-by: Jeremy Compostella <jeremy.compostella@gmail.com>
I do not reproduce your issue. However, I was facing a buffer name issue which I have resolved with a4ca0a1.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The context
Sometimes I execute
pdfgrep
in multiple PDF files which contain more than 1000 pages. For this reason, I want to save the results in order to visit the search results another day.Creating the file (let's say,
A
) that contain the results ofpdfgrep
is fairly easily since the buffer that shows the results found bypdfgrep
inserts a modeline into the buffer which causes Emacs to setgrep
as the major-mode when revisiting the fileA
. The code block shown below shows the results of executingM-x pdfgrep
in an arbitrary fileThe problem
The problem is present when visiting a file that contain the results of
pdfgrep
. ExecutingM-g p
(previous-error
) andM-g n
(next-error
) show the following message in the minibuffer even when the buffer that shows the stored results ofpdfgrep
is*pdfgrep*
.Additional context
next-error
andprevious-error
do work when they are executed in the buffer that is immediately opened after executingM-x pdfgrep
.next-error
andprevious-error
also work when visiting a file that contain results ofM-x grep
. I confirmed by doing the following:grep
(i.e.M-x grep
) in arbitrary files and save the results in a file with nameresults
.results
M-x next-error
(i.e. pressM-g n
) andM-x previous-error
(i.e. pressM-g p
). This caused the cursor to open the file and move the cursor to the line which contained the matching pattern.The question
Is there any way to make the functions
next-error
andprevious-error
work (that is, open the PDF at the page that contain the selected result and don't show a error message in the minibuffer) when visiting a file that shows the results of executingpdfgrep
?The text was updated successfully, but these errors were encountered: