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
Adam Porter
744f88423b
Add: Show room name in prompt when sending message
2021-07-28 22:13:31 -05:00
Adam Porter
67aed182ac
Fix: (ement-room-header-line-format) Handle empty room names/topics
2021-07-28 22:13:30 -05:00
Adam Porter
0e58285e8b
Add: Room tombstone events
...
The body of the tombstone event is shown in a warning face in the EWOC
footer, and the tombstone event is inserted into the buffer as well.
Seems to work well in the old #gitter_syl20bnr=2Fspacemacs:matrix.org
room.
2021-07-28 22:13:30 -05:00
Adam Porter
3a62163f01
Fix: (ement-room-join) Check for room in join-fn
...
The first sync response after joining a room might not have that room
as a joined-room, so ensure the room struct is found in the join-fn.
2021-07-28 22:13:30 -05:00
Adam Porter
6ccc5cb808
Tidy: (ement-room-leave) Confirmation prompt
2021-07-28 22:13:30 -05:00
Adam Porter
f5f08f4c82
Add: (ement-room-message-format-spec) Add IRC-style without margins
2021-07-28 22:13:30 -05:00
Adam Porter
c8c0686c74
Add: Linkify URLs in message bodies
2021-07-28 22:13:30 -05:00
Adam Porter
cd59430081
Fix: Typing notification grace period
...
Had these two numbers swapped. According to the spec, we should send
the notification every 15 seconds, while telling the server that the
notification is valid for 20 (for example).
2021-07-28 02:58:53 -05:00
Adam Porter
ee16b7e64a
Add: Join/leave room commands
2021-07-27 22:07:26 -05:00
Adam Porter
9166360628
Tidy: (ement-room--user-color) Variable name
...
package-lint thought that "show-buffer" was a function call, and that
function was removed from earlier Emacsen.
2021-07-27 21:51:14 -05:00
Adam Porter
070dedb8c9
Tidy: Function declarations
2021-07-27 21:51:02 -05:00
Adam Porter
6f2a2f2e45
Tidy: Headers for package-lint
...
Even though these aren't packages, the way we call package-lint on
each file causes warnings for missing keywords.
2021-07-27 21:50:05 -05:00
Adam Porter
12f2f33712
Tidy: Docstrings
...
Thanks, Checkdoc.
2021-07-27 21:42:53 -05:00
Adam Porter
04774c617a
Fix: (ement-room--add-reply) Only use join events
...
Thanks to @treed for reporting and testing.
2021-07-27 20:52:42 -05:00
Adam Porter
0aa366a85c
Change: (ement-room-left-margin-width) Mention ttys in docstring
2021-07-27 05:04:09 -05:00
Adam Porter
1c31756af5
Change: (ement-room--insert-events) Follow new events
...
When window-point is at point-max, keep it there after inserting
events.
2021-07-27 02:22:37 -05:00
Adam Porter
89b7b28f89
Add: Notifications
2021-07-27 01:52:22 -05:00
Adam Porter
2b68deb0e4
Change: (ement-room-message-format-spec) Set default to IRCy
...
Actually change it this time.
2021-07-27 01:20:14 -05:00
Adam Porter
5c96553c36
Add: Show images in rooms
2021-07-26 23:26:52 -05:00
Adam Porter
510487207c
Change: (ement-room--ewoc-last-matching) Take EWOC as first argument
...
More consistent and flexible. Also declare indentation.
2021-07-26 23:19:16 -05:00
Adam Porter
344be71dda
Add: (ement-room--format-message) Zero-width spaces after names
...
This allows commands like dabbrev-expand to work for displaynames,
otherwise they combine displaynames with the message bodies.
2021-07-26 20:00:15 -05:00
akater
abd8cf9fbd
Fix: (ement-room) Require mwheel
...
Silences byte-compiler on Emacsen built --without-x.
Fixes #5 .
2021-07-26 19:00:11 -05:00
Adam Porter
ac2af07325
Add: Send typing notifications
2021-07-26 18:52:41 -05:00
Adam Porter
deeb8a6654
Add: Mentions
...
The ement-user struct gains a new slot, which invalidates structs in
saved sessions, so users will need to log in again.
2021-07-26 18:20:18 -05:00
Adam Porter
cc0e6a4914
Fix: (ement-room--insert-events) Select window before inserting
...
This seems to actually fix the bug now, hopefully for good...although
I've said that, before...but I think I finally found the root
cause (at least, without digging into EWOC internals).
2021-07-26 13:38:08 -05:00
Adam Porter
8427919dbd
Debug: (ement-room--insert-event) Add more debug code
2021-07-26 13:38:08 -05:00
Adam Porter
b44e7b18b6
Fix: Display-name help-echo
2021-07-25 23:21:54 -05:00
Adam Porter
2ce26f405a
Fix/Tidy: (defevent "m.typing") Show ID if no displayname
...
Maybe someday we'll use /members to get the displayname.
2021-07-25 23:21:54 -05:00
Adam Porter
d1764ccf7a
Add: (defface ement-room-message)
2021-07-25 23:21:54 -05:00