Function: gptel--link-standalone-p
gptel--link-standalone-p is a natively compiled function defined in
gptel-request.el.
Signature
(gptel--link-standalone-p LINK)
Documentation
Return non-nil if Markdown LINK is isolated.
This means the extent from the link beginning to end is the only non-whitespace content on its line.
Source Code
;; Defined in /nix/store/q3r7g81pvghw7a523kjk2k2zih3pfk8z-emacs-packages-deps/share/emacs/site-lisp/elpa/gptel-20261002.545/gptel-request.el
(defun gptel--link-standalone-p (link)
"Return non-nil if Markdown LINK is isolated.
This means the extent from the link beginning to end is the only
non-whitespace content on its line."
(let ((beg (car link)) (end (cadr link)))
(save-excursion
(and (= beg (progn (goto-char beg) (beginning-of-line)
(skip-chars-forward "\t ")
(point)))
(= end (progn (goto-char end) (end-of-line)
(skip-chars-backward "\t ")
(point)))))))