Re: local-set-key and tty.

Uwe Brauer <[email protected]>
Newsgroups gmane.emacs.xemacs.beta
Message-ID <[email protected]>
>> "Aidan" == Aidan Kehoe <[email protected]> writes:

   >  Ar an chéad lá is fiche de mí Márta, scríobh Stephen J. Turnbull: 

   >> Uwe Brauer writes:
   >> 
   >> > However, for example in gnus message mode C-c C-K is bound to
   >> > kill-message and I don't know how to overwrite a local-key with a
   >> > tty-map
   >> > 
   >> > I presume what is missing is local-tty-map.
   >> 
   >> overriding-local-map           - Keymap that overrides all other local keymaps.
   >> overriding-terminal-local-map - Keymap that overrides all other
   >> local keymaps, for the selected console only.
   >> 
   >> I'm not sure if these do the right thing for your case.

   > Possibly not, I think they override all of gnus’
   > bindings. global-window-system-map and global-tty-map probably do what he
   > wants, though.
I have set

(define-key  global-tty-map [(control c) (control k)] 'delete-frame)

However when in gnus message mode, (control c) (control k) is bound to
kill-messages which overwrites the global binding, as usual.

So I usually  use   local-set-key in the relevant gnus hook. But in
this situation I want the setting only for the tty. 

So when I use gnuclient -nw and I am in gnus message mode C-c C-k should
be bound to delete-frame, however when I am in the non console mode 
C-c C-k should be bound to the default.

How can I achieve that?

Uwe Brauer 





_______________________________________________
XEmacs-Beta mailing list
[email protected]
http://lists.xemacs.org/mailman/listinfo/xemacs-beta
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.