[Uim-bugs] [Bug 7532] Input method toggle causes an infinite loop
bugzilla-daemon at annarchy.freedesktop.org
bugzilla-daemon at annarchy.freedesktop.org
Tue Jul 18 21:19:37 EEST 2006
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=7532
------- Additional Comments From ekato at ees.hokudai.ac.jp 2006-07-18 11:19 -------
I got more meaningful backtrace.
ERROR: wta to car (errobj action_anthy_direct)
*backtrace*
>>(car elm)
>>(pred elm)
>>(pred elm)
>>(if (pred elm) (cons elm state) state)
>>(#<CLOSURE (state elms) (if (null? elms) (cons 1 (reverse state))
(let-internal (elm) ((car elms)) (cons () (if (pred elm) (cons elm state)
state))))> (quote ()) (quote (action_anthy_direct)))
>>(widgets-refresh-switcher-widget alt-widgets ctx)
>>(if toggle-state (let-internal (alt-widgets) ((toggle-state-widget-states
toggle-state)) (toggle-state-set-widget-states! toggle-state
(widgets-refresh-switcher-widget alt-widgets ctx))))
>>(let-internal (toggle-state widgets) ((context-toggle-state ctx)
(context-widgets ctx)) (begin (context-set-widgets! ctx
(widgets-refresh-switcher-widget widgets ctx)) (if toggle-state (let-internal
(alt-widgets) ((toggle-state-widget-states toggle-state))
(toggle-state-set-widget-states! toggle-state (widgets-refresh-switcher-widget
alt-widgets ctx)))) (if (context-focused? ctx)
(context-propagate-widget-configuration ctx))))
>>((cdr pair))
>>(custom-reload-user-configs)
And if I changes im-custom.scm, toggle im between latin-IM and Anthy with
"Enable menu-based input method switcher" #f doesn't seem to cause the problem.
But I'm not sure this is proper fix.
--- im-custom.scm (revision 3751)
+++ im-custom.scm (working copy)
@@ -347,7 +347,9 @@
(require "im-switcher.scm"))
;; Since context-list is empty on start-up, imsw-register-widget
;; is not called here.
- (if (symbol-bound? 'context-refresh-switcher-widget!)
+ (if (and
+ (symbol-bound? 'context-refresh-switcher-widget!)
+ toolbar-show-action-based-switcher-button?)
(for-each context-refresh-switcher-widget!
context-list))))
BTW, I found another problem.
1 Start a application with following setting.
"Enable menu-based input method switcher" #f
"Specify default IM" #t
"Default input method" Anthy
"Enable input method toggle by hot keys" #t
"Alternative input method" Latin characters
2 Run uim-pref and check "Enable menu-based IM switcher" and Apply.
3 Press uim-toolbar's IM icon check available IMs.
4 There in no "Direct" IM in the menu list!
In this test, if I set "Direct" IM to "Alternative input method" in 1.,
toggling IM after 4. cause crash of the application.
YamaKen, could you investigate?
--
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