Bug 30528 - ignore the Group switch (Russian letters) in modified keys (C-, M-)
Summary: ignore the Group switch (Russian letters) in modified keys (C-, M-)
Status: NEW
Alias: None
Product: Sisyphus
Classification: Development
Component: emacs24-common (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: Evgenii Terechkov
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on: 852
Blocks: 30527
  Show dependency tree
 
Reported: 2014-12-02 13:25 MSK by Ivan Zakharyaschev
Modified: 2016-09-26 19:34 MSK (History)
6 users (show)

See Also:


Attachments
Один из вариантов реализации (1.03 KB, text/plain)
2015-01-11 19:56 MSK, Evgenii Terechkov
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Zakharyaschev 2014-12-02 13:25:41 MSK
+++ This bug was initially created as a clone of Bug #30527 +++

emacs24-common 24.3-alt8

When typing in Russian, it's very inconvenient, that the editing commands (like C-y, C-w, M-w, M-d, C-k and so on) can't be called easily with a key combination, because Emacs treats the key presses as combinations with Russian letters.

I suggest to ignore the Group modifier when processing keys with other modifiers. Or: to have a customizable option for this.

In some older versions of Emacs (at least, with a patch in ALT's packages), the key combinations were treated the way I suggest. (If I remember correctly, it was done out of necessity: the old Emacs couldn't accept the combinations with Russian letters, and hence was patched to ignore the Group modifier.)
Comment 1 Ivan Zakharyaschev 2014-12-02 13:27:29 MSK
 2002-11-08 Ivan Zakharyaschev <imz at altlinux.ru> 21.2-alt9

    - make keys like C-h, M-x work even when the (say) Russian XKB
    group is active (patch5, discard almost the whole state if
    a certain modifier is detected; fixes #852 at bugs.altlinux.ru).
    (Please REPORT any related misbehaviors!)
Comment 2 Ivan Zakharyaschev 2014-12-02 13:30:16 MSK
https://bugzilla.altlinux.org/show_bug.cgi?id=852 has a patch (for an old Emacs).
Comment 3 Evgenii Terechkov 2014-12-02 15:09:47 MSK
Этот патч перестал прикладываться ещё в emacs23. Собственно, сейчас в сизифе emacs24 вообще без патчей и вроде бы никто не жаловался :-)

Предлагаю оформить требуемую функциональность в виде отдельного пакета с elisp-кодом, а подобные низкоуровневые патчи продвигать в апстриме (тем более что они недавно перешли на широко применяемый git, что я надеюсь использовать в следующих сборках emacs-а). Только вот у разных людей может быть разное мнение о том, как надо "игнорировать национальную раскладку".
Comment 4 Evgenii Terechkov 2015-01-11 19:56:17 MSK
Created attachment 6219 [details]
Один из вариантов реализации

Например, меня пока устраивает вот такой код. Он и игнорирует раскладку Xkb и позволяет устанавливать раскладку (метод ввода) на каждый буфер.

Можно использовать как есть или же попробовать опакетить для желающих.
Comment 5 Ivan Zakharyaschev 2015-01-30 01:03:33 MSK
(В ответ на комментарий №4)
> Created an attachment (id=6219) [details]
> Один из вариантов реализации
> 
> Например, меня пока устраивает вот такой код. Он и игнорирует раскладку Xkb и
> позволяет устанавливать раскладку (метод ввода) на каждый буфер.
> 
> Можно использовать как есть или же попробовать опакетить для желающих.

Спасибо, надо будет попробовать использовать!

Опакетить, думаю, будет полезно. Чтобы легко устанавливать систему под свои привычки, т.е. например с Emacs, который комбинации воспринимает нормально.