lisp/emacs-lisp/package.el (describe-package-1): Decode commentary (bug#16733).

This commit is contained in:
Juanma Barranquero 2014-03-19 17:14:26 +01:00
parent 51a7978ae8
commit f88bdc45e0
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2014-03-19 Juanma Barranquero <lekktu@gmail.com>
* emacs-lisp/package.el (describe-package-1):
Decode commentary (bug#16733).
2014-03-18 Juanma Barranquero <lekktu@gmail.com>
* custom.el (defcustom): Doc fix: recommend avoiding destructive

View file

@ -1531,7 +1531,8 @@ If optional arg NO-ACTIVATE is non-nil, don't activate packages."
(setq readme-string (buffer-string))
t))
(error nil))
(insert readme-string))
(let ((coding (detect-coding-string readme-string t)))
(insert (decode-coding-string readme-string coding t))))
((file-readable-p readme)
(insert-file-contents readme)
(goto-char (point-max))))))))