Fix bug #18760 with incorrect decoding of tutorial for "About Emacs" screen.

lisp/startup.el (fancy-about-text): Read the entire tutorial, not
 just its first 256 bytes.
This commit is contained in:
Eli Zaretskii 2014-10-23 19:32:51 +03:00
parent acc443ad03
commit ac0f1b8597
2 changed files with 9 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2014-10-23 Eli Zaretskii <eliz@gnu.org>
* startup.el (fancy-about-text): Read the entire tutorial, not
just its first 256 bytes. (Bug#18760)
2014-10-23 Stefan Monnier <monnier@iro.umontreal.ca>
* emacs-lisp/bytecomp.el: Require cl-extra (bug#18804).

View file

@ -1523,7 +1523,10 @@ Each element in the list should be a list of strings or pairs
(title (with-temp-buffer
(insert-file-contents
(expand-file-name tut tutorial-directory)
nil 0 256)
;; Reat the entire file, to make sure any
;; coding cookies and other local variables
;; get acted upon.
nil)
(search-forward ".")
(buffer-substring (point-min) (1- (point))))))
;; If there is a specific tutorial for the current language