emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master 3d139d5: Fix info-apropos when the default encoding


From: Eli Zaretskii
Subject: [Emacs-diffs] master 3d139d5: Fix info-apropos when the default encoding is Latin-N
Date: Sat, 18 Jul 2015 18:44:14 +0000

branch: master
commit 3d139d59fb0c3f4027109d4fac271a8aa52db5fc
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    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.
---
 lisp/info.el |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/lisp/info.el b/lisp/info.el
index bcff7cc..48d9d19 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -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)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]