aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-05-25 15:11:04 -0500
committerCraig Jennings <c@cjennings.net>2026-05-25 15:11:04 -0500
commit2fdd9538b8d5b05798a7288c23ae26255a436ccf (patch)
tree4c666ec23e9b6fae57e19b18f1ab6174ccc97bbc /scripts
parent89cb0009bcbc71c728827c0aff83bd6d354e99e4 (diff)
downloaddotemacs-2fdd9538b8d5b05798a7288c23ae26255a436ccf.tar.gz
dotemacs-2fdd9538b8d5b05798a7288c23ae26255a436ccf.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 'scripts')
0 files changed, 0 insertions, 0 deletions