unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* german umlauts vs. meta key
@ 2008-02-29  7:46 Andreas Goesele
  2008-02-29 15:50 ` Peter Dyballa
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Andreas Goesele @ 2008-02-29  7:46 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

I'm in the process of moving from XEmacs to Emacs, but I encountered a
problem:

To be able to input german umlauts directly I have in my init.el:

 (progn
 (apply 'set-input-mode t (list (nth 1 (current-input-mode)))
 0 (list (nth 3 (current-input-mode))))
 )
 )

This worked fine under XEmacs.

Under Emacs it enables me to indeed directly input the umlauts, but it
disables all key combinations which use C-s or C-q. (I use emacs -nw
in an xterminal, namely KDE konsole.)

http://user.cs.tu-berlin.de/~eserte/FreeBSD/doc/umlaute/umlaute.txt
explains the problem as a conflict between umlauts and the meta key:
Supposedly the code above disables the meta key and thus enables the
input of umlauts. What I don't understand though, is that in my case
with this code the meta key (alt-left) is working, and only C-s and
C-q don't work.

An alternative to the code above would be (again according to the
website above) the following code:

     (global-set-key "\M-d"  'my-insert-ae)
     (global-set-key "\M-D"  'my-insert-Ae)
     (global-set-key "\M-v"  'my-insert-oe)
     (global-set-key "\M-V"  'my-insert-Oe)
     (global-set-key "\M-|"  'my-insert-ue)
     (global-set-key "\M-\\" 'my-insert-Ue)
     (global-set-key "\M-_"  'my-insert-ss)
     (defun my-insert-ae () (interactive) (insert "a:"))
     (defun my-insert-Ae () (interactive) (insert "A:"))
     (defun my-insert-oe () (interactive) (insert "o:"))
     (defun my-insert-Oe () (interactive) (insert "O:"))
     (defun my-insert-ue () (interactive) (insert "u:"))
     (defun my-insert-Ue () (interactive) (insert "U:"))
     (defun my-insert-ss () (interactive) (insert "ss"))

This code again indeed allows me to input the defined umlauts, but
disables M-v and M-d (which are of rather common use - I don't mind
the loss of M-\\ and such).

Another explanation of the problem I found is that under the console
C-s disables input and C-q reenables it - which indeed is the case,
but doesn't make much sense under a xterminal, does it? (XEmacs does
not interpret C-s and C-q this way.)

Is it possible to make umlauts work in emacs under a xterminal
(konsole) and using C-s, C-q, M-d, M-v etc. in the "normal" emacs way?

Thanks a lot in advance!

Andreas


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-03-10  1:08 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-29  7:46 german umlauts vs. meta key Andreas Goesele
2008-02-29 15:50 ` Peter Dyballa
     [not found] ` <mailman.8088.1204300250.18990.help-gnu-emacs@gnu.org>
2008-03-09  1:52   ` kl811af
2008-03-09  9:36     ` Peter Dyballa
2008-03-09 10:47 ` Johan Bockgård
2008-03-10  1:08   ` goesele

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).