(defvar pgtk-preedit-overlay nil)
-(defun pgtk-preedit-text (e)
+(defun pgtk-preedit-text (event)
+ "An internal function to display preedit text from input method.
+
+EVENT is an event of PGTK_PREEDIT_TEXT_EVENT.
+It contains colors and texts."
(interactive "e")
(when pgtk-preedit-overlay
(delete-overlay pgtk-preedit-overlay))
(let ((ovstr "")
(idx 0)
atts ov str color face-name)
- (dolist (part (nth 1 e))
+ (dolist (part (nth 1 event))
(setq str (car part))
(setq face-name (intern (format "pgtk-im-%d" idx)))
(eval