1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-29 07:58:28 +00:00

Fix info-apropos when the default encoding is Latin-N

* lisp/info.el (Info-find-node-2): Reset the buffer's encoding to
'undecided', so that it is set to the encoding of the Info file we
are about to insert.  Otherwise, 'info-apropos' will fail to find
some index nodes in some UTF-8 encoded files, if the buffer's
previous encoding is Latin-N or some such.
This commit is contained in:
Eli Zaretskii 2015-07-18 21:43:21 +03:00
parent 5d72d5d1f4
commit 3d139d59fb

View File

@ -1115,6 +1115,10 @@ is non-nil)."
Info-current-file-completions nil
buffer-file-name nil)
(erase-buffer)
;; Erase any memory of the previous coding-system, so that
;; info-insert-file-contents sets the buffer's encoding to
;; what the Info file specifies.
(set-buffer-file-coding-system 'undecided t)
(info-insert-file-contents filename nil)
(setq default-directory (file-name-directory filename))
(set-buffer-modified-p nil)