mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 04:10:54 -08:00
Revert "Make revert-buffer preserve buffer-readedness"
This reverts commit fcae435f59.
This leads to problems when reverting from a file that's changed
readedness externally.
This commit is contained in:
parent
17048030f5
commit
989937e1bc
2 changed files with 1 additions and 6 deletions
3
etc/NEWS
3
etc/NEWS
|
|
@ -2827,9 +2827,6 @@ similar to prefix arguments, but are more flexible and discoverable.
|
|||
|
||||
* 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:
|
||||
|
|
|
|||
|
|
@ -6364,9 +6364,7 @@ preserve markers and overlays, at the price of being slower."
|
|||
;; 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)
|
||||
;; Preserve buffer-readedness.
|
||||
(buffer-read-only buffer-read-only))
|
||||
(revert-buffer-preserve-modes preserve-modes))
|
||||
(funcall (or revert-buffer-function #'revert-buffer--default)
|
||||
ignore-auto noconfirm)))
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue