unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Problems mapping space key
@ 2005-11-08 20:25 Tim Johnson
  2005-11-08 20:32 ` Henrik Enberg
  0 siblings, 1 reply; 3+ messages in thread
From: Tim Johnson @ 2005-11-08 20:25 UTC (permalink / raw)


Using GNU Emacs 21.2.1
And 
XEmacs 21.4
On XEmacs, the following elisp command

(global-set-key [(hyper space)] 'global-insert-pseudo-space)

Successfully maps the hyper + <space> key to the quoted function,
but the same code is not successful for GNU emacs.

It appears to me that [(hyper space)] is the incorrect symbol
to use for emacs, what would be the proper approach?
Thanks
tim

-- 
Tim Johnson <tim@johnsons-web.com>
      http://www.alaska-internet-solutions.com

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

* Re: Problems mapping space key
  2005-11-08 20:25 Tim Johnson
@ 2005-11-08 20:32 ` Henrik Enberg
  0 siblings, 0 replies; 3+ messages in thread
From: Henrik Enberg @ 2005-11-08 20:32 UTC (permalink / raw)
  Cc: help-gnu-emacs

> Date: Tue, 8 Nov 2005 11:25:32 -0900
> From: Tim Johnson <tim@johnsons-web.com>

> (global-set-key [(hyper space)] 'global-insert-pseudo-space)

> Successfully maps the hyper + <space> key to the quoted function,
> but the same code is not successful for GNU emacs.

> It appears to me that [(hyper space)] is the incorrect symbol
> to use for emacs, what would be the proper approach?

(global-set-key (kbd "H-SPC") 'global-insert-pseudo-space)

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

* Re: Problems mapping space key
       [not found] <mailman.14434.1131481452.20277.help-gnu-emacs@gnu.org>
@ 2005-11-22 20:09 ` Stefan Monnier
  0 siblings, 0 replies; 3+ messages in thread
From: Stefan Monnier @ 2005-11-22 20:09 UTC (permalink / raw)


> (global-set-key [(hyper space)] 'global-insert-pseudo-space)

Try (global-set-key [(hyper ?\ )] 'global-insert-pseudo-space)
It should work in all (X)Emacsen.


        Stefan

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

end of thread, other threads:[~2005-11-22 20:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.14434.1131481452.20277.help-gnu-emacs@gnu.org>
2005-11-22 20:09 ` Problems mapping space key Stefan Monnier
2005-11-08 20:25 Tim Johnson
2005-11-08 20:32 ` Henrik Enberg

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