I want to add properties to text (make it read-only
temporarily) and I don't
want “modification-status” change. In general, how do I perform some
modifying action without Emacs noticing it?
Take the 2-minute tour
×
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It's 100% free, no registration required.
|
|||
|
There is a built-in macro for this, Its intended usecase is for making changes to text properties of a buffer as text properties are part of the text and changes to them would otherwise be reflected in the buffer modification status and trigger the respective hooks. Despite there being rudimentary protection against more invasive changes of the text, you should ensure the body doesn't do anything weird:
|
|||||||||
|