Skip to content

Commit

Permalink
Tidy: Docstrings, unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
alphapapa committed Mar 26, 2022
1 parent 7eac230 commit cab45dd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion ement-notify.el
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ Calls `ement-notify--notifications-notify'."
(ement-notify--log-to-buffer event room session :buffer-name "*Ement Mentions*")))

(defun ement-notify--log-if-buffer (event room session)
"Log EVENT in ROOM on SESSION to \"*Ement Notifications*\" buffer if ROOM has a buffer."
"Log EVENT in ROOM on SESSION to notifications buffer if ROOM has a buffer."
(when (ement-notify--room-buffer-live-p event room session)
(ement-notify--log-to-buffer event room session)))

Expand Down
4 changes: 2 additions & 2 deletions ement-room.el
Original file line number Diff line number Diff line change
Expand Up @@ -1850,7 +1850,7 @@ For use as `imenu-create-index-function'."
(defvar ement-users)

(defvar ement-room-event-fns nil
"Alist mapping event types to functions which process an event of each type in the room's buffer.")
"Alist mapping event types to functions which process events in room buffers.")

;; NOTE: While transitioning to the defevent-based handler system, we
;; define both a handle-events and handle-event function that do the
Expand Down Expand Up @@ -2397,7 +2397,7 @@ If OLD-EVENT-ID is not found, return nil, otherwise non-nil."

(cl-defun ement-room--ewoc-node-before (ewoc data <-fn
&key (from 'last) (pred #'identity))
"Return node in EWOC that matches PRED and belongs before DATA according to COMPARATOR."
"Return node in EWOC that matches PRED and goes before DATA by COMPARATOR."
(cl-assert (member from '(first last)))
(if (null (ewoc-nth ewoc 0))
(ement-debug "EWOC is empty: returning nil.")
Expand Down
2 changes: 1 addition & 1 deletion ement.el
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ to be selected as well."
(endpoint (format "rooms/%s/forget" (url-hexify-string id))))
(when (yes-or-no-p (format "Forget room \"%s\" (%s)? " display-name id))
(ement-api session endpoint :method 'post :data ""
:then (lambda (data)
:then (lambda (_data)
;; NOTE: The spec does not seem to indicate that the action of forgetting
;; a room is synced to other clients, so it seems that we need to remove
;; the room from the session here.
Expand Down

0 comments on commit cab45dd

Please sign in to comment.