Function: ert--make-xrefs-region
ert--make-xrefs-region is a byte-compiled function defined in
ert.el.gz.
Signature
(ert--make-xrefs-region BEGIN END)
Documentation
Attach cross-references to function names between BEGIN and END.
BEGIN and END specify a region in the current buffer.
Source Code
;; Defined in /usr/src/emacs/lisp/emacs-lisp/ert.el.gz
(defun ert--make-xrefs-region (begin end)
"Attach cross-references to function names between BEGIN and END.
BEGIN and END specify a region in the current buffer."
(save-excursion
(goto-char begin)
(while (progn
(goto-char (+ (point) 2))
(skip-syntax-forward "^w_")
(< (point) end))
(let* ((beg (point))
(end (progn (skip-syntax-forward "w_") (point)))
(sym (intern-soft (buffer-substring-no-properties
beg end)))
(file (and sym (symbol-file sym 'defun))))
(when file
(goto-char beg)
;; help-xref-button needs to operate on something matched
;; by a regexp, so set that up for it.
(re-search-forward "\\(\\sw\\|\\s_\\)+")
(help-xref-button 0 'help-function-def sym file)))
(forward-line 1))))