all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Andreas Goesele <goesele@hfph.mwn.de>
To: help-gnu-emacs@gnu.org
Subject: german umlauts vs. meta key
Date: Fri, 29 Feb 2008 01:46:16 -0600	[thread overview]
Message-ID: <87r6ewqk6v.fsf@hfph.mwn.de> (raw)

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


             reply	other threads:[~2008-02-29  7:46 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-02-29  7:46 Andreas Goesele [this message]
2008-02-29 15:50 ` german umlauts vs. meta key 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

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

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

  git send-email \
    --in-reply-to=87r6ewqk6v.fsf@hfph.mwn.de \
    --to=goesele@hfph.mwn.de \
    --cc=help-gnu-emacs@gnu.org \
    /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 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.