diff --git a/lisp/indent-aux.el b/lisp/indent-aux.el index 4a05136ac1a..47d21f86649 100644 --- a/lisp/indent-aux.el +++ b/lisp/indent-aux.el @@ -50,6 +50,8 @@ is yanked." (delete-and-extract-region beg end) (buffer-substring beg end)))) (with-temp-buffer + ;; We bind inhibit-read-only non-nil in case the copied text has + ;; read-only properties. (let ((inhibit-read-only t)) ;; Indent/deindent the same as the major mode in the original ;; buffer.