all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Glenn Morris <rgm@gnu.org>
To: 14887-done@debbugs.gnu.org
Subject: bug#14887: 24.2; enriched-mode, message "Text is read only" on buffer save
Date: Fri, 26 Jul 2013 20:32:22 -0400	[thread overview]
Message-ID: <kjvc3wdeqx.fsf@fencepost.gnu.org> (raw)
In-Reply-To: <84fvvedrmm.fsf@LAPTOP-ANDREA.i-did-not-set--mail-host-address--so-tickle-me> (andrea rossetti's message of "Wed, 17 Jul 2013 01:14:41 +0200")

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






      reply	other threads:[~2013-07-27  0:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-16 23:14 bug#14887: 24.2; enriched-mode, message "Text is read only" on buffer save andrea.rossetti
2013-07-27  0:32 ` Glenn Morris [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=kjvc3wdeqx.fsf@fencepost.gnu.org \
    --to=rgm@gnu.org \
    --cc=14887-done@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.