diff options
| author | Kenichi Handa | 2009-11-19 01:11:47 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2009-11-19 01:11:47 +0000 |
| commit | b2f0be0f79c0275c1677fee1a2ff62c42febc623 (patch) | |
| tree | 02a60b48b0dae41037534aaa94360ff7965055e1 | |
| parent | 9f0ad26051de9994255555ada66dc41ebc89fb32 (diff) | |
| download | emacs-b2f0be0f79c0275c1677fee1a2ff62c42febc623.tar.gz emacs-b2f0be0f79c0275c1677fee1a2ff62c42febc623.zip | |
(describe-char-padded-string): Compose with TAB
only if there's a font for CH.
(describe-char): Fix the condition for detecting a trivial
composition.
| -rw-r--r-- | lisp/ChangeLog | 7 | ||||
| -rw-r--r-- | lisp/descr-text.el | 7 |
2 files changed, 12 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d4f599b5db1..a7de5cbef71 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,10 @@ | |||
| 1 | 2009-11-19 Kenichi Handa <handa@m17n.org> | ||
| 2 | |||
| 3 | * descr-text.el (describe-char-padded-string): Compose with TAB | ||
| 4 | only if there's a font for CH. | ||
| 5 | (describe-char): Fix the condition for detecting a trivial | ||
| 6 | composition. | ||
| 7 | |||
| 1 | 2009-11-18 Alan Mackenzie <acm@muc.de> | 8 | 2009-11-18 Alan Mackenzie <acm@muc.de> |
| 2 | 9 | ||
| 3 | * progmodes/cc-menus.el (cc-imenu-java-generic-expression): A new, | 10 | * progmodes/cc-menus.el (cc-imenu-java-generic-expression): A new, |
diff --git a/lisp/descr-text.el b/lisp/descr-text.el index 77b6bb8254d..c952ef1d796 100644 --- a/lisp/descr-text.el +++ b/lisp/descr-text.el | |||
| @@ -353,7 +353,9 @@ This function is semi-obsolete. Use `get-char-code-property'." | |||
| 353 | ;; Return a string of CH with composition for padding on both sides. | 353 | ;; Return a string of CH with composition for padding on both sides. |
| 354 | ;; It is displayed without overlapping with the left/right columns. | 354 | ;; It is displayed without overlapping with the left/right columns. |
| 355 | (defsubst describe-char-padded-string (ch) | 355 | (defsubst describe-char-padded-string (ch) |
| 356 | (compose-string (string ch) 0 1 (format "\t%c\t" ch))) | 356 | (if (internal-char-font nil ch) |
| 357 | (compose-string (string ch) 0 1 (format "\t%c\t" ch)) | ||
| 358 | (string ch))) | ||
| 357 | 359 | ||
| 358 | ;; Return a nicely formated list of categories; extended category | 360 | ;; Return a nicely formated list of categories; extended category |
| 359 | ;; description is added to the category name as a tooltip | 361 | ;; description is added to the category name as a tooltip |
| @@ -446,7 +448,8 @@ as well as widgets, buttons, overlays, and text properties." | |||
| 446 | (setq glyph (lgstring-glyph components j)) | 448 | (setq glyph (lgstring-glyph components j)) |
| 447 | (= (lglyph-from glyph) glyph-from)) | 449 | (= (lglyph-from glyph) glyph-from)) |
| 448 | (setq j (1+ j))) | 450 | (setq j (1+ j))) |
| 449 | (if (and (= i (1- j)) | 451 | (if (and (= to (1+ from)) |
| 452 | (= i (1- j)) | ||
| 450 | (setq glyph (lgstring-glyph components i)) | 453 | (setq glyph (lgstring-glyph components i)) |
| 451 | (= char (lglyph-char glyph))) | 454 | (= char (lglyph-char glyph))) |
| 452 | ;; The composition is trivial. | 455 | ;; The composition is trivial. |