unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Peter Dyballa <Peter_Dyballa@Web.DE>
Cc: help-gnu-emacs@gnu.org
Subject: Re: emacs-snapshot keybinding problem
Date: Sun, 1 Jan 2006 19:57:45 +0100	[thread overview]
Message-ID: <9cdba747602dd27e1dce99b54eedf30b@Web.DE> (raw)
In-Reply-To: <87fyo7j03q.fsf@magma.ca>


Am 01.01.2006 um 19:04 schrieb Angelina Carlton:

>> You have to make a difference between GNU Emacs running inside a
>> terminal (emulation), or as an X client in its own window. The keys
>> you set with xmodmap do not exist in nowindows mode. XTerm and other
>> terminal emulations have kind of 'text bindings' to keys, particularly
>> to function keys.
>
> This seems odd to me, but I will take your advice. "xterm" for example 
> is
> a terminal emulator for X windows, as is my terminal, "urxvt" so I 
> would
> have thought xmodmap would be sufficient here. or do you mean that 
> Emacs
> makes a distinction if called with -nw? I always thought the program
> (urxvt in my case) is a client of the X server and would inherit
> xmodmaps settings for that session.
>

The terminal emulation is of course an X11 client. But Emacs inside it 
not. It's just a shell command. In terminals GNU Emacs uses ncurses or 
similiar means to 'draw' its window(s). GNU Emacs too uses different 
interfaces to receive the 'key events.' Only the windowing system's 
clients see these events, shell commands receive some ANSI codes, as 
sent by the terminal emulation. In X11 this one translates from X11 key 
events to ANSI terminal codes.

You can see the difference when pressing C-q and then a function key. 
In a terminal emulation this has some sense, in an X11 client it's 
non-sense, maybe a ^@ or ASCII-Nul worth (less than 2¢). You too can 
check with C-h k whether GNU Emacs 'sees' in a terminal any modifiers 
(it can't, because the X11 interface is not activated).

--
Greetings

   Pete

"I wouldn't recommend sex, drugs or insanity for everyone, but they've
always worked for me."
		-- Hunter S. Thompson

  reply	other threads:[~2006-01-01 18:57 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.20812.1135883611.20277.help-gnu-emacs@gnu.org>
2005-12-30  4:49 ` emacs-snapshot keybinding problem Stefan Monnier
2005-12-30 14:21   ` Angelina Carlton
2005-12-30 15:45     ` Peter Dyballa
2005-12-30 18:31       ` Angelina Carlton
2005-12-30 23:52         ` Peter Dyballa
2005-12-31 15:41           ` Angelina Carlton
2005-12-31 17:21             ` Peter Dyballa
2006-01-01 18:04               ` Angelina Carlton
2006-01-01 18:57                 ` Peter Dyballa [this message]
2006-01-02 20:24                   ` Angelina Carlton
2006-01-03 12:58                     ` Peter Dyballa
2006-01-03 22:49                       ` Angelina Carlton
2006-01-03 23:52                         ` Peter Dyballa
2006-01-04 21:51                           ` Angelina Carlton
2006-01-04 22:48                             ` Peter Dyballa
2006-01-06  5:08                             ` Ian Zimmerman
2006-01-06 18:17                               ` Angelina Carlton
     [not found]                           ` <mailman.21417.1136411578.20277.help-gnu-emacs@gnu.org>
2006-01-05 10:57                             ` Romain Francoise
2006-01-05 14:05                               ` Angelina Carlton
2006-01-02 16:36             ` Stefan Monnier
2006-01-04 21:43               ` Angelina Carlton
2005-12-29 19:11 Angelina Carlton

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=9cdba747602dd27e1dce99b54eedf30b@Web.DE \
    --to=peter_dyballa@web.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.
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).