emacs-diffs
[Top][All Lists]
Advanced

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

emacs-28 d111b5b651: * lisp/info.el (Info-mode): Support the Linux conso


From: Eli Zaretskii
Subject: emacs-28 d111b5b651: * lisp/info.el (Info-mode): Support the Linux console better.
Date: Sun, 28 Aug 2022 07:42:41 -0400 (EDT)

branch: emacs-28
commit d111b5b6512e1c8e932572906e2f516832e6c408
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    * lisp/info.el (Info-mode): Support the Linux console better.
---
 lisp/info.el | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/lisp/info.el b/lisp/info.el
index 739116ccea..5655e3f3ce 100644
--- a/lisp/info.el
+++ b/lisp/info.el
@@ -4446,9 +4446,12 @@ Advanced commands:
   (setq buffer-read-only t)
   (setq Info-tag-table-marker (make-marker))
   (unless (or (display-multi-font-p)
-              (coding-system-equal
-               (coding-system-base (terminal-coding-system))
-               'utf-8))
+              (and (coding-system-equal
+                    (coding-system-base (terminal-coding-system))
+                    'utf-8)
+                   ;; The Linux console has limited character
+                   ;; repertoire even when its encoding is UTF-8.
+                   (not (equal (tty-type) "linux"))))
     (dolist (elt info-symbols-and-replacements)
       (let ((ch (car elt))
             (repl (cdr elt)))



reply via email to

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