* 15/11/2021 12:45:02 自动保存草稿
@ 2021-11-15 6:35 tumashu
2021-11-15 6:36 ` Po Lu
0 siblings, 1 reply; 11+ messages in thread
From: tumashu @ 2021-11-15 6:35 UTC (permalink / raw
To: emacs-devel@gnu.org, Po Lu
[-- Attachment #1: Type: text/plain, Size: 287 bytes --]
Hi, Po Lu:
Could you provide a variable for xwidget-webkit, with this variable, I can know input method is enabled or not in xwidget-webkit environment.
for many Input method have probe feature, which can dynamic decision input ASCII or Chinese by run probe function.
Thanks
[-- Attachment #2: Type: text/html, Size: 662 bytes --]
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: 15/11/2021 12:45:02 自动保存草稿
2021-11-15 6:35 15/11/2021 12:45:02 自动保存草稿 tumashu
@ 2021-11-15 6:36 ` Po Lu
2021-11-15 6:49 ` Provide a variable to indicate input method enable or not in xwidget-webkit tumashu
0 siblings, 1 reply; 11+ messages in thread
From: Po Lu @ 2021-11-15 6:36 UTC (permalink / raw
To: tumashu; +Cc: emacs-devel@gnu.org
tumashu <tumashu@163.com> writes:
> Hi, Po Lu:
>
> Could you provide a variable for xwidget-webkit, with this
> variable, I can know input method is enabled or not in xwidget-webkit
> environment. for many Input method have probe feature, which can
> dynamic decision input ASCII or Chinese by run probe function.
>
> Thanks
The variable is `current-input-method', no? That's what I use to decide
whether or not to use the input method.
Thanks.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Provide a variable to indicate input method enable or not in xwidget-webkit
2021-11-15 6:36 ` Po Lu
@ 2021-11-15 6:49 ` tumashu
2021-11-15 6:52 ` tumashu
2021-11-15 6:59 ` Provide " Po Lu
0 siblings, 2 replies; 11+ messages in thread
From: tumashu @ 2021-11-15 6:49 UTC (permalink / raw
To: Po Lu; +Cc: emacs-devel@gnu.org
At 2021-11-15 14:36:50, "Po Lu" <luangruo@yahoo.com> wrote:
>tumashu <tumashu@163.com> writes:
>
>> Hi, Po Lu:
>>
>> Could you provide a variable for xwidget-webkit, with this
>> variable, I can know input method is enabled or not in xwidget-webkit
>> environment. for many Input method have probe feature, which can
>> dynamic decision input ASCII or Chinese by run probe function.
>>
>> Thanks
>
>The variable is `current-input-method', no? That's what I use to decide
>whether or not to use the input method.
I need to know *xwidget-webkit* has been enable IM, only current-input-method
is not enough.
>
>Thanks.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re:Provide a variable to indicate input method enable or not in xwidget-webkit
2021-11-15 6:49 ` Provide a variable to indicate input method enable or not in xwidget-webkit tumashu
@ 2021-11-15 6:52 ` tumashu
2021-11-15 6:59 ` Provide " Po Lu
1 sibling, 0 replies; 11+ messages in thread
From: tumashu @ 2021-11-15 6:52 UTC (permalink / raw
To: Po Lu; +Cc: emacs-devel@gnu.org
At 2021-11-15 14:49:39, "tumashu" <tumashu@163.com> wrote:
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>At 2021-11-15 14:36:50, "Po Lu" <luangruo@yahoo.com> wrote:
>>tumashu <tumashu@163.com> writes:
>>
>>> Hi, Po Lu:
>>>
>>> Could you provide a variable for xwidget-webkit, with this
>>> variable, I can know input method is enabled or not in xwidget-webkit
>>> environment. for many Input method have probe feature, which can
>>> dynamic decision input ASCII or Chinese by run probe function.
>>>
>>> Thanks
>>
>>The variable is `current-input-method', no? That's what I use to decide
>>whether or not to use the input method.
>
>I need to know *xwidget-webkit* has been enable IM, only current-input-method
> is not enough.
At the moment, I use below code, but seem to a bit ugly.
(defun pyim-probe-xwidget-webkit-environment ()
"测试当前是否是 xwidget-webkit 运行环境。
这个探针主要用于: `pyim-force-input-chinese-functions'."
(or (eq this-original-command
'xwidget-webkit-pass-command-event-with-input-method)
(bound-and-true-p xwidget-webkit-isearch--read-string-buffer)))
>>
>>Thanks.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Provide a variable to indicate input method enable or not in xwidget-webkit
2021-11-15 6:49 ` Provide a variable to indicate input method enable or not in xwidget-webkit tumashu
2021-11-15 6:52 ` tumashu
@ 2021-11-15 6:59 ` Po Lu
2021-11-15 7:05 ` tumashu
1 sibling, 1 reply; 11+ messages in thread
From: Po Lu @ 2021-11-15 6:59 UTC (permalink / raw
To: tumashu; +Cc: emacs-devel@gnu.org
tumashu <tumashu@163.com> writes:
> I need to know *xwidget-webkit* has been enable IM, only
> current-input-method is not enough.
Input method support will always be enabled by xwidget-webkit if
`current-input-method' is non-nil.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re:Re: Provide a variable to indicate input method enable or not in xwidget-webkit
2021-11-15 6:59 ` Provide " Po Lu
@ 2021-11-15 7:05 ` tumashu
2021-11-15 7:21 ` Po Lu
0 siblings, 1 reply; 11+ messages in thread
From: tumashu @ 2021-11-15 7:05 UTC (permalink / raw
To: Po Lu; +Cc: emacs-devel@gnu.org
At 2021-11-15 14:59:34, "Po Lu" <luangruo@yahoo.com> wrote:
>tumashu <tumashu@163.com> writes:
>
>> I need to know *xwidget-webkit* has been enable IM, only
>> current-input-method is not enough.
>
>Input method support will always be enabled by xwidget-webkit if
>`current-input-method' is non-nil.
I know, but I can not know the environment is xwidget-webkit only by current-input-method.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Provide a variable to indicate input method enable or not in xwidget-webkit
2021-11-15 7:05 ` tumashu
@ 2021-11-15 7:21 ` Po Lu
2021-11-15 7:59 ` tumashu
0 siblings, 1 reply; 11+ messages in thread
From: Po Lu @ 2021-11-15 7:21 UTC (permalink / raw
To: tumashu; +Cc: emacs-devel@gnu.org
tumashu <tumashu@163.com> writes:
> I know, but I can not know the environment is xwidget-webkit only by
> current-input-method.
You could always test the value of `xwidget-webkit-edit-mode', like:
(and current-input-method xwidget-webkit-edit-mode)
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re:Re: Provide a variable to indicate input method enable or not in xwidget-webkit
2021-11-15 7:21 ` Po Lu
@ 2021-11-15 7:59 ` tumashu
2021-11-15 8:04 ` Po Lu
0 siblings, 1 reply; 11+ messages in thread
From: tumashu @ 2021-11-15 7:59 UTC (permalink / raw
To: Po Lu; +Cc: emacs-devel@gnu.org
At 2021-11-15 15:21:09, "Po Lu" <luangruo@yahoo.com> wrote:
>tumashu <tumashu@163.com> writes:
>
>> I know, but I can not know the environment is xwidget-webkit only by
>> current-input-method.
>
>You could always test the value of `xwidget-webkit-edit-mode', like:
>
> (and current-input-method xwidget-webkit-edit-mode)
When run input-method, I think it is in minibuffer, is xwidget-webkit-edit-mode enable in minibuffer?
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Provide a variable to indicate input method enable or not in xwidget-webkit
2021-11-15 7:59 ` tumashu
@ 2021-11-15 8:04 ` Po Lu
2021-11-15 8:24 ` tumashu
0 siblings, 1 reply; 11+ messages in thread
From: Po Lu @ 2021-11-15 8:04 UTC (permalink / raw
To: tumashu; +Cc: emacs-devel@gnu.org
tumashu <tumashu@163.com> writes:
> When run input-method, I think it is in minibuffer, is
> xwidget-webkit-edit-mode enable in minibuffer?
Hmm. I still don't think it warrants adding a new variable though.
Can't you test the value of `this-command' or something to determine if
you're inside the minibuffer because of xwidget-webkit-edit-mode?
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re:Re: Provide a variable to indicate input method enable or not in xwidget-webkit
2021-11-15 8:04 ` Po Lu
@ 2021-11-15 8:24 ` tumashu
2021-11-15 9:18 ` Po Lu
0 siblings, 1 reply; 11+ messages in thread
From: tumashu @ 2021-11-15 8:24 UTC (permalink / raw
To: Po Lu; +Cc: emacs-devel@gnu.org
At 2021-11-15 16:04:01, "Po Lu" <luangruo@yahoo.com> wrote:
>tumashu <tumashu@163.com> writes:
>
>> When run input-method, I think it is in minibuffer, is
>> xwidget-webkit-edit-mode enable in minibuffer?
>
>Hmm. I still don't think it warrants adding a new variable though.
>Can't you test the value of `this-command' or something to determine if
>you're inside the minibuffer because of xwidget-webkit-edit-mode?
At the moment, I use (eq this-original-command 'xwidget-webkit-pass-command-event-with-input-method) to test, and seem to work.
but I do not know whether this is a good way.
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2021-11-15 9:18 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-11-15 6:35 15/11/2021 12:45:02 自动保存草稿 tumashu
2021-11-15 6:36 ` Po Lu
2021-11-15 6:49 ` Provide a variable to indicate input method enable or not in xwidget-webkit tumashu
2021-11-15 6:52 ` tumashu
2021-11-15 6:59 ` Provide " Po Lu
2021-11-15 7:05 ` tumashu
2021-11-15 7:21 ` Po Lu
2021-11-15 7:59 ` tumashu
2021-11-15 8:04 ` Po Lu
2021-11-15 8:24 ` tumashu
2021-11-15 9:18 ` Po Lu
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.