[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#14887: 24.2; enriched-mode, message "Text is read only" on buffer sa
From: |
Glenn Morris |
Subject: |
bug#14887: 24.2; enriched-mode, message "Text is read only" on buffer save |
Date: |
Fri, 26 Jul 2013 20:32:22 -0400 |
User-agent: |
Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) |
Version: 24.4
Thanks for the report. This patch (against 24.3) fixes it.
(Because format.el is compiled into Emacs, you must rebuild Emacs after
applying this patch.)
*** lisp/format.el 2013-01-01 09:11:05 +0000
--- lisp/format.el 2013-07-27 00:29:42 +0000
***************
*** 225,234 ****
(setq selective-display sel-disp)
(set-buffer-multibyte multibyte)
(setq buffer-file-coding-system coding-system))
! (copy-to-buffer copy-buf from to)
! (set-buffer copy-buf)
! (format-insert-annotations write-region-annotations-so-far from)
! (format-encode-run-method to-fn (point-min) (point-max) orig-buf)
(when (buffer-live-p copy-buf)
(with-current-buffer copy-buf
;; Set write-region-post-annotation-function to
--- 225,236 ----
(setq selective-display sel-disp)
(set-buffer-multibyte multibyte)
(setq buffer-file-coding-system coding-system))
! (let ((inhibit-read-only t)) ; bug#14887
! (copy-to-buffer copy-buf from to)
! (set-buffer copy-buf)
! (format-insert-annotations write-region-annotations-so-far from)
! (format-encode-run-method to-fn (point-min) (point-max)
! orig-buf))
(when (buffer-live-p copy-buf)
(with-current-buffer copy-buf
;; Set write-region-post-annotation-function to