emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] emacs/lisp composite.el


From: Kenichi Handa
Subject: [Emacs-diffs] emacs/lisp composite.el
Date: Wed, 10 Jun 2009 00:34:19 +0000

CVSROOT:        /cvsroot/emacs
Module name:    emacs
Changes by:     Kenichi Handa <handa>   09/06/10 00:34:19

Modified files:
        lisp           : composite.el 

Log message:
        (compose-gstring-for-terminal): For zero-width
        characters of Unicode category `Cf', simply replace it with SPC.

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/emacs/lisp/composite.el?cvsroot=emacs&r1=1.46&r2=1.47

Patches:
Index: composite.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/composite.el,v
retrieving revision 1.46
retrieving revision 1.47
diff -u -b -r1.46 -r1.47
--- composite.el        25 Mar 2009 12:02:18 -0000      1.46
+++ composite.el        10 Jun 2009 00:34:19 -0000      1.47
@@ -681,7 +681,14 @@
              (lglyph-set-from-to glyph i i)
              (setq i (1+ i))))
        (if (= (lglyph-width glyph) 0)
+           (if (eq (get-char-code-property (lglyph-char glyph)
+                                           'general-category)
+                   'Cf)
            (progn
+                 ;; Compose by replacing with a space.
+                 (lglyph-set-char glyph 32)
+                 (lglyph-set-width glyph 1)
+                 (setq i (1+ i)))
              ;; Compose by prepending a space.
              (setq gstring (lgstring-insert-glyph gstring i
                                                   (lglyph-copy glyph))




reply via email to

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