• Paul Eggert's avatar
    Improvements for curved quotes on Linux consule · 6e5d81ff
    Paul Eggert authored
    This should help Emacs work better out-of-the-box on Linux consoles,
    which have only limited support for displaying Unicode characters.
    Also, undo the recent change that caused text-quoting-style to
    affect quote display on terminals, so that the two features are
    independent.  See Alan Mackenzie in:
    Finally, add a style parameter to startup--setup-quote-display,
    so that this function can also be invoked after startup, with
    different styles depending on user preference at the time.
    * configure.ac: Check for linux/kd.h header.
    * doc/emacs/display.texi (Text Display): Document quote display.
    * doc/lispref/display.texi (Active Display Table):
    * etc/NEWS:
    * lisp/startup.el (startup--setup-quote-display, command-line):
    text-quoting-style no longer affects quote display.
    * doc/lispref/frames.texi (Terminal Parameters): Fix typo.
    * lisp/international/mule-util.el (char-displayable-p):
    * lisp/startup.el (startup--setup-quote-display):
    On a text terminal supporting glyph codes, use the reported
    glyph codes instead of the terminal coding system, as this
    is more accurate on the Linux console.
    * lisp/startup.el (startup--setup-quote-display):
    New optional arg STYLE.
    * src/fontset.c (Finternal_char_font):
    Report glyph codes for a text terminal, if they are available.
    Currently this is supported only for the Linux console.
    * src/termhooks.h (struct terminal): New member glyph-code-table.
    * src/terminal.c [HAVE_LINUX_KD_H]: Include <errno.h>, <linux/kd.h>.
    (calculate_glyph_code_table) [HAVE_LINUX_KD_H]: New function.
    (terminal_glyph_code): New function.
frames.texi 128 KB