Function: erc-spelling--flyspell-check

erc-spelling--flyspell-check is a byte-compiled function defined in erc-spelling.el.gz.

Signature

(erc-spelling--flyspell-check BEG END _)

Documentation

Return non-nil and remove overlay if text between BEG and END is correct.

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc-spelling.el.gz
(defun erc-spelling--flyspell-check (beg end _)
  "Return non-nil and remove overlay if text between BEG and END is correct."
  (or (and erc-channel-users
           (erc-get-channel-user (buffer-substring-no-properties beg end))
           (always (flyspell-unhighlight-at beg)))
      (and erc-input-marker (> beg erc-input-marker) (eq (char-before beg) ?/)
           (or (= beg (1+ erc-input-marker)) ; allow /misspelled at prompt
               (erc-command-symbol (buffer-substring-no-properties beg end)))
           (always (flyspell-unhighlight-at beg)))))