Function: erc-bounds-of-word-at-point

erc-bounds-of-word-at-point is a byte-compiled function defined in erc-backend.el.gz.

Signature

(erc-bounds-of-word-at-point)

Documentation

Return the bounds of word at point, or nil if we're not at a word.

If no subword-mode(var)/subword-mode(fun) is active, then this is
(bounds-of-thing-at-point 'word).

Source Code

;; Defined in /usr/src/emacs/lisp/erc/erc-backend.el.gz
(defun erc-bounds-of-word-at-point ()
  "Return the bounds of word at point, or nil if we're not at a word.
If no `subword-mode' is active, then this is
\(bounds-of-thing-at-point 'word)."
  (if (or (erc-word-at-arg-p (point))
          (erc-word-at-arg-p (1- (point))))
      (save-excursion
        (let* ((start (progn (skip-syntax-backward "w") (point)))
               (end   (progn (skip-syntax-forward  "w") (point))))
          (cons start end)))
    nil))