Commit graph

561 commits

Author SHA1 Message Date
Adam Porter
2d77516276 Tidy: (ement-room-go-to-read-marker) 2021-08-28 17:37:06 -05:00
Adam Porter
19abf8363a Fix: (ement-room--buffer) Set room's buffer slot before returning
Fixes #34.  Thanks to @akater for reporting.
2021-08-26 20:58:47 -05:00
Adam Porter
e989a449b6 Fix: (ement-room-mode) Set completion-at-point-functions locally
Thanks to @akagi:matrix.org for reporting.
2021-08-26 12:15:31 -05:00
Adam Porter
c4fff828a5 Change: (defface ement-room-membership) Smaller by default
This way, e.g. in IRC rooms with many membership messages, it's easier
to focus on non-membership events.
2021-08-24 23:21:41 -05:00
Adam Porter
c2352cb339 Add: (room-list) Recency faces for timestamps 2021-08-24 23:00:30 -05:00
Adam Porter
b8045c997f Add/Change: Room list faces 2021-08-24 22:08:24 -05:00
Adam Porter
35de360618 Fix: (ement-room--format-member-event) Leave events w/o old state
It seems that leave events may not always have previous membership
state.
2021-08-24 21:44:32 -05:00
Adam Porter
e7bc73e84a Change: (ement-room--format-member-event) Improve name change events
Show old and new names, etc.
2021-08-24 21:43:04 -05:00
Adam Porter
b94a52ddc2 Fix: (room-list) Sort invited rooms first (in Latest column)
Also remove obsolete warning about ts library (should be good now),
which was giving false warnings about invited rooms.
2021-08-24 19:54:53 -05:00
Adam Porter
c3c1387ec8 Fix: (ement-room--direct-p) Invited rooms 2021-08-24 19:25:28 -05:00
Adam Porter
10d6b83ecc Docs: Capitalize title 2021-08-24 03:21:46 -05:00
Adam Porter
6a53c2a3d2 Tidy: (ement-room--m.image-callback) 2021-08-24 00:50:41 -05:00
Adam Porter
4c609c2ef3 Tidy: (ement-room--format-member-event) 2021-08-24 00:37:34 -05:00
Adam Porter
bac2a306fd Tidy: (ement-room--format-member-event) Use pcase more 2021-08-24 00:27:47 -05:00
Adam Porter
39a5fb0322 Change: (ement-room--format-member-event) Reason for kicks 2021-08-24 00:19:43 -05:00
Ted Reed
f89b1b6c47 Fix: (ement-room--room-display-name) Check for empty room first 2021-08-23 21:56:41 -05:00
Adam Porter
cb557af2d9 Add: Imenu support
Thanks to Ted Reed (@treed).
2021-08-23 21:53:18 -05:00
Adam Porter
8ce950f995 Tidy: Imenu support 2021-08-23 21:53:05 -05:00
Ted Reed
b6249cf658 Add: support imenu in ement-room-mode 2021-08-23 21:53:05 -05:00
Adam Porter
4fdf1e15a2 Add: Show "m.room.avatar" events 2021-08-23 21:47:14 -05:00
Adam Porter
5862372a2e Meta: Update logo
This strikes a balance between the Emacs "E" looking like an E and an
M, bridging the gap between "Emacs" and "Matrix" (or that's the idea,
anyway).
2021-08-23 21:39:01 -05:00
Adam Porter
25bb97d1de Add/Change: (ement-room--format-member-event)
This formats member events more usefully, more like Element does.
2021-08-23 21:29:56 -05:00
Adam Porter
6e5f710f1d Change: (ement-room-leave) Improve left-room message 2021-08-23 19:17:02 -05:00
Adam Porter
eb4197244b Add: Multi-session support 2021-08-23 19:16:59 -05:00
Adam Porter
7903c807fe Add: Invited rooms
i.e. rooms to which the user has been invited, not sending
invitations (a separate feature).
2021-08-23 19:08:53 -05:00
Adam Porter
b361fcccc0 Change: (ement-room-list) Downcase "Direct" column 2021-08-23 16:43:11 -05:00
Adam Porter
1d68e86989 Fix: (ement-debug) Interpreted functions
For non-byte-compiled, interpreted functions, it was using whatever
the current buffer was at the time the function was called, which is
completely wrong.  But this uses backtrace-frame to get the name of
the function the debug macro is within, which seems to work.

Also published as epdh/debug-warn at
<https://github.com/alphapapa/emacs-package-dev-handbook#debug-warn-macro>.
2021-08-22 20:08:57 -05:00
Adam Porter
6d375d4639 Fix: (ement-room--insert-ts-headers) Work around missing end-node 2021-08-20 07:58:36 -05:00
Adam Porter
15f0f33fec Fix: (ement-room--insert-ts-headers) Don't test location of non-node
Happened when joining a new room, in the hook that showed the buffer.
2021-08-20 07:46:53 -05:00
Adam Porter
fce250fee1 Comment: Add FIXME 2021-08-18 20:16:34 -05:00
Adam Porter
4a2428922b Fix: completion-at-point-functions
Oops.
2021-08-18 20:14:01 -05:00
Adam Porter
fb71bbf421 Change: (defface ement-room-mention) Use inverse-video by default
Instead of inheriting 'highlight.  That way mentions don't appear to
conflict with highlighted messages' appearance.
2021-08-18 18:28:39 -05:00
Adam Porter
7d1ad4b14b Comment: Add FIXMEs 2021-08-18 18:18:00 -05:00
Adam Porter
e789f9cb86 Add: Complete members and rooms at point 2021-08-18 11:02:27 -05:00
Adam Porter
a3628c29f9 Comment: Add TODO 2021-08-18 10:55:08 -05:00
Adam Porter
36a90fb99c Change: (ement-room-send-image) Use nondirectory filename as default 2021-08-18 09:54:10 -05:00
Adam Porter
6071951d99 Docs: Mention chat room 2021-08-18 09:51:33 -05:00
Adam Porter
9d11140542 Change/Fix: (ement--sync) Re-sync for 429 errors
e.g. Cloudflare sometimes says "429 Too Many Requests: No server is
available to handle this request."
2021-08-18 08:49:52 -05:00
Adam Porter
513d7e7ef9 Fix: (ement-room-mode-map) "e" 2021-08-17 16:04:49 -05:00
Adam Porter
71a94ca982 Revert "Fix: (ement-room--event-body-face) Put type before context"
This reverts commit 1623b285d6.
2021-08-17 16:02:51 -05:00
Adam Porter
eaaa221d6b Fix: (ement-room-self-message) Inheritance
Don't inherit from the message face also, otherwise they don't combine
properly later.
2021-08-17 15:58:00 -05:00
Adam Porter
498d4ba50a Fix: (ement-room-edit-message) Leading asterisks
We remove any existing ones, and then add one after any filter has
modified the content (e.g. Org would treat the body as a heading).
2021-08-17 15:45:59 -05:00
Adam Porter
3ba55c656b Add: (ement-room-retro-to) And use in ement-room-go-to-read-marker 2021-08-17 15:15:11 -05:00
Adam Porter
943207918f Change: (ement-room-retro-callback) Add events to hash table 2021-08-17 15:14:38 -05:00
Adam Porter
2c590c376c Change: (ement-room-move-read-markers) Default to existing events
This way it can be called after the relevant events have been
retrieved, even later.
2021-08-17 15:10:21 -05:00
Adam Porter
9bbb1372f8 Tidy: (ement-room-move-read-markers) Always return nil
Wasted a lot of time trying to figure out why this happened, and
finally realized that it only happened because the return value ended
up being an EWOC node, which Emacs does NOT like to try to print.
2021-08-17 14:03:08 -05:00
Adam Porter
561c5f3431 Docs: Mention ement-room-compose-org 2021-08-17 08:31:09 -05:00
Adam Porter
1623b285d6 Fix: (ement-room--event-body-face) Put type before context
Makes self emotes render with proper face.
2021-08-17 08:31:09 -05:00
Adam Porter
97425045ae Add: Sending emotes 2021-08-17 08:31:09 -05:00
Adam Porter
791481a2d5 Change: (ement--hostname-uri) plz API change 2021-08-15 15:39:20 -05:00