unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Paul Pogonyshev <pogonyshev@gmx.net>
Cc: Juri Linkov <juri@jurta.org>, Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: Mode_switch in Emacs
Date: Tue, 29 Nov 2005 21:54:31 +0200	[thread overview]
Message-ID: <200511292154.31913.pogonyshev@gmx.net> (raw)
In-Reply-To: <jwv8xv7qvso.fsf-monnier+emacs@gnu.org>

Stefan Monnier wrote:
> >>> As I can see, everything works fine in CVS Emacs already.  The Mode_switch
> >>> key temporarily disables the russian layout while it is held in Emacs.
> >>> Perhaps something is wrong in Paul's configuration where Mode_switch
> >>> doesn't work correctly.
> >> 
> >> Does that hold for XIM russian layout or for LEIM russian layout or
> >> for both?
> 
> > For XIM russian layout.
> 
> OK.  So I guess I misunderstood Paul (or he has a different config
> in which this doesn't work, in which case he should clarify).

Yes, things got pretty messed with in this thread.  I first started talking
about my wishing for Mode_switch to switch LEIM input methods (which I use
currently.)  Then it forked off into discussion of how to treat those `C-ц'
shortcuts with XIM layouts and I have always been in favor of mapping them
to `C-w', just like LEIM does.

So, Mode_switch works with XIM, but not with LEIM.  Remapping of shortcuts
to English (US) layout works in LEIM, but not in XIM.  Of course, the
second is way more important and using XIM for Russian layout is currently
impossible because of it.

> > If the LEIM russian input method is enabled in Emacs, I think it is too
> > much to ask Emacs to temporarily disable the input method while
> > Mode_switch is held.
> 
> It's not high-priority, but I think it would be good if it could be made
> to work.

That's what I wished in the original post.  It is a wish, yes, not a bug-
report.

> > I see no reason to activate both XIM russian layout and LEIM russian
> > input method in Emacs.
> 
> I hope we indeed all agree on this one ;-)

Yeah :)

> Tho now that you mention it, I'm wondering: how do people deal with the
> situation where their keyboard is cyrillic and they want to use one of
> Emacs's input methods (which are all based on latin chars)?
> 
> > Somewhere С-ц may be preferable to C-w, but at least in Emacs I think
> > interpreting С-ц as C-w is more natural.  However, this is still not
> > very useful in Emacs because it will enable only key sequences with
> > control/meta modifiers, but not with raw letters.  I.e. what good is
> > to process С-ц as C-w, if `C-x b' will produce useless `C-x и'?
> 
> Oh boy! that's a very good point indeed.  It basically means we should
> postpone the decision whether to translate b into и to much later.

LEIM input methods works just fine here.  Not sure how it does so, but it
works seamlessly.  If Emacs could somehow receieve `switch-layout' signals
from XIM and then do all the work itself, that would have basically solved
the problem.  I'm not sure how difficult if at all possible that is to
implement.

> Now how does all the above look in the case of XIM input methods that map
> multi-key sequences to chars (typically for asian scripts)?

As far as I'm concerned, using Emacs with any XIM layouts that is not based
on latin alphabet is impossible.  I assume people use LEIM, like me.  May
be wrong.

Paul

  reply	other threads:[~2005-11-29 19:54 UTC|newest]

Thread overview: 43+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-11-22 19:50 wish: right alt/meta to switch keyboard layout while pressed Paul Pogonyshev
2005-11-22 22:31 ` Andreas Schwab
2005-11-23  5:14 ` Richard M. Stallman
2005-11-23 19:52   ` Paul Pogonyshev
2005-11-25 15:50     ` Richard M. Stallman
2005-11-25 18:00       ` Andreas Schwab
2005-11-23  6:07 ` Juri Linkov
2005-11-24 17:18 ` Stefan Monnier
2005-11-24 19:45   ` Paul Pogonyshev
2005-11-24 20:56     ` Stefan Monnier
2005-11-25 19:37       ` Paul Pogonyshev
2005-11-25 22:17         ` Stefan Monnier
2005-11-25 22:33           ` Paul Pogonyshev
2005-11-25 22:44             ` Aidan Kehoe
2005-11-26 16:43               ` Paul Pogonyshev
2005-11-27  5:26                 ` Tomas Zerolo
2005-11-26  8:15             ` Eugene Vlasov
2005-11-26 19:44               ` Paul Pogonyshev
2005-11-28 20:33                 ` Juri Linkov
2005-11-26 15:10             ` Stefan Monnier
2005-11-26 16:46               ` Paul Pogonyshev
2005-11-27 18:19                 ` Stefan Monnier
2005-11-27 21:39                   ` Paul Pogonyshev
2005-11-28  2:39                     ` Mode_switch in Emacs (was: wish: right alt/meta to switch keyboard layout while pressed) Stefan Monnier
2005-11-28 20:27                       ` Juri Linkov
2005-11-28 22:14                         ` Mode_switch in Emacs Stefan Monnier
2005-11-28 23:08                           ` Juri Linkov
2005-11-29 16:24                             ` Stefan Monnier
2005-11-29 19:54                               ` Paul Pogonyshev [this message]
2005-11-30  2:43                               ` Juri Linkov
2005-11-28 20:27               ` wish: right alt/meta to switch keyboard layout while pressed Juri Linkov
2005-11-28 23:14                 ` Juri Linkov
2005-11-26  4:22       ` Richard M. Stallman
     [not found] ` <200511261925.20191.pogonyshev@gmx.net>
     [not found]   ` <17288.41589.506361.323637@parhasard.net>
2005-11-26 23:01     ` thoughts on interaction of key bindings and input methods (was Re: wish: right alt/meta to switch keyboard layout while pressed) Paul Pogonyshev
2005-11-27  1:48       ` Ben Wing
2005-11-27  5:35         ` Tomas Zerolo
2005-11-27 11:29         ` thoughts on interaction of key bindings and input methods (was Re: wish: right alt/meta to switch keyboard layout while pressed ) Paul Pogonyshev
2005-11-28  5:25           ` thoughts on interaction of key bindings and input methods (was Re: wish: right alt/meta to switch keyboard layout while pressed) Ben Wing
2005-11-28 19:09             ` Paul Pogonyshev
2005-11-27 18:35         ` Aidan Kehoe
2005-11-28  2:39 ` wish: right alt/meta to switch keyboard layout while pressed Stefan Monnier
2005-11-28 20:28   ` Juri Linkov
2005-11-28 22:16     ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200511292154.31913.pogonyshev@gmx.net \
    --to=pogonyshev@gmx.net \
    --cc=juri@jurta.org \
    --cc=monnier@iro.umontreal.ca \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).