Open rgri opened 1 year ago
The backtrace would seem to indicate that you called the command to write a reply when point was not on a message event.
Yes, I must have thought that the username associated with a message is included in the region defined as the message. I'll close this now.
Though is it perhaps worthwhile to add a catch for such an error? So far nothing else while using ement has spit such an ugly message at me.
Yes, I must have thought that the username associated with a message is included in the region defined as the message. I'll close this now.
The default message display format puts the usernames and timestamps in the margins; the point can't move into the margins. Point can be in the message body, reactions, etc.
Though is it perhaps worthwhile to add a catch for such an error? So far nothing else while using ement has spit such an ugly message at me.
What you saw was the catch, the assertion. I don't understand how you could have tried to call that command thinking point was on a username shown in a margin, though.
Maybe it should be improved, but this is the first I've heard of this problem, and at least a few hundred people are using Ement now, so we'll see.
I maybe should have clarified: the issue only appears while in the "Elemental" room format: with ement-room-message-format-spec
set to "%B%r%R%t"
.
Ok, that makes sense, yes. Probably point was on the username rather than the message below it. I'll repurpose this issue to improve that behavior. Thanks.
To reproduce:
S-RET
orM-x ement-room-write-reply
to reply to a message pointThis fails with the following trace:
Specifically, I am using Nix's
emacs29-pgtk
package.