Function: hi-lock-face-symbol-at-point
hi-lock-face-symbol-at-point is an autoloaded, interactive and
byte-compiled function defined in hi-lock.el.gz.
Signature
(hi-lock-face-symbol-at-point)
Documentation
Highlight each instance of the symbol at point.
Uses the next face from hi-lock-face-defaults without prompting,
unless you use a prefix argument.
Uses find-tag-default-as-symbol-regexp to retrieve the symbol at point.
If REGEXP contains upper case characters (excluding those preceded by \)
and search-upper-case is non-nil, the matching is case-sensitive.
This uses Font lock mode if it is enabled; otherwise it uses overlays,
in which case the highlighting will not update as you type. The Font
Lock mode is considered "enabled" in a buffer if its major-mode
causes font-lock-specified-p to return non-nil, which means
the major mode specifies support for Font Lock.
Key Bindings
Aliases
Source Code
;; Defined in /usr/src/emacs/lisp/hi-lock.el.gz
;;;###autoload
(defun hi-lock-face-symbol-at-point ()
"Highlight each instance of the symbol at point.
Uses the next face from `hi-lock-face-defaults' without prompting,
unless you use a prefix argument.
Uses `find-tag-default-as-symbol-regexp' to retrieve the symbol at point.
If REGEXP contains upper case characters (excluding those preceded by `\\')
and `search-upper-case' is non-nil, the matching is case-sensitive.
This uses Font lock mode if it is enabled; otherwise it uses overlays,
in which case the highlighting will not update as you type. The Font
Lock mode is considered \"enabled\" in a buffer if its `major-mode'
causes `font-lock-specified-p' to return non-nil, which means
the major mode specifies support for Font Lock."
(interactive)
(let* ((regexp (hi-lock-regexp-okay
(find-tag-default-as-symbol-regexp)))
(hi-lock-auto-select-face t)
(face (hi-lock-read-face-name)))
(or (facep face) (setq face 'hi-yellow))
(unless hi-lock-mode (hi-lock-mode 1))
(hi-lock-set-pattern
regexp face nil nil
(if (and case-fold-search search-upper-case)
(isearch-no-upper-case-p regexp t)
case-fold-search))))