mirror of
https://github.com/vale981/ement.el
synced 2025-03-05 09:21:37 -05:00
Fix: (ement-room-compose-send) Setting of input-method
See #16. Thanks to @vizs for reporting.
This commit is contained in:
parent
19a11634d5
commit
449cf5962f
1 changed files with 1 additions and 1 deletions
|
@ -2056,8 +2056,8 @@ To be called from an `ement-room-compose' buffer."
|
|||
;; FIXME: This leaves the window from the compose buffer open, which feels awkward.
|
||||
(kill-buffer (current-buffer))
|
||||
(ement-view-room session room)
|
||||
(set-input-method input-method)
|
||||
(let* ((prompt (format "Send message (%s): " (ement-room-display-name ement-room)))
|
||||
(current-input-method input-method) ; Bind around read-string call.
|
||||
(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