[Uim-bugs] [Bug 1450] New: context object integration
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Thu Sep 23 18:54:39 EEST 2004
Please do not reply to this email: if you want to comment on the bug, go to
the URL shown below and enter yourcomments there.
https://freedesktop.org/bugzilla/show_bug.cgi?id=1450
Summary: context object integration
Product: UIM
Version: unspecified
Platform: All
URL: http://freedesktop.org/pipermail/uim/2004-
September/000641.html
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P2
Component: libuim
AssignedTo: uim-bugs at freedesktop.org
ReportedBy: yamaken at bp.iij4u.or.jp
Currently IM programmers are required to deal with the 3 context
objects.
- id
- context
- per-im-context
'id' is used to communicate with C-side APIs such as im-commit
or im-update-preedit.
'context' is used as base object of Scheme-side context. It is
retrieved by (find-context id).
'per-im-context' contains IM-specific data. It is stored in a
'context' and retrieved by (context-data context).
The distinguishment requires IM-implementors tedious context
handling. You might have seen following code.
(lambda (id mode)
(let* ((c (find-context id))
(ac (context-data c)))
Although some reasons to distinguish the objects exist for API
implementor, all 3 context objects semantically mean same 'this
input context' for IM-implementors. So we should show the
context object as unified one for IM-implementors to eliminate
complexity and confusion.
See the URL for further information.
--
Configure bugmail: https://freedesktop.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the uim-bugs
mailing list