aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2020-06-21 23:40:43 -0400
committerKyle Meyer <kyle@kyleam.com>2020-06-21 23:40:43 -0400
commit660a8f907e43200fccd3c0f5eb979c4323c2d2e7 (patch)
treea5473cf01eba435deacc8af8091e18cd4453ea4c
parent785eee34151b0e18e6e2c83839c686dd675d9cdf (diff)
downloadpiem-660a8f907e43200fccd3c0f5eb979c4323c2d2e7.tar.gz
eww: Note limitation of extracting inbox name from URL
-rw-r--r--piem-eww.el4
1 files changed, 4 insertions, 0 deletions
diff --git a/piem-eww.el b/piem-eww.el
index de1b36f..e8c77f5 100644
--- a/piem-eww.el
+++ b/piem-eww.el
@@ -38,6 +38,10 @@
"Return inbox name from an EWW buffer."
(when (derived-mode-p 'eww-mode)
(when-let ((link (plist-get eww-data :url)))
+ ;; NEEDSWORK: This relies on the inbox name in the URL matching
+ ;; the inbox name in `piem-inboxes', which might not be the
+ ;; case. If there's a :url in `piem-inboxes', that could be
+ ;; matched instead.
(and (string-match piem-link-re link)
(match-string 1 link)))))