cannot backspace

Bug #810942 reported by Mike Ma
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ibus.el
New
Low
IRIE Shinsuke

Bug Description

I type something wrong, then I want to backspace, when I press the key, Emacs will delete a character, but not ibus.

Revision history for this message
Mike Ma (zhtx10) wrote :

Sorry for my poor English.

Here are some informations about my computer:
Input Method: SunPinyin
Ibus version:IBus 1.3.99.20110708
ibus.el version: emacs-ibus-0.2.1-3.fc15.noarch
uname -a: Linux laptop.mike 2.6.38.8-35.fc15.x86_64 #1 SMP Wed Jul 6 13:58:54 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
distro: fedora 15 x86_64

Thank you.
Mike.

Revision history for this message
IRIE Shinsuke (irie) wrote :

Sorry for very late reply...

I might not understand your problem, but if the 'backspace' means typing C-h, please try the following setting:

(setq ibus-clear-preedit-when-unexpected-event t)

This option changes the behavior when preedit exits by typing a key not handled by IBus. If the value is non-nil, preedit text will be cleared. If nil, it will remain.

Thanks for your report.

IRIE Shinsuke (irie)
Changed in ibus.el:
assignee: nobody → IRIE Shinsuke (irie)
importance: Undecided → Low
status: New → Invalid
Revision history for this message
Ma Jiehong (ma-jiehong) wrote :

I would like to open this bug again since I also have this issue for a while now.

I use Ibus-el in Archlinux by the way.

I think you did not understand well the bug report. By "backspace", I think Mike Ma wanted to speak about the key we use to delete characters when we write (http://en.wikipedia.org/wiki/Backspace).

So, for example, I usually write in Chinese in Emacs thanks to ibus. Let's say I wanna write 您好[nin hao] but I made a mistake and typed 你好[ni hao], forgetting the "n". I want to deletes my input in ibus to corret it, but if I do use the backspace key on my keyboard, then the ibus windows doesn't change and it starts deleted things in the line I am on in Emacs. Do you understand better?

I waited till version 0.3, but this bug hasn't been resolved and it is very annoying.

I have uploaded a video to help you to understand the issue. Here it is: http://depositfiles.com/files/za6bsw96l

Changed in ibus.el:
status: Invalid → New
Revision history for this message
IRIE Shinsuke (irie) wrote :

@Jiehong

Thanks, I got it.

You are using over-the-spot style input, but basically ibus-mode supports only the on-the-spot style, not the over-the-spot style. By default, ibus-mode doesn't handle backspace key unless preedit text is embedded in buffer text, so backspace key doesn't work with over-the-spot style.

If you want to use the over-the-spot style input, the following setting in ~/.emacs may help you to solve this problem:

(ibus-define-common-key [backspace] t)

Note that this setting might causes another problem because backspace key will always be sent to ibus-daemon even if unnecessary.

Revision history for this message
Ma Jiehong (ma-jiehong) wrote :

Thanks for the precision. I guess I prefer using the on-the-spot style instead of rising some hidden issues with (ibus-define-common-key [backspace] t).

Is the over-the-spot style input planned for ibus-mode? Or are they any technical issues with implementing it?

Revision history for this message
IRIE Shinsuke (irie) wrote :

> Is the over-the-spot style input planned for ibus-mode? Or are they any technical issues with implementing it?

No, I don't plan to do that because in the over-the-spot style input there is no way to know if preedit is being done.

One more thing, I have started developing the ibus-mode to use the on-the-spot style in Emacs. :)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.