Say I have text:
This read only text ends here>*********************|
The This read only text ends here>
is read only while the asterisks are are not. When the (move-to-read-only-end)
is called, I want the cursor to move right after the >
. Like this:
This read only text ends here>|*********************
How can the (move-to-read-only-end)
be written?
EDIT: Adding comment here per advice,
"In eshell, the prompt is read only but when you write commands those are not. So, I want to be able to move at the end of the prompt and the start of the commands."
read-only
? Or is there an overlay on those buffer positions that has overlay propertyread-only
?C-u C-x =
you'll see that it says that there is aread-only
text property there (which answers my question to you).