Commit graph

165 commits

Author SHA1 Message Date
Adam Porter
e32282ebbf Add: (ement-room-with-highlighted-event-at) macro 2021-08-06 01:21:59 -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
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
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
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
b541e2202d Fix: Use inherit-input-method when calling read-string
Fixes #11.  Thanks to @vizs for reporting.
2021-08-03 01:28:19 -05:00
Adam Porter
44550cfbdc Add: Notifications and Mentions buffers 2021-08-03 00:37:49 -05:00
Adam Porter
de50a8b6df Add: (ement-room-message-format-spec) %O for room display name 2021-08-03 00:14:59 -05:00
Adam Porter
e10f70f46d Add: (ement-with-progress-reporter) macro, and use it 2021-08-02 21:24:52 -05:00
Adam Porter
41997bb32e Tidy: Untabify
I guess this is what I get for occasionally using other Emacs configs
to edit.
2021-08-02 21:22:45 -05:00
Adam Porter
3c1982f6e0 Change: (ement-room--process-events) Use equal as testfn
Equal seems generally faster than string=, because it uses a hash
instead of char-by-char comparison.
2021-08-02 20:48:50 -05:00
Adam Porter
0cb35b4617 Change: (ement-room-send-event-callback) Message only when :debug 2021-08-01 08:36:16 -05:00
Adam Porter
82da455775 Add: (ement-room-send-reaction) Use reaction at point 2021-08-01 05:52:48 -05:00
Adam Porter
e800c04f3b Add/Change: (ement-room-send-event-callback)
Use this callback function, which warns if the server reuses an event
ID when sending an event, which would indicate that we're reusing
transaction IDs, which could indicate a bug.
2021-08-01 05:15:52 -05:00
Adam Porter
9ca6dc4922 Change/Fix: (ement-room-send-message) Scrolling after sending 2021-08-01 02:52:31 -05:00
Adam Porter
e9df5d60b8 Add: (ement-room-image-initial-height) 2021-08-01 01:15:33 -05:00
Adam Porter
bb6c75d248 Fix: (ement-room--buffer) Use generate-new-buffer
When two rooms have the same name, get-buffer-create conflates them.
2021-08-01 01:06:51 -05:00
Adam Porter
9bc7712540 Tidy: (ement-room--buffer) Use room variable
Not strictly necessary, but makes sense, and might avoid mistakes in
the future if this code is changed.
2021-08-01 01:05:34 -05:00
Adam Porter
ec0c324823 Change: (ement-room-image-scale-mouse) Toggle scale 2021-08-01 00:16:44 -05:00
Adam Porter
baed04d5d5 Change/Fix: Support images on Emacs 27+ 2021-07-31 23:47:57 -05:00
Adam Porter
9eaf997b36 Add: (ement-room--buffer) Set list-buffers-directory
Especially useful when used with bufler-list.
2021-07-30 03:07:42 -05:00
Adam Porter
3ad6caeca8 Add: Sending reactions 2021-07-30 00:48:22 -05:00
Adam Porter
215a334468 Add: (ement-room-with-typing)
Lisp is great.
2021-07-29 19:04:54 -05:00
Adam Porter
c009da4c80 Add: Sending image messages 2021-07-29 18:52:14 -05:00
Adam Porter
62a740aa9d Fix: (ement-room-image-show) Handle invalid images 2021-07-29 18:07:56 -05:00
Adam Porter
28528ebdbd Tidy: (ement-room) Move functions 2021-07-29 16:57:24 -05:00
Adam Porter
a8e9dadb01 Add: Message editing 2021-07-29 05:23:59 -05:00
Adam Porter
6fefd3c075 Add: Reply to marked text 2021-07-29 04:26:14 -05:00
Adam Porter
461ceb789a Comment: Add TODO 2021-07-29 04:13:57 -05:00
Adam Porter
fd1cd6f26b Add: Cycle and scroll through unread buffers with SPC 2021-07-29 04:13:57 -05:00
Adam Porter
c45d0a17c6 Change: ("m.typing") Set footer silently 2021-07-29 04:05:48 -05:00
Adam Porter
2abc3a03db Change/Fix: (ement-room--format-message-body) Ignore nil bodies
This shouldn't happen, but it did once, so let's protect against it
for now.
2021-07-29 04:05:48 -05:00
Adam Porter
591e486598 Add/Change: Error handling, force resync with prefix
In case a sync process gets stuck, "C-u g" in a room buffer will
delete the old sync process and start a new one.

Also, define ement-api-error type.  Still not sure this is all
idiomatic, but it seems to work now.
2021-07-29 03:07:54 -05:00
Adam Porter
200e38df36 Change: Use new-events list in room local slot
And push new events directly to timeline slot.  This makes more sense.
2021-07-29 02:07:58 -05:00
Adam Porter
eb6033049a Tidy: (ement-room--buffer) 2021-07-29 02:03:50 -05:00
Adam Porter
234d841b11 Tidy: (ement-room-mode-hook) Add visual-line-mode 2021-07-29 02:03:06 -05:00
Adam Porter
df5c3fe170 Comment: Whitespace and TODOs 2021-07-29 02:01:00 -05:00
Adam Porter
6b32645726 Change/Fix: (ement-room-leave) Improve room completion 2021-07-29 01:02:06 -05:00
Adam Porter
41140995b7 Change: Move room-display-name function to ement-room
Seems to make sense.
2021-07-29 01:01:40 -05:00
Adam Porter
1bebb8f02f Add: (ement-room-list) Direct column 2021-07-29 00:22:04 -05:00