aboutsummaryrefslogtreecommitdiff
path: root/modules/ui-theme.el
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
commit3af2774bd9baccc6a4d43704c6121f5bd553a8e6 (patch)
treeaaccf37fadc9525ab26423e11584fa434466d0ec /modules/ui-theme.el
parent82910b7cef53653bd13a2710102d196f94af240f (diff)
downloaddotemacs-3af2774bd9baccc6a4d43704c6121f5bd553a8e6.tar.gz
dotemacs-3af2774bd9baccc6a4d43704c6121f5bd553a8e6.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/ui-theme.el')
0 files changed, 0 insertions, 0 deletions