From f6cc1eef9aba596fb8b7029a930d0f7dba9a0795 Mon Sep 17 00:00:00 2001 From: marty hiatt Date: Thu, 4 May 2023 20:47:38 +0200 Subject: remove comments and wrap code --- lisp/mastodon-toot.el | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'lisp/mastodon-toot.el') diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el index 763e334..78291d0 100644 --- a/lisp/mastodon-toot.el +++ b/lisp/mastodon-toot.el @@ -1424,9 +1424,8 @@ LONGEST is the length of the longest binding." "Format a REPLY-TEXT for display in compose buffer docs." (let* ((rendered (mastodon-tl--render-text reply-text)) (no-newlines (replace-regexp-in-string "\n\n" "\n" rendered)) - (crop (string-limit - (concat " Reply to: " no-newlines) - mastodon-toot-orig-in-reply-length))) + (crop (string-limit (concat " Reply to: " no-newlines) + mastodon-toot-orig-in-reply-length))) (if (> (length no-newlines) (length crop)) ; we cropped: (concat crop "\n") @@ -1644,7 +1643,6 @@ Added to `after-change-functions'." ;; cull any prev props: ;; stops all text after a handle or mention being propertized: (set-text-properties (cdr header-region) (point-max) `(face ,face)) - ;; TODO: confirm allowed hashtag/handle characters: (mastodon-toot--propertize-item mastodon-toot-tag-regex 'success (cdr header-region)) -- cgit v1.2.3