diff options
author | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2023-05-04 20:47:38 +0200 |
---|---|---|
committer | marty hiatt <martianhiatus [a t] riseup [d o t] net> | 2023-05-04 20:47:38 +0200 |
commit | f6cc1eef9aba596fb8b7029a930d0f7dba9a0795 (patch) | |
tree | b84b33295c0abdb1c8ecd46a1acaad08db6511c9 | |
parent | 0100fde06e64a695ab07d770d144171671440ab1 (diff) |
remove comments and wrap code
-rw-r--r-- | lisp/mastodon-toot.el | 6 |
1 files changed, 2 insertions, 4 deletions
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)) |