82 |
(defun encode-composition-rule (rule) |
(defun encode-composition-rule (rule) |
83 |
"Encode composition rule RULE into an integer value. |
"Encode composition rule RULE into an integer value. |
84 |
RULE is a cons of global and new reference point symbols |
RULE is a cons of global and new reference point symbols |
85 |
\(see reference-point-alist)." |
\(see `reference-point-alist')." |
86 |
|
|
87 |
;; This must be compatible with C macro COMPOSITION_ENCODE_RULE |
;; This must be compatible with C macro COMPOSITION_ENCODE_RULE |
88 |
;; defined in composite.h. |
;; defined in composite.h. |
219 |
the characters in it. |
the characters in it. |
220 |
|
|
221 |
Optional 2nd and 3rd arguments START and END specify the range of |
Optional 2nd and 3rd arguments START and END specify the range of |
222 |
STRING to be composed. They defaults to the beginning and the end of |
STRING to be composed. They default to the beginning and the end of |
223 |
STRING respectively. |
STRING respectively. |
224 |
|
|
225 |
Optional 4th argument COMPONENTS, if non-nil, is a character or a |
Optional 4th argument COMPONENTS, if non-nil, is a character or a |
355 |
where N is the number of characters before point to compose, |
where N is the number of characters before point to compose, |
356 |
COMPONENTS, if non-nil, is the same as the argument to `compose-region' |
COMPONENTS, if non-nil, is the same as the argument to `compose-region' |
357 |
\(which see). If it is nil, `compose-chars-after' is called, |
\(which see). If it is nil, `compose-chars-after' is called, |
358 |
and that function find a proper rule to compose the target characters. |
and that function finds a proper rule to compose the target characters. |
359 |
This function is intended to be used from input methods. |
This function is intended to be used from input methods. |
360 |
The global keymap binds special event `compose-last-chars' to this |
The global keymap binds special event `compose-last-chars' to this |
361 |
function. Input method may generate an event (compose-last-chars N COMPONENTS) |
function. Input method may generate an event (compose-last-chars N COMPONENTS) |
362 |
after a sequence character events." |
after a sequence of character events." |
363 |
(interactive "e") |
(interactive "e") |
364 |
(let ((chars (nth 1 args))) |
(let ((chars (nth 1 args))) |
365 |
(if (and (numberp chars) |
(if (and (numberp chars) |