Function: jinx--save-local-word
jinx--save-local-word is a natively compiled function defined in
jinx.el.
Signature
(jinx--save-local-word ACTION VAR WORD)
Documentation
Add/remove WORD to/from local word list VAR.
ACTION can be add or remove.
Source Code
;; Defined in /nix/store/b5jnxgwmlp7hh60wfrx7amhrmrpfcqqi-emacs-packages-deps/share/emacs/site-lisp/elpa/jinx-20260926.912/jinx.el
(defun jinx--save-local-word (action var word)
"Add/remove WORD to/from local word list VAR.
ACTION can be add or remove."
(let ((list (split-string (symbol-value var))))
(pcase-exhaustive action
('add
(push word list)
(add-to-list 'jinx--session-words word))
('remove
(cl-callf2 remove word list)
(cl-callf2 remove word jinx--session-words)))
(set var (string-join (sort (delete-dups list) #'string<) " "))))