mirror of
https://github.com/vale981/ement.el
synced 2025-03-04 17:01:39 -05:00
Fix: (ement-room-compose-send) Buffer variables
This commit is contained in:
parent
d1da524246
commit
109af6f6dc
1 changed files with 5 additions and 3 deletions
|
@ -1929,9 +1929,11 @@ To be called from an `ement-room-compose' buffer."
|
|||
;; Putting it in the kill ring seems like the best thing to do, to ensure
|
||||
;; it doesn't get lost if the user exits the minibuffer before sending.
|
||||
(kill-new (string-trim (buffer-string)))
|
||||
(kill-buffer (current-buffer))
|
||||
;; FIXME: This leaves the window from the compose buffer open, which feels awkward.
|
||||
(ement-view-room ement-session ement-room)
|
||||
(let ((room ement-room)
|
||||
(session ement-session))
|
||||
;; FIXME: This leaves the window from the compose buffer open, which feels awkward.
|
||||
(kill-buffer (current-buffer))
|
||||
(ement-view-room session room))
|
||||
(let* ((prompt (format "Send message (%s): " (ement-room-display-name ement-room)))
|
||||
(body (ement-room-read-string prompt (car kill-ring) nil nil 'inherit-input-method)))
|
||||
(ement-room-send-message ement-room ement-session :body body)))
|
||||
|
|
Loading…
Add table
Reference in a new issue