aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJuanma Barranquero2010-05-20 03:27:49 +0200
committerJuanma Barranquero2010-05-20 03:27:49 +0200
commit07d7c3bdc994e1def11a20b9f0a173fefaafb9bd (patch)
tree1d88ccf16d547d6858e060a4e80f98b9d2c3831f
parent7bce851099c56c9aa40ff3f37f929c786995e434 (diff)
downloademacs-07d7c3bdc994e1def11a20b9f0a173fefaafb9bd.tar.gz
emacs-07d7c3bdc994e1def11a20b9f0a173fefaafb9bd.zip
* composite.el: Require cl when compiling; fix typos in docstrings.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/composite.el8
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 @@
12010-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
12010-05-19 Juri Linkov <juri@jurta.org> 72010-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
79A composition rule may have the form \(GLOBAL-REF-POINT 81A composition rule may have the form \(GLOBAL-REF-POINT
80NEW-REF-POINT XOFF YOFF), where XOFF and YOFF specifies how much 82NEW-REF-POINT XOFF YOFF), where XOFF and YOFF specify how much
81to shift NEW-REF-POINT from GLOBAL-REF-POINT. In this case, XOFF 83to shift NEW-REF-POINT from GLOBAL-REF-POINT. In this case, XOFF
82and YOFF are integers in the range -100..100 representing the 84and YOFF are integers in the range -100..100 representing the
83shifting percentage against the font size.") 85shifting percentage against the font size.")
@@ -537,7 +539,7 @@ character. If the preceding character is not a base character,
537each combining character is composed as a spacing character by 539each combining character is composed as a spacing character by
538a padding space before and/or after the character. 540a padding space before and/or after the character.
539 541
540All non-spacing characters has this function in 542All 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
669Non-spacing characters are composed with the preceding base 671Non-spacing characters are composed with the preceding base
670character. If the preceding character is not a base character, 672character. If the preceding character is not a base character,
671each non-spacing character is composed as a spacing character by 673each non-spacing character is composed as a spacing character by
672a prepending a space before it." 674prepending 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))