emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/src/xdisp.c


From: Richard M . Stallman
Subject: [Emacs-diffs] Changes to emacs/src/xdisp.c
Date: Tue, 21 Dec 2004 18:58:01 -0500

Index: emacs/src/xdisp.c
diff -c emacs/src/xdisp.c:1.945 emacs/src/xdisp.c:1.946
*** emacs/src/xdisp.c:1.945     Mon Dec 13 14:27:56 2004
--- emacs/src/xdisp.c   Tue Dec 21 11:35:18 2004
***************
*** 4915,4921 ****
                   || (it->multibyte_p
                       ? ((it->c >= 127
                           && it->len == 1)
!                         || !CHAR_PRINTABLE_P (it->c))
                       : (it->c >= 127
                          && (!unibyte_display_via_language_environment
                              || it->c == unibyte_char_to_multibyte (it->c)))))
--- 4915,4923 ----
                   || (it->multibyte_p
                       ? ((it->c >= 127
                           && it->len == 1)
!                         || !CHAR_PRINTABLE_P (it->c)
!                         || it->c == 0x8ad
!                         || it->c == 0x8a0)
                       : (it->c >= 127
                          && (!unibyte_display_via_language_environment
                              || it->c == unibyte_char_to_multibyte (it->c)))))
***************
*** 4958,4963 ****
--- 4960,4980 ----
                  XSETINT (it->ctl_chars[1], g);
                  ctl_len = 2;
                }
+             else if (it->c == 0x8a0 || it->c == 0x8ad)
+               {
+                 /* Set IT->ctl_chars[0] to the glyph for `\\'.  */
+                 if (it->dp
+                     && INTEGERP (DISP_ESCAPE_GLYPH (it->dp))
+                     && GLYPH_CHAR_VALID_P (XINT (DISP_ESCAPE_GLYPH (it->dp))))
+                   g = XINT (DISP_ESCAPE_GLYPH (it->dp));
+                 else
+                   g = FAST_MAKE_GLYPH ('\\', face_id);
+                 XSETINT (it->ctl_chars[0], g);
+ 
+                 g = FAST_MAKE_GLYPH (it->c == 0x8ad ? '-' : ' ', face_id);
+                 XSETINT (it->ctl_chars[1], g);
+                 ctl_len = 2;
+               }
              else
                {
                  unsigned char str[MAX_MULTIBYTE_LENGTH];




reply via email to

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