Skip to content

Conversation

@rmkaplan
Copy link
Contributor

So SEE of a PDF file should open up a desktop window in a pdf viewer. (This uses PDFILEP, which looks inside the file, not at the extension. So it might try to open a file with a wrong extension, and the viewer might fail.)

@fghalasz
Copy link
Member

fghalasz commented Nov 12, 2023

When PDFFILEP is T and the filename extension is not .pdf, why not copy it to a file in /tmp with a .pdf extension (as we do in ShellOpen) and then call SEE-PDF on the /tmp file?

Maybe we could bake this into SEE-PDF (as opposed to the FB)? Probably a better place for it.

@rmkaplan
Copy link
Contributor Author

rmkaplan commented Nov 13, 2023 via email

@masinter masinter force-pushed the rmk91--FILEBROWSER-SEE-shows-PDFs branch from 04254a1 to 143faaa Compare November 17, 2023 15:23
So SEE of a PDF file should open up a desktop window in a pdf viewer.  (This uses PDFILEP, which looks inside the file, not at the extension.  So it might try to open a file with a wrong extension, and the viewer might fail.)
@masinter masinter force-pushed the rmk91--FILEBROWSER-SEE-shows-PDFs branch from 143faaa to eb742a9 Compare November 29, 2023 15:00
@masinter masinter requested a review from fghalasz November 29, 2023 15:01
Copy link
Member

@masinter masinter left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@masinter masinter merged commit ab831a4 into master Nov 29, 2023
@masinter masinter deleted the rmk91--FILEBROWSER-SEE-shows-PDFs branch November 29, 2023 15:05
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

Successfully merging this pull request may close these issues.

4 participants