Function: jinx--save-file

jinx--save-file is a natively compiled function defined in jinx.el.

Signature

(jinx--save-file ACTION KEY WORD)

Documentation

Add or remove WORD from file-local variable, or format word with KEY.

ACTION can be add, remove, has, format.

Source Code

;; Defined in /nix/store/b5jnxgwmlp7hh60wfrx7amhrmrpfcqqi-emacs-packages-deps/share/emacs/site-lisp/elpa/jinx-20260926.912/jinx.el
(defun jinx--save-file (action key word)
  "Add or remove WORD from file-local variable, or format word with KEY.
ACTION can be add, remove, has, format."
  (pcase-exhaustive action
    ((or 'add 'remove)
     (jinx--save-local-word action 'jinx-local-words word)
     (jinx--add-file-local 'jinx-local-words (equal jinx-local-words "")))
    ('has (member word (split-string jinx-local-words)))
    ('format `((,(char-to-string key) ,word "File")))))