From: Eli Zaretskii Date: Sun, 28 Aug 2022 11:42:07 +0000 (+0300) Subject: * lisp/info.el (Info-mode): Support the Linux console better. X-Git-Tag: emacs-28.2~22 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d111b5b651;p=emacs.git * lisp/info.el (Info-mode): Support the Linux console better. --- diff --git a/lisp/info.el b/lisp/info.el index 739116cceac..5655e3f3ce9 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)))