emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] /srv/bzr/emacs/trunk r102541: Exclude NL and TAB from c0-c


From: Eli Zaretskii
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r102541: Exclude NL and TAB from c0-control group for glyphless display.
Date: Sat, 27 Nov 2010 10:40:19 +0200
User-agent: Bazaar (2.0.3)

------------------------------------------------------------
revno: 102541
committer: Eli Zaretskii <address@hidden>
branch nick: trunk
timestamp: Sat 2010-11-27 10:40:19 +0200
message:
  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.
modified:
  lisp/ChangeLog
  lisp/international/characters.el
=== modified file 'lisp/ChangeLog'
--- a/lisp/ChangeLog    2010-11-27 03:29:06 +0000
+++ b/lisp/ChangeLog    2010-11-27 08:40:19 +0000
@@ -1,3 +1,8 @@
+2010-11-27  Eli Zaretskii  <address@hidden>
+
+       * international/characters.el (glyphless-char-display-control):
+       Exclude newline and TAB from the c0-control group.
+
 2010-11-27  Glenn Morris  <address@hidden>
 
        * mail/sendmail.el (build-mail-aliases): Doc fix for autoload.

=== modified file 'lisp/international/characters.el'
--- a/lisp/international/characters.el  2010-11-20 14:35:45 +0000
+++ b/lisp/international/characters.el  2010-11-27 08:40:19 +0000
@@ -1305,7 +1305,12 @@
          (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 @@
 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


reply via email to

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