diff options
| author | Juanma Barranquero | 2010-05-20 03:27:49 +0200 |
|---|---|---|
| committer | Juanma Barranquero | 2010-05-20 03:27:49 +0200 |
| commit | 07d7c3bdc994e1def11a20b9f0a173fefaafb9bd (patch) | |
| tree | 1d88ccf16d547d6858e060a4e80f98b9d2c3831f | |
| parent | 7bce851099c56c9aa40ff3f37f929c786995e434 (diff) | |
| download | emacs-07d7c3bdc994e1def11a20b9f0a173fefaafb9bd.tar.gz emacs-07d7c3bdc994e1def11a20b9f0a173fefaafb9bd.zip | |
* composite.el: Require cl when compiling; fix typos in docstrings.
| -rw-r--r-- | lisp/ChangeLog | 6 | ||||
| -rw-r--r-- | lisp/composite.el | 8 |
2 files changed, 11 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index c1c1a1faef8..d8f961471b8 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2010-05-20 Juanma Barranquero <lekktu@gmail.com> | ||
| 2 | |||
| 3 | * composite.el: Require cl when compiling. | ||
| 4 | (reference-point-alist, compose-gstring-for-graphic) | ||
| 5 | (compose-gstring-for-terminal): Fix typos in docstrings. | ||
| 6 | |||
| 1 | 2010-05-19 Juri Linkov <juri@jurta.org> | 7 | 2010-05-19 Juri Linkov <juri@jurta.org> |
| 2 | 8 | ||
| 3 | * emacs-lisp/cl-macs.el (window-parameter): Add defsetf with | 9 | * emacs-lisp/cl-macs.el (window-parameter): Add defsetf with |
diff --git a/lisp/composite.el b/lisp/composite.el index 0afb2864879..d886be5a463 100644 --- a/lisp/composite.el +++ b/lisp/composite.el | |||
| @@ -28,6 +28,8 @@ | |||
| 28 | 28 | ||
| 29 | ;;; Code: | 29 | ;;; Code: |
| 30 | 30 | ||
| 31 | (eval-when-compile (require 'cl)) | ||
| 32 | |||
| 31 | (defconst reference-point-alist | 33 | (defconst reference-point-alist |
| 32 | '((tl . 0) (tc . 1) (tr . 2) | 34 | '((tl . 0) (tc . 1) (tr . 2) |
| 33 | (Bl . 3) (Bc . 4) (Br . 5) | 35 | (Bl . 3) (Bc . 4) (Br . 5) |
| @@ -77,7 +79,7 @@ follows (the point `*' corresponds to both reference points): | |||
| 77 | +----+-----+ <--- new descent | 79 | +----+-----+ <--- new descent |
| 78 | 80 | ||
| 79 | A composition rule may have the form \(GLOBAL-REF-POINT | 81 | A composition rule may have the form \(GLOBAL-REF-POINT |
| 80 | NEW-REF-POINT XOFF YOFF), where XOFF and YOFF specifies how much | 82 | NEW-REF-POINT XOFF YOFF), where XOFF and YOFF specify how much |
| 81 | to shift NEW-REF-POINT from GLOBAL-REF-POINT. In this case, XOFF | 83 | to shift NEW-REF-POINT from GLOBAL-REF-POINT. In this case, XOFF |
| 82 | and YOFF are integers in the range -100..100 representing the | 84 | and YOFF are integers in the range -100..100 representing the |
| 83 | shifting percentage against the font size.") | 85 | shifting percentage against the font size.") |
| @@ -537,7 +539,7 @@ character. If the preceding character is not a base character, | |||
| 537 | each combining character is composed as a spacing character by | 539 | each combining character is composed as a spacing character by |
| 538 | a padding space before and/or after the character. | 540 | a padding space before and/or after the character. |
| 539 | 541 | ||
| 540 | All non-spacing characters has this function in | 542 | All non-spacing characters have this function in |
| 541 | `composition-function-table' unless overwritten." | 543 | `composition-function-table' unless overwritten." |
| 542 | (let* ((header (lgstring-header gstring)) | 544 | (let* ((header (lgstring-header gstring)) |
| 543 | (nchars (lgstring-char-len gstring)) | 545 | (nchars (lgstring-char-len gstring)) |
| @@ -669,7 +671,7 @@ All non-spacing characters has this function in | |||
| 669 | Non-spacing characters are composed with the preceding base | 671 | Non-spacing characters are composed with the preceding base |
| 670 | character. If the preceding character is not a base character, | 672 | character. If the preceding character is not a base character, |
| 671 | each non-spacing character is composed as a spacing character by | 673 | each non-spacing character is composed as a spacing character by |
| 672 | a prepending a space before it." | 674 | prepending a space before it." |
| 673 | (let* ((header (lgstring-header gstring)) | 675 | (let* ((header (lgstring-header gstring)) |
| 674 | (nchars (lgstring-char-len gstring)) | 676 | (nchars (lgstring-char-len gstring)) |
| 675 | (nglyphs (lgstring-glyph-len gstring)) | 677 | (nglyphs (lgstring-glyph-len gstring)) |