aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorPaul Eggert2015-09-09 02:21:16 -0700
committerPaul Eggert2015-09-09 02:22:24 -0700
commit6e5d81ff4536ed117dfac269357c46dbdc1890c9 (patch)
treece637dad553f16c3dab02720bee505c938416beb /doc
parent39dca94701de81d02c75316e32d67e3677bd685d (diff)
downloademacs-6e5d81ff4536ed117dfac269357c46dbdc1890c9.tar.gz
emacs-6e5d81ff4536ed117dfac269357c46dbdc1890c9.zip
Improvements for curved quotes on Linux consule
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: http://lists.gnu.org/archive/html/emacs-devel/2015-09/msg00244.html 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.
Diffstat (limited to 'doc')
-rw-r--r--doc/emacs/display.texi9
-rw-r--r--doc/lispref/display.texi6
-rw-r--r--doc/lispref/frames.texi2
3 files changed, 12 insertions, 5 deletions
diff --git a/doc/emacs/display.texi b/doc/emacs/display.texi
index 601a40bd176..92b0002990f 100644
--- a/doc/emacs/display.texi
+++ b/doc/emacs/display.texi
@@ -1480,6 +1480,15 @@ customizing the variable @code{glyphless-char-display-control}.
1480@xref{Glyphless Chars,, Glyphless Character Display, elisp, The Emacs 1480@xref{Glyphless Chars,, Glyphless Character Display, elisp, The Emacs
1481Lisp Reference Manual}, for details. 1481Lisp Reference Manual}, for details.
1482 1482
1483@cindex curly quotes
1484@cindex curved quotes
1485@cindex escape-glyph face
1486 If the curved quotes @samp{‘}, @samp{’}, @samp{“}, and @samp{”} are
1487known to look just like @acronym{ASCII} characters, they are shown
1488with the @code{escape-glyph} face. Curved quotes that cannot be
1489displayed are shown as their @acronym{ASCII} approximations @samp{`},
1490@samp{'}, and @samp{"} with the @code{escape-glyph} face.
1491
1483@node Cursor Display 1492@node Cursor Display
1484@section Displaying the Cursor 1493@section Displaying the Cursor
1485@cindex text cursor 1494@cindex text cursor
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi
index 14e2cd363a4..b5ff9cb6e76 100644
--- a/doc/lispref/display.texi
+++ b/doc/lispref/display.texi
@@ -6533,10 +6533,8 @@ used when Emacs is displaying a buffer in a window with neither a
6533window display table nor a buffer display table defined, or when Emacs 6533window display table nor a buffer display table defined, or when Emacs
6534is outputting text to the standard output or error streams. Although its 6534is outputting text to the standard output or error streams. Although its
6535default is typically @code{nil}, in an interactive session if the 6535default is typically @code{nil}, in an interactive session if the
6536locale cannot display curved quotes, or if the initial value of 6536terminal cannot display curved quotes, its default maps curved quotes
6537@code{text-quoting-style} specifies a preference for ASCII, its 6537to ASCII approximations. @xref{Keys in Documentation}.
6538default maps curved quotes to ASCII approximations. @xref{Keys in
6539Documentation}.
6540@end defvar 6538@end defvar
6541 6539
6542The @file{disp-table} library defines several functions for changing 6540The @file{disp-table} library defines several functions for changing
diff --git a/doc/lispref/frames.texi b/doc/lispref/frames.texi
index 16fc4958d1f..23590af7774 100644
--- a/doc/lispref/frames.texi
+++ b/doc/lispref/frames.texi
@@ -1781,7 +1781,7 @@ symbol) of @var{terminal}. If @var{terminal} has no setting for
1781@end defun 1781@end defun
1782 1782
1783@defun set-terminal-parameter terminal parameter value 1783@defun set-terminal-parameter terminal parameter value
1784This function sets the parameter @var{parm} of @var{terminal} to the 1784This function sets the parameter @var{parameter} of @var{terminal} to the
1785specified @var{value}, and returns the previous value of that 1785specified @var{value}, and returns the previous value of that
1786parameter. 1786parameter.
1787@end defun 1787@end defun