The content of the input part is in a buffer whose major mode is telega-chat-mode is lost when executing telega-chatbuf-edit-prev (M-p). I think this is undesired behavior because suppose I write a long message and I accidentally execute telega-chatbuf-edit-prev (M-p), my message would be lost.
Steps to Reproduce
Send a message in a buffer whose major mode is telega-chat-mode
Now, write a new message but don't send it
Execute telega-chatbuf-edit-prev (M-p)
At this point, the message that you initially typed has been lost. If you execute undo (C-/), the message will not be recovered.
Possible Solution
A possible solution would be that the content of the input box is stored somewhere before it gets deleted. Once the edit is cancelled, the message that was previously there is shown.
Telega Setup
Emacs:
Telega
Current Behavior
The content of the input part is in a buffer whose major mode is
telega-chat-mode
is lost when executingtelega-chatbuf-edit-prev
(M-p
). I think this is undesired behavior because suppose I write a long message and I accidentally executetelega-chatbuf-edit-prev
(M-p
), my message would be lost.Steps to Reproduce
telega-chat-mode
telega-chatbuf-edit-prev
(M-p
)At this point, the message that you initially typed has been lost. If you execute
undo
(C-/
), the message will not be recovered.Possible Solution
A possible solution would be that the content of the input box is stored somewhere before it gets deleted. Once the edit is cancelled, the message that was previously there is shown.