[Uim-bugs] [Bug 4363] New: enabled-im-list

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Tue Sep 6 10:09:00 EEST 2005


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://bugs.freedesktop.org/show_bug.cgi?id=4363          
     
           Summary: enabled-im-list
           Product: UIM
           Version: unspecified
          Platform: PC
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: generic Scheme codes
        AssignedTo: uim-bugs at freedesktop.org
        ReportedBy: ekato at ees.hokudai.ac.jp


Currently (from uim-0.4.8), uim-module-manager can manipulate enabled-im-list in
the [system data dir]/uim/installed-modules.scm.

This cause a problem on uim-pref's behavior if unregistering some modules listed
in the enabled-im-list of ~/.uim.d/customs/custom-global.scm.

For example, if 'anthy' is not listed on system's installed-modules.scm but
listed on ~/.uim.d/customs/custom-global.scm, uim-pref shows only 'direct' in
the 'Enabled input methods' in Global settings because custom-valid? fails, and
user cannot edit the list unless saving the setting to the file.

So I propose adding new variable `system-enabled-im-list to the
installed-modules.scm.  Also replace `direct with 'usable-im-list' for default
value when custom-valid? on enabled-im-list fails.

I mean, 

(define system-enabled-im-list enabled-im-list)

  in installed-modules.scm, and

(define usable-im-list
  (lambda ()
    (let ((imlist (filter (lambda (name)
                    (memq name system-enabled-im-list)) enabled-im-list)))
         (if (not (null? imlist))
             imlist
             '(direct)))))

(define-custom 'enabled-im-list (usable-im-list)
    ...
    ...)

  in im-custom.scm.

What do you think?

Cheers,
-- 
Etsushi Kato
ekato at ees.hokudai.ac.jp          
     
     
--           
Configure bugmail: https://bugs.freedesktop.org/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