Adam Porter
84ac8f9130
Fix: (ement-room--format-member-event) For unset displayname
...
When the user unsets displayname, we use the calculated one.
2022-06-22 21:05:30 -05:00
Adam Porter
53384f20ff
Comment: Add TODO
2022-06-16 23:55:47 -05:00
Adam Porter
f2084e8459
Change: (defface ement-room-mention) :inherit hl-line
...
This should be a better default, because :inverse-video is too much.
2022-06-15 12:17:56 -05:00
Adam Porter
2fadb3ed22
Fix: (ement-room--event-body-face) Lighten/darken depending on theme
2022-06-15 12:01:10 -05:00
Adam Porter
34d3adbdb8
Add: (ement--user-color)
2022-06-15 11:40:19 -05:00
Adam Porter
d03dfe6bbf
Fix: (ement--prism-color) Increase contrast against white/black
...
For some themes, the foreground color doesn't have enough contrast to
effectively increase the contrast of another color toward.
2022-06-15 11:39:19 -05:00
Adam Porter
0c791810b4
Fix: (defevent "m.room.member") Use membership
...
If the user is joined, add it to the tables; otherwise, remove it.
Previously, users who left the room remained in the tables.
2022-06-13 16:00:12 -05:00
Adam Porter
51b6c3a562
Fix: (ement--get-joined-members) Clear members table
...
Since the response should be comprehensive, we should clear the room's
members table, to remove any members who have left the room.
2022-06-13 16:00:00 -05:00
Adam Porter
ec68977299
Add: (ement-room-flush-colors)
2022-06-01 12:15:29 -05:00
Adam Porter
306c1ecfb0
Tidy: Move --format-user and --prism-color into -lib
2022-05-30 06:14:28 -05:00
Adam Porter
41318e2969
Add: (ement-room-describe)
2022-05-30 06:14:28 -05:00
Adam Porter
039c548fd3
Change: (ement-room--format-user) Add session argument
...
Needed to compare given user with local user.
2022-05-30 05:53:32 -05:00
Adam Porter
5b101206ca
Change: (ement-prism-color) Arguments
...
This change isn't yet visible, but it makes more sense and is more
flexible. Also, the TODO is a good idea.
2022-05-30 04:01:12 -05:00
Adam Porter
30b5dfdc5a
Tidy: Typo
2022-05-30 03:43:13 -05:00
Adam Porter
151f9acc22
Change: (ement-taxy-next-unread) Use ement--room-unread-p
2022-05-30 02:16:39 -05:00
Adam Porter
6fd0d563c2
Add: (ement-taxy-side-window)
2022-05-29 11:18:31 -05:00
Adam Porter
de1e4b8e43
Fix: (ement-taxy-room-list) display-buffer-action
2022-05-29 11:18:10 -05:00
Adam Porter
529cca4d61
Change: Move per-room displaynames into room struct
...
This avoids circular data structures (I think this is the only case of
it), which should prevent the infinite-loop/out-of-memory situations
when Emacs prints one in an error or backtrace and print-circle is
nil.
Fixes #41 .
2022-05-29 10:47:39 -05:00
Adam Porter
a0d97faf28
Fix: (ement--sync)
2022-05-27 20:24:40 -05:00
Adam Porter
212a9c9f41
Change: (ement--sync) Retry for 502 errors
...
e.g. matrix.org's Cloudflare gateway occasionally returns 502, which
should be safe to retry immediately. (Exponential backoff with curl's
retry option could be added to plz in the future.)
2022-05-27 05:34:36 -05:00
Adam Porter
157f5174ce
Docs: Fix Pantalaimon command in readme
...
Thanks to @hochata for noticing!
2022-05-27 01:16:26 -05:00
Adam Porter
0541916b61
Fix: (ement-room-list--timestamp-colors) Workaround for TTY sessions
...
See <https://debbugs.gnu.org/cgi/bugreport.cgi?bug=55623 >.
Closes #34 . Closes #73 .
2022-05-27 01:12:03 -05:00
hochata
bf2f0862d1
Correcting pantalaimon connection command
2022-05-21 12:06:40 -05:00
Adam Porter
fd96491e82
Fix: (ement-room-goto-event)
2022-05-20 16:18:48 -05:00
Adam Porter
4a6b9e21d3
Change/Fix: Sender names when not in margin
...
Thanks to @Wibjarm:matrix.org for reporting.
2022-05-20 15:43:06 -05:00
Adam Porter
d1e4fc2074
Fix: (ement-room--format-member-event) Avatar/displayname changes
2022-05-14 08:30:31 -05:00
Adam Porter
961d650377
Change: (ement-room-set-topic) Use INITIAL-INPUT for read-string
...
...rather than DEFAULT-VALUE, because using DEFAULT-VALUE disallows
setting an empty topic (and the HISTORY argument seems inappropriate,
so contrary to the docstring, the INITIAL-INPUT argument doesn't seem
superseded in all cases).
2022-05-13 18:16:04 -05:00
Adam Porter
7ae7366488
Change/Fix: (ement-room--format-membership-events) Name and avatar
2022-05-13 02:27:04 -05:00
Adam Porter
94faf1261b
Fix: (ement-send-message) Sending in Org format
...
Oops, broke that when I used --format-body-mentions here.
2022-05-13 02:15:13 -05:00
Adam Porter
0d95f4ed19
Change/Fix: --get-joined-members, etc.
2022-05-12 18:14:23 -05:00
Adam Porter
4774f4e846
Fix: (ement-list-members)
2022-05-12 18:14:23 -05:00
Adam Porter
df7b9f616c
Fix: (ement-list-members)
2022-05-12 18:14:23 -05:00
Adam Porter
aaf2e3905c
Tidy: (ement-lib) Commands
2022-05-12 18:14:23 -05:00
Adam Porter
217fe22505
Add/Change: list-members, et al.
...
Add ement-list-members, along with ement--get-joined-members, and use
it in member completion. Also, add ement-singly macro.
2022-05-12 18:14:23 -05:00
Adam Porter
cfb7a47237
Change: Save room members in table and add in m.room.members events
...
Also, tidy some struct definitions, etc.
2022-05-12 17:45:40 -05:00
Adam Porter
245d741e25
Change: (ement--format-room) Make topic optional
2022-05-12 17:39:07 -05:00
Adam Porter
7276764589
Fix: (ement-notify--notifications-notify) Room displayname
...
Thanks to @benoitj for reporting.
2022-05-12 13:54:20 -05:00
Adam Porter
284d7ff4b2
Fix: (ement-put-account-data) Variable assignment
2022-05-12 13:47:44 -05:00
Adam Porter
578a0babad
Add: (ement--mark-room-direct)
...
Due to a minor bug in ement-send-direct-message, some rooms I made
recently weren't marked as direct. This function allows any room to
be marked as direct. Now that that bug is fixed, it shouldn't be
needed, but it is useful for fixing such rooms, anyway.
2022-05-12 12:56:08 -05:00
Adam Porter
9839b0ed48
Add: (ement-user-message-color) etc.
...
Desaturate and lighten user color for message bodies to make them seem
less harsh.
2022-05-12 12:56:08 -05:00
Adam Porter
a665d68a5a
Change: Include full name in tooltip when truncating names
...
Adds (ement-room--concat-property).
2022-05-12 12:56:08 -05:00
Adam Porter
e50929d52f
Add: (ement-room-wrap-prefix)
2022-05-12 12:56:08 -05:00
Adam Porter
bc439ec2c9
Refactor: Move much code into new ement-lib.el file
...
This simplifies relations between files and avoids circular
dependencies. package-lint may complain about symbol names in the new
file, but that's okay.
2022-05-12 12:56:08 -05:00
Adam Porter
6af03fb433
Fix: Notifications for rooms that have no buffer
...
These two functions can be called by ement-notify functions for rooms
that have no buffer, but these functions expected the rooms to have
buffers.
Thanks to @benoitj for reporting.
2022-05-12 10:33:48 -05:00
Adam Porter
5e4fe25b71
Change: (formatter ?S) Abbreviate long displaynames
2022-05-11 15:09:23 -05:00
Adam Porter
b98843a82d
Change: (ement-room--format-membership-events) Format event in help-echo
2022-05-09 15:48:02 -05:00
Adam Porter
39751e8d70
Fix: (ement-room--format-power-levels-event) Sender displayname
...
Fixes a wrong-type-argument error that could break a room's buffer and
prevent further syncing.
2022-05-09 15:22:38 -05:00
Adam Porter
94ce444bfc
Fix: (ement--push-joined-room-events) Typing events
...
Accidentally broke them a couple months ago by no longer pushing them
to the room's ephemeral slot. Oops.
2022-05-09 15:13:17 -05:00
Adam Porter
7abf04dd0e
Fix: (ement-room--format-body-mentions) Regexp
2022-05-09 10:20:07 -05:00
Adam Porter
f233141d8d
Fix: (ement-room-occur) Set revert-buffer-function buffer-locally
2022-05-09 10:18:50 -05:00