Function: tagref--find-column-of-tag
tagref--find-column-of-tag is a natively compiled function defined in
tagref.el.
Signature
(tagref--find-column-of-tag FILE LINE TAG-NAME)
Documentation
Find the column of [tag:TAG-NAME] in FILE at LINE.
Returns the 0-based column, or 0 if not found.
Source Code
;; Defined in /nix/store/mnch55hf9yszlb4dvfqhbqf0840v41qh-emacs-packages-deps/share/emacs/site-lisp/tagref.el
(defun tagref--find-column-of-tag (file line tag-name)
"Find the column of [tag:TAG-NAME] in FILE at LINE.
Returns the 0-based column, or 0 if not found."
(let ((root (tagref--project-root)))
(when root
(let ((full-path (expand-file-name file root)))
(when (file-exists-p full-path)
(with-temp-buffer
(insert-file-contents full-path)
(goto-char (point-min))
(forward-line (1- line))
(if (re-search-forward (format "\\[tag:%s\\]"
(regexp-quote tag-name))
(line-end-position) t)
(- (match-beginning 0) (line-beginning-position))
0)))))))