Function: embark-next-symbol
embark-next-symbol is an interactive and byte-compiled function
defined in embark.el.
Signature
(embark-next-symbol)
Documentation
Jump to next occurrence of symbol at point.
The search respects symbol boundaries.
Key Bindings
Source Code
;; Defined in ~/.emacs.d/elpa/embark-20260610.302/embark.el
(defun embark-next-symbol ()
"Jump to next occurrence of symbol at point.
The search respects symbol boundaries."
(interactive)
(if-let* ((symbol (thing-at-point 'symbol)))
(let ((regexp (format "\\_<%s\\_>" (regexp-quote symbol))))
(when (looking-at regexp)
(forward-symbol 1))
(unless (re-search-forward regexp nil t)
(user-error "Symbol `%s' not found" symbol)))
(user-error "No symbol at point")))