[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/mastodon 589868c98d 19/45: add image-description text prop
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/mastodon 589868c98d 19/45: add image-description text property |
Date: |
Thu, 1 Feb 2024 10:00:49 -0500 (EST) |
branch: elpa/mastodon
commit 589868c98d23ebce4157c3d654e2b5766b414dab
Author: marty hiatt <martianhiatus@riseup.net>
Commit: marty hiatt <martianhiatus@riseup.net>
add image-description text property
---
lisp/mastodon-media.el | 3 ++-
lisp/mastodon-tl.el | 6 ++++--
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/lisp/mastodon-media.el b/lisp/mastodon-media.el
index 561327c8d2..894a21a32a 100644
--- a/lisp/mastodon-media.el
+++ b/lisp/mastodon-media.el
@@ -321,7 +321,8 @@ CAPTION is the image caption if provided."
(concat
(mastodon-tl--propertize-img-str-or-url
"[img]" media-url full-remote-url type help-echo
- (create-image mastodon-media--generic-broken-image-data nil t))
+ (create-image mastodon-media--generic-broken-image-data nil t)
+ nil caption)
" ")))
(provide 'mastodon-media)
diff --git a/lisp/mastodon-tl.el b/lisp/mastodon-tl.el
index 8e3ce4a073..97e8bc56e3 100644
--- a/lisp/mastodon-tl.el
+++ b/lisp/mastodon-tl.el
@@ -1053,11 +1053,12 @@ message is a link which unhides/hides the main body."
(concat "Media:: " .preview_url) ; string
.preview_url .remote_url .type .description
display-str ; display
- 'shr-link)
+ 'shr-link .description)
"\n")))))
(defun mastodon-tl--propertize-img-str-or-url
- (str media-url full-remote-url type help-echo &optional display face)
+ (str media-url full-remote-url type help-echo
+ &optional display face caption)
"Propertize an media placeholder string \"[img]\" or media URL.
STR is the string to propertize, MEDIA-URL is the preview link,
FULL-REMOTE-URL is the link to the full resolution image on the
@@ -1074,6 +1075,7 @@ HELP-ECHO, DISPLAY, and FACE are the text properties to
add."
'mastodon-tab-stop 'image ; for do-link-action-at-point
'image-url full-remote-url ; for shr-browse-image
'keymap mastodon-tl--shr-image-map-replacement
+ 'image-description caption
'help-echo (if (or (string= type "image")
(string= type nil)
(string= type "unknown")) ; handle borked
images
- [nongnu] elpa/mastodon fda3e5963d 44/45: Merge pull request 'Add a couple of key bindings that I have found useful' (#525) from dme/mastodon.el:devel/suspend into develop, (continued)
- [nongnu] elpa/mastodon fda3e5963d 44/45: Merge pull request 'Add a couple of key bindings that I have found useful' (#525) from dme/mastodon.el:devel/suspend into develop, ELPA Syncer, 2024/02/01
- [nongnu] elpa/mastodon f994ae1b71 03/45: add role badge to profiles. FIX #504., ELPA Syncer, 2024/02/01
- [nongnu] elpa/mastodon f1af40e2c0 08/45: edit toots adopt attachments. FIX #506, ELPA Syncer, 2024/02/01
- [nongnu] elpa/mastodon aa0a2c08f0 06/45: add msg about loss of attachments on editing toot, ELPA Syncer, 2024/02/01
- [nongnu] elpa/mastodon c9c9487968 21/45: docstring, ELPA Syncer, 2024/02/01
- [nongnu] elpa/mastodon 6a306afeed 23/45: FIX #515. completion-ignore-case t buffer-local for compose, ELPA Syncer, 2024/02/01
- [nongnu] elpa/mastodon 65821b2f24 17/45: update help-echo for new profile cycle cmds, ELPA Syncer, 2024/02/01
- [nongnu] elpa/mastodon 8e576fc297 09/45: implement exclude_replies on profile view, inc. cycle, ELPA Syncer, 2024/02/01
- [nongnu] elpa/mastodon ff4d7a5ae4 15/45: docstrings/comments for quote-reply issues, ELPA Syncer, 2024/02/01
- [nongnu] elpa/mastodon 693244adec 16/45: add (no replies) to statuses no replies profile view, ELPA Syncer, 2024/02/01
- [nongnu] elpa/mastodon 589868c98d 19/45: add image-description text property,
ELPA Syncer <=
- [nongnu] elpa/mastodon 1a4c9545ec 12/45: when active region on reply, insert quoted str in reply buffer, ELPA Syncer, 2024/02/01
- [nongnu] elpa/mastodon 9451238519 18/45: start on emoji-capf for compose buffer, ELPA Syncer, 2024/02/01
- [nongnu] elpa/mastodon 1385416479 30/45: add RET binding for tl--thread, ELPA Syncer, 2024/02/01
- [nongnu] elpa/mastodon 136e4d387a 45/45: Merge branch 'develop', ELPA Syncer, 2024/02/01
- [nongnu] elpa/mastodon fa73817c22 41/45: Add 'z' binding to bury the current buffer, ELPA Syncer, 2024/02/01
- [nongnu] elpa/mastodon 3437dbbeea 31/45: add sensitive property to images, so we can blur them one day., ELPA Syncer, 2024/02/01
- [nongnu] elpa/mastodon 231b43a372 36/45: mastodon-tl--tag-timeline-tags defcustom, ELPA Syncer, 2024/02/01
- [nongnu] elpa/mastodon f5a19ad534 28/45: Merge pull request 'Use `equal' to access alist entries by `mastodon-instance-url'' (#516) from dme/mastodon.el:devel/dme into develop, ELPA Syncer, 2024/02/01
- [nongnu] elpa/mastodon 638e5e09df 25/45: clean up emoji capf, ELPA Syncer, 2024/02/01
- [nongnu] elpa/mastodon f3cfd273f9 33/45: mastodon--kill-window in toot-tests.el, ELPA Syncer, 2024/02/01