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
  2005-11-08 20:48 ` Problems mapping space key/solved Tim Johnson
  0 siblings, 2 replies; 4+ 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] 4+ messages in thread

* Re: Problems mapping space key
  2005-11-08 20:25 Problems mapping space key Tim Johnson
@ 2005-11-08 20:32 ` Henrik Enberg
  2005-11-08 20:48 ` Problems mapping space key/solved Tim Johnson
  1 sibling, 0 replies; 4+ 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] 4+ messages in thread

* Re: Problems mapping space key/solved
  2005-11-08 20:25 Problems mapping space key Tim Johnson
  2005-11-08 20:32 ` Henrik Enberg
@ 2005-11-08 20:48 ` Tim Johnson
  1 sibling, 0 replies; 4+ messages in thread
From: Tim Johnson @ 2005-11-08 20:48 UTC (permalink / raw)


* Tim Johnson <tim@johnsons-web.com> [051108 11:33]:
> 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?
 
  :-) Nevermind! figured it out, was really quite obvious:
      [(hyper ? )]  
  tj

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

^ permalink raw reply	[flat|nested] 4+ 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; 4+ 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] 4+ messages in thread

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

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

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