Commit graph

561 commits

Author SHA1 Message Date
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
fc9293de2c Fix: (ement--sync) Timed out message 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
33cb19fe7a Tidy: (ement-room-list-mode) Name string 2021-08-06 10:54:58 -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
63985e4d47 Comment: Add TODO 2021-08-06 07:51:04 -05:00
Adam Porter
e860fa7072 Add: Compose messages 2021-08-06 07:51:04 -05:00
Adam Porter
3b0ea8ea07 Add: (-afirst, -aprog1) Anaphoric macros
Too useful not to have, but anaphora.el is only in MELPA, and I'm
trying to avoid MELPA-only dependencies.  dash.el has --first, but not
an aprog1 equivalent, so we might as well just do this.
2021-08-06 07:49:37 -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
6ae5065bf1 Change/Fix: Sync timeouts
This requires the latest commit of plz.el, which adds the :timeout
argument.
2021-08-06 03:22:33 -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
Adam Porter
e32282ebbf Add: (ement-room-with-highlighted-event-at) macro 2021-08-06 01:21:59 -05:00
Adam Porter
b6caf39e98 Fix: Require map >= 2.1
Fixes #13.  Thanks to @dyereh for reporting.
2021-08-05 23:14:54 -05:00
Adam Porter
2c89e71252 Fix: (defevent "m.room.avatar") Only make image if enabled
Fixes #14.  Thanks to @akater for reporting.
2021-08-05 21:22:16 -05:00
Adam Porter
4d184ecbac Change: (ement-room-list-next-unread) Message if no unread rooms 2021-08-05 07:21:48 -05:00
Adam Porter
d699de7666 Add: Room avatars 2021-08-05 06:18:05 -05:00
Adam Porter
afe986f1aa Tidy: (ement-room--event-mentions-user-p) Rename
It's a predicate.
2021-08-04 22:25:50 -05:00
Adam Porter
0e06540f98 Fix: (ement-room-with-typing) Cancel timer before setting new one
Just in case.

cc: @treed
2021-08-04 19:53:08 -05:00
Adam Porter
407f164cca Add: Show reason for membership events 2021-08-04 04:10:59 -05:00
Adam Porter
97c55557d1 Add: Emote message face 2021-08-04 03:27:25 -05:00
Adam Porter
d4a8a5479a Tidy: (ement-api-error) Remove redundant string 2021-08-04 02:18:49 -05:00
Adam Porter
01a800e323 Add: Add to reactions by clicking them
Toggling them back off is yet to be done.
2021-08-04 02:18:49 -05:00
Adam Porter
08e5655f00 Fix: (ement-room-join) Complete session from other buffers
Thanks to @matheusfillipe for reporting.
2021-08-04 01:51:23 -05:00
Adam Porter
1f530d4ab3 Change: (ement-api) Signature
Take SESSION instead of SERVER and TOKEN, and make THEN a keyword
arg.  This is much better.
2021-08-03 23:08:12 -05:00
Adam Porter
741f8772b0 Change: (ement--sync) Signal ement-api-error 2021-08-03 22:03:05 -05:00
Adam Porter
40d3dc1299 Tidy: (ement-notify.el) Declare function 2021-08-03 20:02:30 -05:00
Adam Porter
1d8fff0b77 Add: (ement-notify-prism-background) 2021-08-03 19:15:12 -05:00
Adam Porter
8b60da0cfc Fix: (ement-notify-limit-room-name-width)
Also add ellipsis option, and increase default width by 2 (so
"#matrix-dev" fits).
2021-08-03 06:56:10 -05:00
Adam Porter
9061d052a0 Fix: (defface ement-room-mention) Extend on Emacs 27+ 2021-08-03 05:02:19 -05:00
Adam Porter
3bf9d83b6a Fix: (ement-notify, ement-notify-ignore-predicates) 2021-08-03 04:53:16 -05:00
Adam Porter
cdbccc8a4b Fix: (ement-notify-functions) Default value
Forgot to change that earlier.
2021-08-03 04:49:57 -05:00
Adam Porter
7df47f39af Fix: (ement-api-error) Error message string
Need to mention Ement in it, otherwise users won't know where it came
from.
2021-08-03 04:47:10 -05:00
Adam Porter
40fdd9ce09 Comment: Add TODO 2021-08-03 04:47:10 -05:00
Adam Porter
56027d8804 Add: (ement-room-set-topic) 2021-08-03 04:47:10 -05:00
Adam Porter
8fdbc4f1b3 Tidy: Whitespace 2021-08-03 04:08:10 -05:00
Adam Porter
c8060982bc Change/Fix: (ement-room--format-event) help-echo for other types
Set the help-echo to just the event's content, not the whole event.
The whole event might be very large when including its member structs
and theirs on down the chain, and this might be causing an occasional
runaway allocation problem.

cc: @treed
2021-08-03 04:05:00 -05:00
Adam Porter
2607ec3145 Change: (ement-connect) Refactor, use plist args, add uri-prefix arg
This should, e.g. make it possible for Pantalaimon users to do
something like:

  (ement-connect :user-id "@USERNAME:SERVER" :password "PASSWORD"
                 :uri-prefix "http://localhost:8080")

Fixes #10.  Fixes #12.
2021-08-03 02:25:52 -05:00
Adam Porter
effd837776 Comment: Add FIXME 2021-08-03 02:25:45 -05:00
Adam Porter
35a4147660 Change: Save plists instead of structs in saved sessions
The user and server structs could change as well, so use plists for
them, too.
2021-08-03 02:24:51 -05:00