unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Re: how to bind to Super-\ ???
       [not found] <mailman.1030800236.25501.help-gnu-emacs@gnu.org>
@ 2002-08-31 14:38 ` lawrence mitchell
  2002-08-31 16:23 ` how to bind to S-\ ??? Kai Großjohann
  2002-09-01 13:51 ` Kenneth Jacker
  2 siblings, 0 replies; 7+ messages in thread
From: lawrence mitchell @ 2002-08-31 14:38 UTC (permalink / raw)


Joe Corneli wrote:

[...] binding Super-\

> Compiling file /home/jcorneli/.xemacs/custom.el at Sat Aug 31 08:16:23
> 2002
>   !! End of stream ((#<buffer " *Compiler Input*">))

when using [(super "\")]
> (The message appears to have no consequences.)

> For whatever reason, my version doesn't cause this message to appear --
> and more importantly, it keeps the syntax hightlighting consistent!

That's because \ is a quoting character, so whenever you add it
in a string, you have to quote it, hence, it should have been
"\\", rather than "\".

-- 
lawrence mitchell <wence@gmx.li>

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

* Re: how to bind to S-\ ???
       [not found] <mailman.1030800236.25501.help-gnu-emacs@gnu.org>
  2002-08-31 14:38 ` how to bind to Super-\ ??? lawrence mitchell
@ 2002-08-31 16:23 ` Kai Großjohann
  2002-08-31 16:24   ` Kai Großjohann
  2002-09-01 13:51 ` Kenneth Jacker
  2 siblings, 1 reply; 7+ messages in thread
From: Kai Großjohann @ 2002-08-31 16:23 UTC (permalink / raw)


Joe Corneli <jcorneli@math.utexas.edu> writes:

>>  (global-set-key [(shift "\")] 'foo)
>
>
> Thanks; I meant "super \" - but of course it comes out about the same!

No, S-\ is shift-\ whereas s-\ is super-\.

You can probably use (kbd "s-\").

kai
-- 
A large number of young women don't trust men with beards.  (BFBS Radio)

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

* Re: how to bind to S-\ ???
  2002-08-31 16:23 ` how to bind to S-\ ??? Kai Großjohann
@ 2002-08-31 16:24   ` Kai Großjohann
  0 siblings, 0 replies; 7+ messages in thread
From: Kai Großjohann @ 2002-08-31 16:24 UTC (permalink / raw)


Kai.Grossjohann@CS.Uni-Dortmund.DE (Kai Großjohann) writes:

> You can probably use (kbd "s-\").

(kbd "s-\\") -- sorry.

kai
-- 
A large number of young women don't trust men with beards.  (BFBS Radio)

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

* Re: how to bind to Super-\ ???
       [not found] <20020831210601.14569.29641.Mailman@monty-python.gnu.org>
@ 2002-09-01  6:11 ` Joe Corneli
  0 siblings, 0 replies; 7+ messages in thread
From: Joe Corneli @ 2002-09-01  6:11 UTC (permalink / raw)


> That's because \ is a quoting character, so whenever you add it
> in a string, you have to quote it, hence, it should have been
> "\\", rather than "\".

"\\" gives an error message, unknown keysym 

> No, S-\ is shift-\ whereas s-\ is super-\.

Thanks. (I personally think this convention is weird.)

> You can probably use (kbd "s-\").

That gives the "end of file" error message I described earlier (quoting
character problem). But you fixed it too:

> (kbd "s-\\") -- sorry.

This works, but emacs complains: "Unknown modifier"! 

My method with ?\134 seems to be the best for the compiler, 
hard to read but I can add a comment.  This seems to be a case 
where using octal is the only way to get quiet compilation. (Maybe?)

Anyway, I'm satisfied. 

Joe

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

* Re: how to bind to S-\ ???
       [not found] <mailman.1030800236.25501.help-gnu-emacs@gnu.org>
  2002-08-31 14:38 ` how to bind to Super-\ ??? lawrence mitchell
  2002-08-31 16:23 ` how to bind to S-\ ??? Kai Großjohann
@ 2002-09-01 13:51 ` Kenneth Jacker
  2002-09-01 18:41   ` Kai Großjohann
  2 siblings, 1 reply; 7+ messages in thread
From: Kenneth Jacker @ 2002-09-01 13:51 UTC (permalink / raw)


  joe> I meant "super \" - but of course it comes out about the same!

Pardon my ignorance, but which physical key (if any?) on the keyboard
corresponds to the "super" modifier?

Thanks,

  -Kenneth

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

* Re: how to bind to Super-\ ???
       [not found] <mailman.1030860723.6938.help-gnu-emacs@gnu.org>
@ 2002-09-01 18:38 ` Kai Großjohann
  0 siblings, 0 replies; 7+ messages in thread
From: Kai Großjohann @ 2002-09-01 18:38 UTC (permalink / raw)


Joe Corneli <jcorneli@math.utexas.edu> writes:

>> (kbd "s-\\") -- sorry.
>
> This works, but emacs complains: "Unknown modifier"! 

I get no such error.  Which version of Emacs have you got?

kai
-- 
A large number of young women don't trust men with beards.  (BFBS Radio)

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

* Re: how to bind to S-\ ???
  2002-09-01 13:51 ` Kenneth Jacker
@ 2002-09-01 18:41   ` Kai Großjohann
  0 siblings, 0 replies; 7+ messages in thread
From: Kai Großjohann @ 2002-09-01 18:41 UTC (permalink / raw)


Kenneth Jacker <khj@be.cs.appstate.edu> writes:

> Pardon my ignorance, but which physical key (if any?) on the keyboard
> corresponds to the "super" modifier?

On most keyboards, none.  But under X11 at least, you can change the
kbd layout.  Then, it can be any key you configure.

(I use hyper for my window manager.)

kai
-- 
A large number of young women don't trust men with beards.  (BFBS Radio)

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

end of thread, other threads:[~2002-09-01 18:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mailman.1030800236.25501.help-gnu-emacs@gnu.org>
2002-08-31 14:38 ` how to bind to Super-\ ??? lawrence mitchell
2002-08-31 16:23 ` how to bind to S-\ ??? Kai Großjohann
2002-08-31 16:24   ` Kai Großjohann
2002-09-01 13:51 ` Kenneth Jacker
2002-09-01 18:41   ` Kai Großjohann
     [not found] <20020831210601.14569.29641.Mailman@monty-python.gnu.org>
2002-09-01  6:11 ` how to bind to Super-\ ??? Joe Corneli
     [not found] <mailman.1030860723.6938.help-gnu-emacs@gnu.org>
2002-09-01 18:38 ` Kai Großjohann

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