Commit 8a2f1176 authored by Richard M. Stallman's avatar Richard M. Stallman

(format-annotate-function): Copy multibyte flag

and selective-display into the new temp buffer.
parent 5cfe1cec
......@@ -221,7 +221,12 @@ For most purposes, consider using `format-encode-region' instead."
(if modify
;; To-function wants to modify region. Copy to safe place.
(let ((copy-buf (get-buffer-create (format " *Format Temp %d*"
format-count))))
format-count)))
(sel-disp selective-display)
(multibyte enable-multibyte-characters))
(with-current-buffer copy-buf
(setq selective-display sel-disp)
(set-buffer-multibyte multibyte))
(copy-to-buffer copy-buf from to)
(set-buffer copy-buf)
(format-insert-annotations write-region-annotations-so-far from)
......
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