Re: Dead keys mit emacs -nw

2006-04-25 Thread Juergen Christoffel
On Fri, Apr 21, 2006 at 11:53:24PM +0200, Björn Beckmann wrote:
 ich habe folgendes Problem: Ich habe eine US-Tastatur und möchte
 (zunächst) im emacs -nw über die dead keys Umlaute und dergleichen
 eingeben können.

Keine Ahnung, wie's mit dead keys geht, sorry.

 Es klappt im xterm und auch im emacs. Rufe ich im xterm aber emacs -nw
 auf, so rufen die dead keys bei mir völlig ungewollte Effekte hervor,
 z.B. wird ispell gestartet, wenn ich ¨ gefolgt vom a eintippe, ich
 hätte aber gerne das ä. Das Anzeigen der Zeichen klappt allerdings
 problemlos... weiß jemand weiter?

Du möchtest Dich aber eventuell mal mit den Konzepten input method und
coding system vertraut machen? Na ja, möchten ist sicher nicht das
richtige Wort ;-/

Dann gibt es C-h C (M-x describe-coding-system) bzw. C-h I (M-x
describe-input-method), die geben Dir erste Hinweise.

C-\ (M-x toogle-input-method) schaltet das Eingabesystem um. Danach kann
ich z.B. 'a' tippen um ein 'ä' zu erhalten.

In Deinem .emacs kannst Du das ggf. geeignet vorwählen:

 ;; see M-x list-coding-systems 

 ; (set-keyboard-coding-system 'latin-9) ; for _input_  / C-x RET k 

 ; (set-terminal-coding-system 'latin-9) ; for _output_ / C-x RET t 


In dem Zusammenhang kommen dann ggf. Überraschungen beim cut/copy/paste mit
der Maus auf Dich zu. Denn je nach Eingabesystem werden die Umlaute als
Metazeichen oder als echte Umlaute behandelt[*].

Da hilft es, sich die
Funktion set-selection-coding-system anzusehen. bei mir steht im .emacs:

(cond (window-system
...
  (set-selection-coding-system 'compound-text)

Anstatt 'compound-text gibt es auch andere Optionen, z.B.
'compound-text-with-extensions -- Emacs (C-h i) und Google helfen Dir da
weiter.

Das sollte eigentlich alles mal ordentlich und systematisch aufgeschrieben
werden... aber der Tag hat nur 24 Stunden...

--jc

[*] Die sieben bis acht Bit sind halt ein bisschen wenig. In einem
frueheren Leben habe ich mal an Lisp-Maschinen gearbeitet. die hatten das
sogenannte Space Cadet Keyboard das hatte Control, Meta, Super und
Hyper-Tasten und die wurden alle ordentlich kodiert, anstatt sie auf ASCII
abzubilden. Don Knuth erwähnt das Keyboard in seinem TeX-Book:

  An extended ASCII code intended for text editing and interactive
  computing was developed at several universities about 1965, and for many
  years there have been terminals in use at Stanford, MIT,
  Carnegie-Mellong, and elsewhere that have 120 or 121 symbolcs, not just
  95. Aficionados of these keyboards (like the author of this book) are
  loath to give up their extra characters; [...] -- Don Knuth, The TeXbook,
  p. 368.

Cf. http://world.std.com/~jdostale/kbd/SpaceCadet.html und
http://www.abstractscience.freeserve.co.uk/symbolics/photos/IO/index.html

-- 
  In zweifelhaften Fällen entscheide man sich für das Richtige.
-- Karl Kraus (1874-1936) 


-- 
Haeufig gestellte Fragen und Antworten (FAQ): 
http://www.de.debian.org/debian-user-german-FAQ/

Zum AUSTRAGEN schicken Sie eine Mail an [EMAIL PROTECTED]
mit dem Subject unsubscribe. Probleme? Mail an [EMAIL PROTECTED] (engl)



Dead keys mit emacs -nw

2006-04-21 Thread Björn Beckmann
Hallo Liste,

ich habe folgendes Problem: Ich habe eine US-Tastatur und möchte
(zunächst) im emacs -nw über die dead keys Umlaute und dergleichen
eingeben können.

Es klappt im xterm und auch im emacs. Rufe ich im xterm aber emacs -nw
auf, so rufen die dead keys bei mir völlig ungewollte Effekte hervor,
z.B. wird ispell gestartet, wenn ich ¨ gefolgt vom a eintippe, ich
hätte aber gerne das ä. Das Anzeigen der Zeichen klappt allerdings
problemlos... weiß jemand weiter?

Gruß,
 Björn Beckmann


-- 
Haeufig gestellte Fragen und Antworten (FAQ): 
http://www.de.debian.org/debian-user-german-FAQ/

Zum AUSTRAGEN schicken Sie eine Mail an [EMAIL PROTECTED]
mit dem Subject unsubscribe. Probleme? Mail an [EMAIL PROTECTED] (engl)



Re: home/end keys in emacs -nw under eterm

2003-01-11 Thread Baurjan Ismagulov
Hello Rob,

  I am experiencing problems using gray home/end keys in emacs -nw under
  eterm (all latest versions from sid). When I press them, the screen just
  flashes (as visual bell).
 
 Hmmm...weird.  They just don't do anything for me.  They do work in vim
 however.

On my system, they work both in vim and graphical emacs.


 What codes do they generate?  Run 'cat' and hit home then end.  I get
 this:
 ^[[7~^[[8~

The same.


 I don't really know what else to say, terminfo is very black magic for
 me...

Terminfo seems to be ok, otherwise other programs wouldn't work.


Any other ideas?


With kind regards,
Baurjan.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: home/end keys in emacs -nw under eterm

2003-01-05 Thread Rob Weir
On Fri, Dec 27, 2002 at 02:25:04AM +0200, Baurjan Ismagulov wrote:
 Hello,
 
 I am experiencing problems using gray home/end keys in emacs -nw under
 eterm (all latest versions from sid). When I press them, the screen just
 flashes (as visual bell).

Hmmm...weird.  They just don't do anything for me.  They do work in vim
however.

 How can I make them work?
 
 I know the classic C-a and C-e, however, I'm really accustomed to
 home/end from Linux console, where they work fine.
 
 I've searched google, the archives and tried adding khome=\E[7~,
 kend=\E[8~ to the eterm terminfo and things like (global-set-key [home]
 'beginning-of-line) to ~/.emacs, but this didn't solve the problem.

What codes do they generate?  Run 'cat' and hit home then end.  I get
this:
^[[7~^[[8~

I don't really know what else to say, terminfo is very black magic for
me...

-rob



msg22523/pgp0.pgp
Description: PGP signature


home/end keys in emacs -nw under eterm

2002-12-26 Thread Baurjan Ismagulov
Hello,

I am experiencing problems using gray home/end keys in emacs -nw under
eterm (all latest versions from sid). When I press them, the screen just
flashes (as visual bell).

How can I make them work?

I know the classic C-a and C-e, however, I'm really accustomed to
home/end from Linux console, where they work fine.

I've searched google, the archives and tried adding khome=\E[7~,
kend=\E[8~ to the eterm terminfo and things like (global-set-key [home]
'beginning-of-line) to ~/.emacs, but this didn't solve the problem.

Any ideas?

Thanks in advance,
Baurjan.

P.S. Please cc to me, I'm not on the list.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Keys in Emacs

2000-04-01 Thread Rodrigo Castro
Hello,

I am running the lastest version of Potato and I have the
following problem. All my programs have right key configurations,
except Emacs, when in Xterm. My END key doesn't work in Emacs in
XTERM, but works fine when I am in console or in X. Any idea? 

Thank you,
-- 
Rodrigo Castro   [EMAIL PROTECTED]
Computer Science undergraduate student - University of Sao Paulo

I do not fear computers.  I fear the lack of them.
-- Isaac Asimov