comparison lisp/composite.el @ 49588:37645a051842

Trailing whitespace deleted.
author Juanma Barranquero <lekktu@gmail.com>
date Tue, 04 Feb 2003 11:26:42 +0000
parents 6a0305153436
children 695cf19ef79e d7ddb3e565de
comparison
equal deleted inserted replaced
49587:e82b3fe06d4c 49588:37645a051842
93 (or (integerp gref) 93 (or (integerp gref)
94 (setq gref (cdr (assq gref reference-point-alist)))) 94 (setq gref (cdr (assq gref reference-point-alist))))
95 (or (integerp nref) 95 (or (integerp nref)
96 (setq nref (cdr (assq nref reference-point-alist)))) 96 (setq nref (cdr (assq nref reference-point-alist))))
97 (or (and (>= gref 0) (< gref 12) (>= nref 0) (< nref 12)) 97 (or (and (>= gref 0) (< gref 12) (>= nref 0) (< nref 12))
98 (error "Invalid composition rule: %S" rule)) 98 (error "Invalid composition rule: %S" rule))
99 (+ (* gref 12) nref)))) 99 (+ (* gref 12) nref))))
100 100
101 ;; Decode encoded composition rule RULE-CODE. The value is a cons of 101 ;; Decode encoded composition rule RULE-CODE. The value is a cons of
102 ;; global and new reference point symbols. 102 ;; global and new reference point symbols.
103 ;; This must be compatible with C macro COMPOSITION_DECODE_RULE 103 ;; This must be compatible with C macro COMPOSITION_DECODE_RULE
329 (let ((tail (aref composition-function-table (char-after pos))) 329 (let ((tail (aref composition-function-table (char-after pos)))
330 pattern func result) 330 pattern func result)
331 (when tail 331 (when tail
332 (save-match-data 332 (save-match-data
333 (save-excursion 333 (save-excursion
334 (while (and tail (not func)) 334 (while (and tail (not func))
335 (setq pattern (car (car tail)) 335 (setq pattern (car (car tail))
336 func (cdr (car tail))) 336 func (cdr (car tail)))
337 (goto-char pos) 337 (goto-char pos)
338 (if (if limit 338 (if (if limit
339 (and (re-search-forward pattern limit t) 339 (and (re-search-forward pattern limit t)