GNU bug report logs - #14887
24.2; enriched-mode, message "Text is read only" on buffer save

Previous Next

Package: emacs;

Reported by: andrea.rossetti <at> gmail.com

Date: Tue, 16 Jul 2013 23:27:02 UTC

Severity: normal

Found in version 24.2

Fixed in version 24.4

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 14887-done <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: 14887-done <at> debbugs.gnu.org
Subject: Re: bug#14887: 24.2;
 enriched-mode, message "Text is read only" on buffer save
Date: Fri, 26 Jul 2013 20:32:22 -0400
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





This bug report was last modified 11 years and 359 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.