[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/mastodon 638e5e09df 25/45: clean up emoji capf
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/mastodon 638e5e09df 25/45: clean up emoji capf |
Date: |
Thu, 1 Feb 2024 10:00:57 -0500 (EST) |
branch: elpa/mastodon
commit 638e5e09dfcafde824c74d277089fd66fb3c959a
Author: marty hiatt <martianhiatus@riseup.net>
Commit: marty hiatt <martianhiatus@riseup.net>
clean up emoji capf
---
lisp/mastodon-toot.el | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/lisp/mastodon-toot.el b/lisp/mastodon-toot.el
index 14bc7db20c..0d7e932fbe 100644
--- a/lisp/mastodon-toot.el
+++ b/lisp/mastodon-toot.el
@@ -239,7 +239,7 @@ send.")
(group-n 2 ?# (+ (any "A-Z" "a-z" "0-9")))
(| "'" word-boundary))) ; boundary or possessive
-(defvar mastodon-emoji-tag-regex
+(defvar mastodon-toot-emoji-regex
(rx (| (any ?\( "\n" "\t" " ") bol)
(group-n 2 ?: ; opening :
(+ (any "A-Z" "a-z" "0-9" "_"))
@@ -1044,7 +1044,7 @@ TYPE is the candidate type, it may be :tags, :handles, or
:emoji."
(defun mastodon-toot--make-capf (regex type &optional annot-fun)
"Build a completion backend for `completion-at-point-functions'.
REGEX is the regex to match preceding text.
-Type is a keyword symbol for `mastodon-toot--fetch-completion-candidates'.
+TYPE is a keyword symbol for `mastodon-toot--fetch-completion-candidates'.
ANNOT-FUN is a function returning an annotatation from a single
arg, a candidate."
(let* ((bounds (mastodon-toot--get-bounds regex))
@@ -1080,7 +1080,7 @@ arg, a candidate."
(defun mastodon-toot--emoji-capf ()
"Build an emoji completion backend for `completion-at-point-functions'."
- (mastodon-toot--make-capf mastodon-emoji-tag-regex
+ (mastodon-toot--make-capf mastodon-toot-emoji-regex
#'mastodon-toot--emoji-annotation-fun
:emoji))
@@ -1094,10 +1094,10 @@ arg, a candidate."
;; or make it an alist and use cdr
(cadr (assoc candidate mastodon-toot-completions)))
-(defun mastodon-toot--emoji-annotation-fun (candidate)
- ""
+(defun mastodon-toot--emoji-annotation-fun (_candidate)
+ "."
;; TODO: emoji image as annot
-)
+ )
;;; REPLY
- [nongnu] elpa/mastodon 693244adec 16/45: add (no replies) to statuses no replies profile view, (continued)
- [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, 2024/02/01
- [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 <=
- [nongnu] elpa/mastodon f3cfd273f9 33/45: mastodon--kill-window in toot-tests.el, ELPA Syncer, 2024/02/01
- [nongnu] elpa/mastodon 20b41bfa95 32/45: Avoid error when there's only one window in a frame when closing window, ELPA Syncer, 2024/02/01
- [nongnu] elpa/mastodon 38f9437ad9 37/45: preserve media when editing scheduled toot, ELPA Syncer, 2024/02/01
- [nongnu] elpa/mastodon b8dd95b4c9 43/45: dir-locals: Set indent-tab-mode to nil, ELPA Syncer, 2024/02/01