diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-25 15:11:04 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-25 15:11:04 -0500 |
| commit | b007a9b808d3cf360d03f3d7597119c2fe2cd6e8 (patch) | |
| tree | 0a890f19804f7e9ed01d682d4855689432c2a147 /modules/flyspell-and-abbrev.el | |
| parent | fda029f8f96d9ce7ac8276ceb3475cd9a3bbe797 (diff) | |
| download | dotemacs-b007a9b808d3cf360d03f3d7597119c2fe2cd6e8.tar.gz dotemacs-b007a9b808d3cf360d03f3d7597119c2fe2cd6e8.zip | |
fix(latex): make PDF-viewer selection idempotent
cj/--latex-select-pdf-viewer runs on every LaTeX-mode buffer and was blindly pushing an (output-pdf VIEWER) entry onto TeX-view-program-selection, so each LaTeX buffer opened in a session stacked another duplicate. The head still won, so the viewer worked, but the list grew and the docstring's idempotency claim was false. I drop any existing output-pdf entry before consing the chosen viewer, which also makes "wins over any default" actually true.
Added a test file (the module had none) covering selection, preference order, the PDF-Tools fallback, idempotency, and default override, with executable-find mocked so the run doesn't depend on which viewers are installed.
Diffstat (limited to 'modules/flyspell-and-abbrev.el')
0 files changed, 0 insertions, 0 deletions
