Commit graph

238 commits

Author SHA1 Message Date
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
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
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
a513230890 Comment: Clarify 2021-08-14 07:39:15 -05:00
viz
c0d2925e58 Fix: (ement-room-compose-from-minibuffer) Minibuffer input method
* `pop-to-buffer' seems to deactivate the buffer's input method.  This
meant that users had to explicitly switch to the correct input method
by pressing "C-\".

* Without explicitly disabling the input method of the minibuffer,
every minibuffer command inherited the room's input method.  This is
not the desired behaviour.  The solution seems to be to explicitly
deactivate the minibuffer's input method before calling
`abort-recursive-edit'.

Fixes #16.
2021-08-14 07:35:51 -05:00
Adam Porter
46e8b36ebe Fix: (ement-room--insert-ts-headers) Use with-silent-modifications
Avoids marking a buffer as modified if, e.g. the only events being
processed are moving the read markers, because this function may be
called after that's done.
2021-08-13 15:30:56 -05:00
Adam Porter
043b4d45a6 Bind: S-SPC to scroll up
Or in Emacs terms, scroll (contents) down.
2021-08-12 15:01:19 -05:00
Adam Porter
f4d362c14c Add: (ement-room-go-to-read-marker) 2021-08-12 14:55:26 -05:00
Adam Porter
4f8df7f655 Add: Read markers and marking rooms as read
This does not show read receipts of other users.
2021-08-12 13:56:16 -05:00
Adam Porter
59582c031d Change/Fix: (ement-room-goto-next/prev) Move only to events 2021-08-12 11:49:27 -05:00
Adam Porter
c355a6857e Bind: C-k to delete message 2021-08-12 08:01:19 -05:00
Adam Porter
6c490fcbc6 Add/Change: Improve minimum contrast of prism faces 2021-08-12 05:52:01 -05:00
Adam Porter
4b0419a039 Fix: (ement-room--format-message) Right-align left margin text
Whew, this is complicated, but it works.  Thanks to the Emacs Lisp
manual, which thoroughly documents these features (but it must be read
carefully).
2021-08-12 05:02:35 -05:00
Adam Porter
7f4a427670 Fix: (ement-room-compose-send) Use quit-restore-window
Fixes #22.  Thanks to @vizs.
2021-08-12 04:30:58 -05:00
Adam Porter
cc65aac59f Change/Fix: (ement-room-retro) Use timeout of 30
When loading hundreds or thousands of old events, the server can take
a while to respond.  This might not even be long enough sometimes, but
usually doing it again works (maybe the server has had time to cache
some more old data in RAM or something).
2021-08-12 03:26:38 -05:00
Adam Porter
45f8ca28bc Add: (ement-room-prism-color-adjustment) 2021-08-12 03:26:38 -05:00
Adam Porter
aa91f46a1f Add: (ement-room-prism-addressee)
Makes conversations a bit easier to follow.  Note the current
limitation mentioned in the option.
2021-08-12 02:29:58 -05:00
Adam Porter
0f3693903d Change: (ement-room-compose-org) Improve error message 2021-08-11 23:44:43 -05:00
Adam Porter
6e0cb47a0c Fix: (ement-room--format-message-body) Never return nil
Thanks to @vizs for reporting.
2021-08-11 23:44:43 -05:00
Adam Porter
c8604f2f71 Change: (ement-room--format-reactions) Sort reactions by number 2021-08-11 03:48:19 -05:00
Adam Porter
9a0c9e6319 Fix: (ement-room--buffer) Disable header line when so configured
Thanks to @vizs for reporting.
2021-08-11 01:25:29 -05:00
Adam Porter
54950a260c Fix: (ement-room-set-message-format) Don't require-match
Thanks to @vizs for reporting.
2021-08-11 00:56:45 -05:00
Adam Porter
7a89dcdeb4 Add: Commands and bindings to switch to special buffers 2021-08-10 18:18:25 -05:00
Adam Porter
df4b4b84b0 Add: Sending Org-formatted messages as HTML 2021-08-10 18:18:25 -05:00
Adam Porter
c486bb91b4 Fix: (ement-room--insert-ts-headers) Include last event
This little bug has been around for a while, and I just found the fix
to it after having made the same fix in the --insert-sender-headers,
whose body I copied from this one.  Hopefully this doesn't break
anything...
2021-08-10 09:44:03 -05:00
Adam Porter
6613eab9a6 Add: (ement-room-set-message-format) 2021-08-10 09:38:11 -05:00
Adam Porter
957021a543 Comment: Add FIXME 2021-08-10 09:36:46 -05:00
Adam Porter
137bd9af79 Fix: (defevent "m.reaction") Only invalidate if nodes
Not sure how this could happen to be nil, but it just did, so...
2021-08-10 09:36:46 -05:00
Adam Porter
8256cf2d2c Fix: (ement-room--insert-ts-headers) Insert before membership events
This is necessary, otherwise a message event after a membership event
might not get a timestamp header.
2021-08-10 09:36:46 -05:00
Adam Porter
f7b5f57837 Comment: Add FIXME 2021-08-10 09:36:46 -05:00
Adam Porter
2383c44bd9 Change: (ement-room-read-string) Use read-from-minibuffer
Thanks to @vizs for suggesting.
2021-08-10 09:36:46 -05:00
Adam Porter
f9a67dbba6 Fix: (ement-room-compose-from-minibuffer) Setting input-method
See #16.  Thanks to @vizs for reporting.
2021-08-10 09:36:46 -05:00
Adam Porter
449cf5962f Fix: (ement-room-compose-send) Setting of input-method
See #16.  Thanks to @vizs for reporting.
2021-08-10 09:36:46 -05:00
Adam Porter
19a11634d5 Fix: (ement-room--insert-event) "Elemental" format
This debug function didn't handle sender headers.

Fixes #15.  Thanks to @akater for reporting.
2021-08-10 09:36:46 -05:00