Hi Eric,

I checked that `comint-prompt-read-only` is set to t, I guess that's it. In principle it is nice that you cannot delete the shell output, I remember long time ago when I was running shells in emacs I was annoyed that you could do it.

Indeed, this problem can turn up in many places, so this hack is not ideal. In the documentation it is written that the correct way to temporarily override the read-only-ness is to use
`comint-kill-region` instead of `kill-region` etc.

Best regards and thanks a lot for all the great code!
Haik

17.01.2021 21:22 Eric Ludlam <ericlud...@gmail.com> kirjutas:
Thanks Haik.

That implies a patch like this will fix the issue... ?

Do you know what is being set to read-only and why? A better patch might disable whatever that is since other code may need something similar, and it would be better to fix the source than add little patches like this around.

Eric


_______________________________________________
Matlab-emacs-discuss mailing list
Matlab-emacs-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matlab-emacs-discuss

Reply via email to