The readonly status of the current buffer can be toggled with (read-only-mode)
or pressing C-x C-q
but I intend to make a buffer which is not current, writable. The below is what I am using
(with-current-buffer (get-buffer-create "*some*")
(read-only-mode nil))
hoping that it would remove the readonly status applied on the buffer '*some*', however it only sets the readonly status again to the buffer. Visiting the buffer and pressing C-x C-q
does work but that is not what I intend to do, I need to do it remotely.