* lisp/files.el (revert-buffer): Preserve buffer-readedness
(bug#35166).
\f
* Incompatible Editing Changes in Emacs 28.1
+** 'revert-buffer' will now preserve buffer-readedness.
+It previously switched the read-only flag off.
+
** 'electric-indent-mode' now also indents inside strings and comments,
(unless the indentation function doesn't, of course).
To recover the previous behavior you can use:
;; interface, but leaving the programmatic interface the same.
(interactive (list (not current-prefix-arg)))
(let ((revert-buffer-in-progress-p t)
- (revert-buffer-preserve-modes preserve-modes))
+ (revert-buffer-preserve-modes preserve-modes)
+ ;; Preserve buffer-readedness.
+ (buffer-read-only buffer-read-only))
(funcall (or revert-buffer-function #'revert-buffer--default)
ignore-auto noconfirm)))