diff options
| author | Dave Love | 2002-10-06 20:53:43 +0000 |
|---|---|---|
| committer | Dave Love | 2002-10-06 20:53:43 +0000 |
| commit | 952b3c319a6c49b2aa0d05c2c0111b1b8e9019b3 (patch) | |
| tree | b6e788c1f2a9051a72a5ca9b1fb0040d2fb79dfa | |
| parent | 3d9a29e03dd65add0608ec4d477c1ec0ac11f0c5 (diff) | |
| download | emacs-952b3c319a6c49b2aa0d05c2c0111b1b8e9019b3.tar.gz emacs-952b3c319a6c49b2aa0d05c2c0111b1b8e9019b3.zip | |
(quail-indian-preceding-char-position)
(quail-indian-update-translation, quail-define-inscript-package):
Use characterp, not char-valid-p.
| -rw-r--r-- | leim/quail/indian.el | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/leim/quail/indian.el b/leim/quail/indian.el index 8bec02cdfcf..9a55fa961ca 100644 --- a/leim/quail/indian.el +++ b/leim/quail/indian.el | |||
| @@ -39,7 +39,7 @@ | |||
| 39 | (defun quail-indian-preceding-char-position (position) | 39 | (defun quail-indian-preceding-char-position (position) |
| 40 | "Return the position of preceding composite character." | 40 | "Return the position of preceding composite character." |
| 41 | (let (prec-composed) | 41 | (let (prec-composed) |
| 42 | (if (char-valid-p (char-before position)) ;; range o.k. | 42 | (if (characterp (char-before position)) ;; range o.k. |
| 43 | (if (setq prec-composed (find-composition (1- position))) | 43 | (if (setq prec-composed (find-composition (1- position))) |
| 44 | (car prec-composed) | 44 | (car prec-composed) |
| 45 | (1- position)) | 45 | (1- position)) |
| @@ -67,7 +67,7 @@ | |||
| 67 | ;;(message "input control-flag=%s, string=%s, key=%s" | 67 | ;;(message "input control-flag=%s, string=%s, key=%s" |
| 68 | ;; control-flag quail-current-str quail-current-key) | 68 | ;; control-flag quail-current-str quail-current-key) |
| 69 | ;; make quail-current-str string when possible. | 69 | ;; make quail-current-str string when possible. |
| 70 | (if (char-valid-p quail-current-str) | 70 | (if (characterp quail-current-str) |
| 71 | (setq quail-current-str (char-to-string quail-current-str))) | 71 | (setq quail-current-str (char-to-string quail-current-str))) |
| 72 | ;; reset quail-indian-update-preceding-char if it's initial. | 72 | ;; reset quail-indian-update-preceding-char if it's initial. |
| 73 | (if (= (overlay-start quail-overlay) (overlay-end quail-overlay)) | 73 | (if (= (overlay-start quail-overlay) (overlay-end quail-overlay)) |
| @@ -182,7 +182,7 @@ | |||
| 182 | (let ((val (pop char-table))) | 182 | (let ((val (pop char-table))) |
| 183 | (if (and key val) | 183 | (if (and key val) |
| 184 | (quail-defrule | 184 | (quail-defrule |
| 185 | (if (char-valid-p key) (char-to-string key) key) | 185 | (if (characterp key) (char-to-string key) key) |
| 186 | (if (stringp val) (vector val) val)))))) | 186 | (if (stringp val) (vector val) val)))))) |
| 187 | 187 | ||
| 188 | ;; | 188 | ;; |