Commit graph

64 commits

Author SHA1 Message Date
Adam Porter
10b4716cd4 Fix: (ement-room--render-html) Blockquotes
shr-tag-blockquote doesn't render quite properly by default.  I'm not
sure why, but somehow, this seems to work better.
2021-07-21 12:33:59 -05:00
Adam Porter
8b49054656 Fix: (ement-room--buffer) Handle rooms with same name 2021-07-21 11:39:07 -05:00
Adam Porter
893f7173cd Add: Replies 2021-07-21 11:35:16 -05:00
Adam Porter
784d8c30d8 Add/Fix: (ement-room--insert-events) Insert ts headers for new events 2021-07-21 09:20:55 -05:00
Adam Porter
aae99327e3 Fix: (ement-room--insert-ts-headers) Compare header properly 2021-07-21 09:16:26 -05:00
Adam Porter
d8a48fe71d Change: (ement-room--insert-events) Use eq to compare room struct
This seems to make sense, because it should be the same object.
2021-07-21 09:13:14 -05:00
Adam Porter
258b3539ab Change: (defface ement-room-user) Remove :extend
Only supported in Emacs 27+, so maybe this should only be added when
explicitly requiring Emacs 27.
2021-07-04 16:52:56 -05:00
Adam Porter
587802bae3 Change: Spacing around timestamp headers 2021-07-04 16:38:02 -05:00
Adam Porter
9ce62087ac Add: Separator between events 2021-07-04 16:35:33 -05:00
Adam Porter
64a5e5d6aa Comment: Add FIXME 2021-07-04 16:34:58 -05:00
Adam Porter
baabfeb61b Change: (defface ement-room-timestamp-header) :height 1.1 2021-07-04 16:34:17 -05:00
Adam Porter
41d45b93b5 Change: (defface ement-room-self) Inherit ement-room-user 2021-07-04 16:24:26 -05:00
Adam Porter
f1a35869ff Add/Change: (define-widget ement-room-membership) Event as value
The Widget library is still mysterious to me, but some trial-and-error
helps.  This makes the ement-room-membership widget's value the Matrix
event struct, and it uses a :value-create function to insert the
string.

This pattern can probably be used for other widgets in the future,
e.g. for event type-specific widgets.
2021-07-04 14:57:10 -05:00
Adam Porter
3dd0c7c7af Add: (ement-room--format-event) Tooltip for unhandled event types 2021-07-04 14:56:34 -05:00
Adam Porter
50b9492715 Change: (ement-room--format-message) Handle empty specs better
Rather than erroring, insert a message into the buffer, with a tooltip
showing the raw event.
2021-07-04 14:56:10 -05:00
Adam Porter
2e14c1c9f2 Add: Show date in timestamp header where it changes between messages 2021-07-04 14:56:10 -05:00
Adam Porter
86221bda9d Fix: (ement-room--insert-ts-headers) Don't skip events
It was only comparing pairs of events, stepping by two instead of one.
2021-07-04 14:56:10 -05:00
Adam Porter
3c52ee0412 Debug: (ement-room--insert-ts-headers) Add debug function 2021-07-04 14:56:10 -05:00
Adam Porter
e862ea3dca Tidy: (ement-room--insert-ts-headers) 2021-07-04 13:47:35 -05:00
Adam Porter
3ec21db7b6 Tidy: (ement-room--format-user) 2021-07-04 12:38:28 -05:00
Adam Porter
d0fd9c2bda Change: (defface ement-room-user) Add overline and extend
Helps to distinguish where senders change, especially when not using
prism mode.
2021-07-04 12:37:29 -05:00
Adam Porter
96a6fd4415 Fix: (ement-room--user-color) 2020-12-19 11:41:23 -06:00
Adam Porter
e9ccdfa85d Change: Use color functions from modus-themes
Thanks to Protesilaos Stavrou (@protesilaos) for this elegant
implementation.
2020-12-11 20:05:08 -06:00
Adam Porter
c302b4ece3 Change: (ement-room-prism) Name-only by default 2020-12-05 16:24:51 -06:00
Adam Porter
1f392c78be Add: ement-room-prism
Squashed commit of the following:

commit 34ad5b4810
Author: Adam Porter <adam@alphapapa.net>
Date:   Sat Dec 5 16:23:51 2020 -0600

    WIP: Seems to work decently

commit e5edcfc908
Author: Adam Porter <adam@alphapapa.net>
Date:   Sat Dec 5 04:18:09 2020 -0600

    WIP
2020-12-05 16:24:21 -06:00
Adam Porter
cde2c64815 Comment: Add FIXME 2020-12-04 23:11:53 -06:00
Adam Porter
981dc8b3a8 Add: User ID tooltip on user displaynames 2020-12-04 22:48:39 -06:00
Adam Porter
e8f9f91c61 Tidy: Docstring, args 2020-12-04 19:25:48 -06:00
Adam Porter
8b90f05265 Add: help-echo with full timestamp on message timestamps 2020-12-04 19:16:57 -06:00
Adam Porter
cb3e16143b Add: -room-retro-messages-number 2020-12-04 19:16:44 -06:00
Adam Porter
c7d19f38a5 Change: Call ement-list-rooms after login
Users can disable this by customizing ement-after-login-hook.
2020-12-04 03:26:50 -06:00
Adam Porter
8df425710a Change: Improve room-switching commands and binds 2020-12-04 03:08:09 -06:00
Adam Porter
062b362066 Add: Timestamp headers 2020-12-04 02:50:08 -06:00
Adam Porter
85840221ce Fix: Format unknown event types 2020-12-03 20:46:23 -06:00
Adam Porter
267cf40fb8 Change: Remove brackets from timestamp format 2020-12-03 14:46:58 -06:00
Adam Porter
9ebfdc52e3 WIP: More flexible formatting 2020-12-02 22:30:19 -06:00
Adam Porter
95c7d26e05 Fix: Variable names
Somehow I changed them in one place but not the other.
2020-12-02 13:09:26 -06:00
Adam Porter
ac3d854b6a Tidy, rename debug-warn macro 2020-12-01 16:45:40 -06:00
Adam Porter
2315d9cc78 Fix: Scroll commands 2020-12-01 16:45:06 -06:00
Adam Porter
b8a15847d4 Improvements 2020-12-01 05:16:39 -06:00
Adam Porter
c675ede327 Wheel loading 2020-12-01 04:13:21 -06:00
Adam Porter
ab4d16689c Set debug levels in all files 2020-12-01 03:57:44 -06:00
Adam Porter
9b49bd82a2 Login seems to work 2020-12-01 03:32:54 -06:00
Adam Porter
e6f2f4076e Tidy, etc. 2020-12-01 02:09:20 -06:00
Adam Porter
ab96fc799d Tidy 2020-12-01 02:03:32 -06:00
Adam Porter
0f3b098fb6 Improvements 2020-12-01 01:41:14 -06:00
Adam Porter
9b0ab78cee Render HTML messages 2020-12-01 01:24:18 -06:00
Adam Porter
e3d1429308 Own faces 2020-12-01 00:42:29 -06:00
Adam Porter
73d37fcc97 Next/prev message 2020-12-01 00:34:00 -06:00
Adam Porter
da436bf39e Loading earlier messages, etc. 2020-12-01 00:28:13 -06:00