简体   繁体   中英

Is there a way in Emacs to fill a paragraph containing some read-only characters?

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 in C source code .

Its value is nil

Documentation:

Non- nil means disregard read-only status of buffers or characters.

If the value is t , disregard buffer-read-only and all read-only text properties. If the value is a list, disregard buffer-read-only and disregard a read-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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM