Skip to content

Commit

Permalink
Use string-trim-right instead of string-clean-whitespace
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
non-Jedi committed Mar 15, 2024
1 parent 20a95d6 commit 696dcd8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion julia-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -913,7 +913,7 @@ buffer where the LaTeX symbol starts."
;; helm-mode passes NAME with an extra whitespace at the end. Since
;; `julia--latexsub-start-symbol' won't include whitespace, we can safely
;; strip whitespace.
(clean-name (string-clean-whitespace name))
(clean-name (string-trim-right name))
(symb (abbrev-symbol clean-name julia-latexsub-abbrev-table))
(end (+ beg (length clean-name))))
(abbrev-insert symb name beg end)))
Expand Down

0 comments on commit 696dcd8

Please sign in to comment.