In Emacs I am using cm-mode with markdown buffers. cm-mode inserts a few read-only characters to indicate document changes. When I issue fill-paragraph
the fill is aborted with the message read-only Text
.
Is there a way to fill a paragraph containing a few read-only characters? (Ie after the fill the read-only characters should be read-only again.)
Bind or temporarily set inhibit-read-only
to non-nil. Ch v
tells us:
inhibit-read-only
is a variable defined inC source code
.Its value is
nil
Documentation:
Non-
nil
means disregard read-only status of buffers or characters.If the value is
t
, disregardbuffer-read-only
and allread-only
text properties. If the value is a list, disregardbuffer-read-only
and disregard aread-only
text property if the property value is a member of the list.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.