Exclude NL and TAB from c0-control group for glyphless display.

international/characters.el (glyphless-char-display-control):
 Exclude newline and TAB from the c0-control group.
This commit is contained in:
Eli Zaretskii 2010-11-27 10:40:19 +02:00
parent 8244506278
commit 9610796712
2 changed files with 12 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2010-11-27 Eli Zaretskii <eliz@gnu.org>
* international/characters.el (glyphless-char-display-control):
Exclude newline and TAB from the c0-control group.
2010-11-27 Glenn Morris <rgm@gnu.org>
* mail/sendmail.el (build-mail-aliases): Doc fix for autoload.

View file

@ -1305,7 +1305,12 @@ This function updates the char-table `glyphless-char-display'."
(error "Invalid glyphless character display method: %s" method))
(cond ((eq target 'c0-control)
(set-char-table-range glyphless-char-display '(#x00 . #x1F)
method))
method)
;; Users will not expect their newlines and TABs be
;; displayed as anything but themselves, so exempt those
;; two characters from c0-control.
(set-char-table-range glyphless-char-display #x9 nil)
(set-char-table-range glyphless-char-display #xa nil))
((eq target 'c1-control)
(set-char-table-range glyphless-char-display '(#x80 . #x9F)
method))
@ -1344,7 +1349,7 @@ specifying the method of displaying characters belonging to that
group.
GROUP must be one of these symbols:
`c0-control': U+0000..U+001F.
`c0-control': U+0000..U+001F, but excluding newline and TAB.
`c1-control': U+0080..U+009F.
`format-control': Characters of Unicode General Category `Cf',
such as U+200C (ZWNJ), U+200E (LRM), but