Commit graph

415 commits

Author SHA1 Message Date
Adam Porter
f4d362c14c Add: (ement-room-go-to-read-marker) 2021-08-12 14:55:26 -05:00
Adam Porter
4f8df7f655 Add: Read markers and marking rooms as read
This does not show read receipts of other users.
2021-08-12 13:56:16 -05:00
Adam Porter
59582c031d Change/Fix: (ement-room-goto-next/prev) Move only to events 2021-08-12 11:49:27 -05:00
Adam Porter
c355a6857e Bind: C-k to delete message 2021-08-12 08:01:19 -05:00
Adam Porter
6c490fcbc6 Add/Change: Improve minimum contrast of prism faces 2021-08-12 05:52:01 -05:00
Adam Porter
4b0419a039 Fix: (ement-room--format-message) Right-align left margin text
Whew, this is complicated, but it works.  Thanks to the Emacs Lisp
manual, which thoroughly documents these features (but it must be read
carefully).
2021-08-12 05:02:35 -05:00
Adam Porter
7f4a427670 Fix: (ement-room-compose-send) Use quit-restore-window
Fixes #22.  Thanks to @vizs.
2021-08-12 04:30:58 -05:00
Adam Porter
cc65aac59f Change/Fix: (ement-room-retro) Use timeout of 30
When loading hundreds or thousands of old events, the server can take
a while to respond.  This might not even be long enough sometimes, but
usually doing it again works (maybe the server has had time to cache
some more old data in RAM or something).
2021-08-12 03:26:38 -05:00
Adam Porter
45f8ca28bc Add: (ement-room-prism-color-adjustment) 2021-08-12 03:26:38 -05:00
Adam Porter
aa91f46a1f Add: (ement-room-prism-addressee)
Makes conversations a bit easier to follow.  Note the current
limitation mentioned in the option.
2021-08-12 02:29:58 -05:00
Adam Porter
0f3693903d Change: (ement-room-compose-org) Improve error message 2021-08-11 23:44:43 -05:00
Adam Porter
6e0cb47a0c Fix: (ement-room--format-message-body) Never return nil
Thanks to @vizs for reporting.
2021-08-11 23:44:43 -05:00
Adam Porter
c8604f2f71 Change: (ement-room--format-reactions) Sort reactions by number 2021-08-11 03:48:19 -05:00
Adam Porter
9a0c9e6319 Fix: (ement-room--buffer) Disable header line when so configured
Thanks to @vizs for reporting.
2021-08-11 01:25:29 -05:00
Adam Porter
54950a260c Fix: (ement-room-set-message-format) Don't require-match
Thanks to @vizs for reporting.
2021-08-11 00:56:45 -05:00
Adam Porter
7a89dcdeb4 Add: Commands and bindings to switch to special buffers 2021-08-10 18:18:25 -05:00
Adam Porter
df4b4b84b0 Add: Sending Org-formatted messages as HTML 2021-08-10 18:18:25 -05:00
Adam Porter
c486bb91b4 Fix: (ement-room--insert-ts-headers) Include last event
This little bug has been around for a while, and I just found the fix
to it after having made the same fix in the --insert-sender-headers,
whose body I copied from this one.  Hopefully this doesn't break
anything...
2021-08-10 09:44:03 -05:00
Adam Porter
6613eab9a6 Add: (ement-room-set-message-format) 2021-08-10 09:38:11 -05:00
Adam Porter
957021a543 Comment: Add FIXME 2021-08-10 09:36:46 -05:00
Adam Porter
137bd9af79 Fix: (defevent "m.reaction") Only invalidate if nodes
Not sure how this could happen to be nil, but it just did, so...
2021-08-10 09:36:46 -05:00
Adam Porter
8256cf2d2c Fix: (ement-room--insert-ts-headers) Insert before membership events
This is necessary, otherwise a message event after a membership event
might not get a timestamp header.
2021-08-10 09:36:46 -05:00
Adam Porter
f7b5f57837 Comment: Add FIXME 2021-08-10 09:36:46 -05:00
Adam Porter
2383c44bd9 Change: (ement-room-read-string) Use read-from-minibuffer
Thanks to @vizs for suggesting.
2021-08-10 09:36:46 -05:00
Adam Porter
f9a67dbba6 Fix: (ement-room-compose-from-minibuffer) Setting input-method
See #16.  Thanks to @vizs for reporting.
2021-08-10 09:36:46 -05:00
Adam Porter
449cf5962f Fix: (ement-room-compose-send) Setting of input-method
See #16.  Thanks to @vizs for reporting.
2021-08-10 09:36:46 -05:00
Adam Porter
19a11634d5 Fix: (ement-room--insert-event) "Elemental" format
This debug function didn't handle sender headers.

Fixes #15.  Thanks to @akater for reporting.
2021-08-10 09:36:46 -05:00
Adam Porter
11a73eb60d Change: (ement-room-send-reaction) Take key as argument 2021-08-10 03:33:22 -05:00
Adam Porter
3a615a6182 Fix: (ement-room-header-line-format) Escape % characters
e.g. URLs in room topics may include %-encoded characters, which
have special meaning in header-line-format.
2021-08-10 03:33:22 -05:00
Adam Porter
f69040b208 Add/Change: (ement-room-define-event-formatter)
This more clearly (and less hackily) defines event formatters.
2021-08-10 03:33:22 -05:00
Adam Porter
6616880562 Change: Use ement-room--handle-event
Don't call ement-room--insert-event directly anymore.
2021-08-10 02:28:23 -05:00
Adam Porter
001923c3b4 Add: (room-defevent "m.room.message") 2021-08-10 02:28:23 -05:00
Adam Porter
27500359da Change: (ement-room--handle-events) Insert timestamp headers 2021-08-10 02:28:23 -05:00
Adam Porter
d752c4a12a Add: (room-defevent "m.room.member") Insert silently 2021-08-10 02:28:23 -05:00
Adam Porter
11a48cb14e Add: (ement-room--handle-event) 2021-08-10 02:28:23 -05:00
Adam Porter
3b5688fd60 Tidy: Organization 2021-08-10 02:28:23 -05:00
Adam Porter
081502116e Tidy: (ement-room--handle-events) Rename function
Since it uses event "handlers," we might as well call it "handle."
2021-08-10 02:28:23 -05:00
Adam Porter
3764439ccf Fix: (ement-room-view-event) Inhibit read only 2021-08-10 02:28:23 -05:00
Adam Porter
b11d6c7689 Comment: Add FIXME 2021-08-10 02:27:29 -05:00
Adam Porter
6965e7cf3a Tidy: Mode name strings 2021-08-06 11:24:58 -05:00
Adam Porter
90b5acc222 Change/Fix: (compose) Preserve input method
Thanks to @vizs for reporting.
2021-08-06 11:14:49 -05:00
Adam Porter
4cec9adc02 Fix: (ement-room-compose-from-minibuffer) Use abort-recursive-edit
Thanks to @vizs for reporting.
2021-08-06 10:29:55 -05:00
Adam Porter
2b2da7fbe5 Change/Fix: (ement-room-compose-message) Keep input method
Thanks to @vizs for reporting.
2021-08-06 10:16:45 -05:00
Adam Porter
109af6f6dc Fix: (ement-room-compose-send) Buffer variables 2021-08-06 10:16:23 -05:00
Adam Porter
d1da524246 Change: (ement-room-read-string) Enable visual-line-mode 2021-08-06 08:49:43 -05:00
Adam Porter
f1ee6fd913 Change/Fix: Close compose buffers upon sending 2021-08-06 08:46:18 -05:00
Adam Porter
e860fa7072 Add: Compose messages 2021-08-06 07:51:04 -05:00
Adam Porter
933d5e5122 Change: (-room-send-message,reply) Arguments, interactive
In preparation for a compose buffer.
2021-08-06 05:51:37 -05:00
Adam Porter
3e6e79fe0b Comment: Add MAYBE 2021-08-06 05:51:15 -05:00
Adam Porter
6f84cc595d Add: (ement-room-delete-message)
Deletion (redaction) and editing are two different operations.
Redaction is in r0.6.1 of the client-server spec, while editing is
still in the MSC phase, but implemented in Element already.
2021-08-06 01:22:58 -05:00