aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKenichi Handa2002-11-07 06:28:35 +0000
committerKenichi Handa2002-11-07 06:28:35 +0000
commit60a3d85d39695fd90f1585128dfbb7f69e4cd9f2 (patch)
treeddf14578054d491209ecff385f0ab9839c06c9cb
parent62f3e72ceb86175b8a4b5f8b76db31490ffd7e03 (diff)
downloademacs-60a3d85d39695fd90f1585128dfbb7f69e4cd9f2.tar.gz
emacs-60a3d85d39695fd90f1585128dfbb7f69e4cd9f2.zip
(quail-input-string-to-events): Don't generate compose-chars-after
events.
-rw-r--r--lisp/international/quail.el33
1 files changed, 10 insertions, 23 deletions
diff --git a/lisp/international/quail.el b/lisp/international/quail.el
index a548a5729fd..f5b41ba8238 100644
--- a/lisp/international/quail.el
+++ b/lisp/international/quail.el
@@ -1267,29 +1267,16 @@ The returned value is a Quail map specific to KEY."
1267 1267
1268(defun quail-input-string-to-events (str) 1268(defun quail-input-string-to-events (str)
1269 "Convert input string STR to a list of events. 1269 "Convert input string STR to a list of events.
1270Do so while interleaving with the following special events: 1270If STR has `advice' text property, append the following special event:
1271\(compose-last-chars LEN COMPONENTS) 1271\(quail-advice STR)"
1272\(quail-advice INPUT-STRING)" 1272 (let ((events (mapcar
1273 (let* ((events (mapcar 1273 (lambda (c)
1274 (lambda (c) 1274 ;; This gives us the chance to unify on input
1275 ;; This gives us the chance to unify on input 1275 ;; (e.g. using ucs-tables.el).
1276 ;; (e.g. using ucs-tables.el). 1276 (or (and translation-table-for-input
1277 ;; Fixme: Is this still useful? (See also mule-conf.el.) 1277 (aref translation-table-for-input c))
1278 (or (and translation-table-for-input 1278 c))
1279 (aref translation-table-for-input c)) 1279 str)))
1280 c))
1281 str))
1282 (len (length str))
1283 (idx len)
1284 composition from to)
1285 (while (and (> idx 0)
1286 (setq composition (find-composition idx 0 str t)))
1287 (setq from (car composition) to (nth 1 composition))
1288 (setcdr (nthcdr (1- to) events)
1289 (cons (list 'compose-last-chars (- to from)
1290 (and (not (nth 3 composition)) (nth 2 composition)))
1291 (nthcdr to events)))
1292 (setq idx (1- from)))
1293 (if (or (get-text-property 0 'advice str) 1280 (if (or (get-text-property 0 'advice str)
1294 (next-single-property-change 0 'advice str)) 1281 (next-single-property-change 0 'advice str))
1295 (setq events 1282 (setq events