Commit f26afdb0 authored by Glenn Morris's avatar Glenn Morris
Browse files

* lisp/format.el (format-annotate-function): Handle read-only text properties

in the source.

Fixes: debbugs:14887
parent ff62aabc
2013-07-27 Glenn Morris <rgm@gnu.org>
* format.el (format-annotate-function):
Handle read-only text properties in the source. (Bug#14887)
2013-07-24 Glenn Morris <rgm@gnu.org>
 
* dired-x.el (dired-mark-extension): Convert comment to doc string.
......
......@@ -225,10 +225,12 @@ For most purposes, consider using `format-encode-region' instead."
(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)
(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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment