Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Strip whitespace in latexsub :exit-function
Squashed commit of the following: commit 696dcd8 Author: Adam Beckmeyer <[email protected]> Date: Fri Mar 15 10:01:35 2024 -0400 Use string-trim-right instead of string-clean-whitespace string-clean-whitespace does more than is needed and is provided by subr-x instead of just subr, so was causing tests to fail on older emacs versions. commit 20a95d6 Author: Adam Beckmeyer <[email protected]> Date: Fri Mar 15 09:35:03 2024 -0400 Strip whitespace in latexsub :exit-function According to the docstring for completion-extra-properties, the "STRING" passed to the :exit-function should be the bare text to which the field was completed, but helm-mode adds an extra space at the end of "STRING". Since none of our latexsubs include whitespace, we can safely strip whitespace in the :exit-function and work around this helm bug. I will file an upstring bug report against helm, but I think it's worth fixing quickly here since it's only a simple 3-line change. Closes #204.
- Loading branch information