Reword comment about multi-line button recognition

This commit is contained in:
Protesilaos Stavrou 2022-06-23 08:01:47 +03:00
parent 1f5077181a
commit 2d3a6fd8f3
No known key found for this signature in database
GPG key ID: 99BD6459CD5CA3EA

View file

@ -314,13 +314,14 @@ format is always [[denote:IDENTIFIER]]."
(when (or (thing-at-point-looking-at denote-link--regexp-plain)
(thing-at-point-looking-at denote-link--regexp-markdown)
(thing-at-point-looking-at denote-link--regexp-org)
;; REVIEW 2022-06-19: This is crude. It is meant to handles
;; the case where a link is broken by `fill-paragraph' into
;; two lines, in which case it buttonizes only the
;; "denote:ID" part. Example:
;; Meant to handle the case where a link is broken by
;; `fill-paragraph' into two lines, in which case it
;; buttonizes only the "denote:ID" part. Example:
;;
;; [[denote:20220619T175212][This is a
;; test]]
;;
;; Maybe there is a better way?
(thing-at-point-looking-at "\\[\\(denote:.*\\)]"))
(match-string-no-properties 0)))