* how to bind c-~ or c-` ?
@ 2008-12-18 21:09 Samuel Wales
0 siblings, 0 replies; 8+ messages in thread
From: Samuel Wales @ 2008-12-18 21:09 UTC (permalink / raw
To: help-gnu-emacs
I've tried to bind c-~ and c-` using incantations including "\C-~",
[(control ...)], and simply doing M-x local-set-key and pasting the
rather cryptic (local-set-key (quote [67108960]) (quote ignore)).
That last trick has always worked to bind things I couldn't figure out
how to bind, but not this time.
Carbon Emacs. 22.1.
Thanks.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: how to bind c-~ or c-` ?
[not found] <mailman.3070.1229636932.26697.help-gnu-emacs@gnu.org>
@ 2008-12-18 22:01 ` Teemu Likonen
2008-12-18 22:46 ` Samuel Wales
[not found] ` <mailman.3092.1229672252.26697.help-gnu-emacs@gnu.org>
[not found] ` <mailman.3072.1229637711.26697.help-gnu-emacs@gnu.org>
1 sibling, 2 replies; 8+ messages in thread
From: Teemu Likonen @ 2008-12-18 22:01 UTC (permalink / raw
To: Samuel Wales; +Cc: help-gnu-emacs
Samuel Wales (2008-12-18 14:09 -0700) wrote:
> I've tried to bind c-~ and c-` using incantations including "\C-~",
> [(control ...)], and simply doing M-x local-set-key and pasting the
> rather cryptic (local-set-key (quote [67108960]) (quote ignore)).
>
> That last trick has always worked to bind things I couldn't figure out
> how to bind, but not this time.
Perhaps "kbd" function helps? (kbd "C-`") returns [67108960] so you
could do:
(global-set-key (kbd "C-`") 'do-this)
(global-set-key (kbd "C-~") 'do-that)
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: how to bind c-~ or c-` ?
2008-12-18 22:01 ` how to bind c-~ or c-` ? Teemu Likonen
@ 2008-12-18 22:46 ` Samuel Wales
[not found] ` <mailman.3092.1229672252.26697.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 8+ messages in thread
From: Samuel Wales @ 2008-12-18 22:46 UTC (permalink / raw
To: Teemu Likonen; +Cc: help-gnu-emacs
On Thu, Dec 18, 2008 at 15:01, Teemu Likonen <tlikonen@iki.fi> wrote:
> Perhaps "kbd" function helps? (kbd "C-`") returns [67108960] so you
> could do:
>
> (global-set-key (kbd "C-`") 'do-this)
> (global-set-key (kbd "C-~") 'do-that)
>
That works. Thank you.
The only remaining issue is C-F1, but that is probably an OS thing,
since emacs doesn't recognize it.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: how to bind c-~ or c-` ?
[not found] ` <mailman.3072.1229637711.26697.help-gnu-emacs@gnu.org>
@ 2008-12-19 0:03 ` Joe Casadonte
2008-12-20 15:56 ` Kevin Rodgers
[not found] ` <mailman.3166.1229788605.26697.help-gnu-emacs@gnu.org>
0 siblings, 2 replies; 8+ messages in thread
From: Joe Casadonte @ 2008-12-19 0:03 UTC (permalink / raw
To: help-gnu-emacs
On WinXP I use:
(global-set-key [C-~] 'foo-bar)
(global-set-key [C-M-~] 'baz)
Maybe it will work for you, too?
--
Regards,
joe
Joe Casadonte
jcasadonte@northbound-train.com
------------------------------------------------------------------------------
Llama Fresh Farms => http://www.northbound-train.com
Ramblings of a Gay Man => http://www.northbound-train.com/ramblings
Emacs Stuff => http://www.northbound-train.com/emacs.html
Music CD Trading => http://www.northbound-train.com/cdr.html
------------------------------------------------------------------------------
Live Free, that's the message!
------------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: how to bind c-~ or c-` ?
[not found] ` <mailman.3092.1229672252.26697.help-gnu-emacs@gnu.org>
@ 2008-12-19 9:27 ` Phil Carmody
2008-12-19 18:27 ` Samuel Wales
0 siblings, 1 reply; 8+ messages in thread
From: Phil Carmody @ 2008-12-19 9:27 UTC (permalink / raw
To: help-gnu-emacs
"Samuel Wales" <samologist@gmail.com> writes:
> On Thu, Dec 18, 2008 at 15:01, Teemu Likonen <tlikonen@iki.fi> wrote:
>> Perhaps "kbd" function helps? (kbd "C-`") returns [67108960] so you
>> could do:
>>
>> (global-set-key (kbd "C-`") 'do-this)
>> (global-set-key (kbd "C-~") 'do-that)
>
> That works. Thank you.
>
> The only remaining issue is C-F1, but that is probably an OS thing,
> since emacs doesn't recognize it.
What does C-h k say when, and view-lossage say after, you press it?
It's <C-f1> in the native emacs here, but ``ESC [ 1 1 ^'' via a
screen session in a terminal, and simply not a recognised keypress
at all from the console. For this reason, you might want to not
rely on binding any function to such a key if you're ever likely
to change environment.
Of course, if you look at the traditional meaning of the 'control'
modifier, it only makes sense for a-z and a handful of other characters.
That emacs is able to capture keyboard events and recognise combinations
which have no intrinsic meaning outside emacs is nice when you can always
rely on it, but an annoyance when you're suddently placed at a console
which doesn't provide emacs the same level of control.
Phil
--
I tried the Vista speech recognition by running the tutorial. I was
amazed, it was awesome, recognised every word I said. Then I said the
wrong word ... and it typed the right one. It was actually just
detecting a sound and printing the expected word! -- pbhj on /.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: how to bind c-~ or c-` ?
2008-12-19 9:27 ` Phil Carmody
@ 2008-12-19 18:27 ` Samuel Wales
0 siblings, 0 replies; 8+ messages in thread
From: Samuel Wales @ 2008-12-19 18:27 UTC (permalink / raw
To: Phil Carmody; +Cc: help-gnu-emacs
On Fri, Dec 19, 2008 at 02:27, Phil Carmody
<thefatphil_demunged@yahoo.co.uk> wrote:
> "Samuel Wales" <samologist@gmail.com> writes:
>> The only remaining issue is C-F1, but that is probably an OS thing,
>> since emacs doesn't recognize it.
>
> What does C-h k say when, and view-lossage say after, you press it?
The key is not recognized by emacs.
Not intending to use it for purposes where I would rely on it on a
console, of course.
This isn't a huge problem.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: how to bind c-~ or c-` ?
2008-12-19 0:03 ` Joe Casadonte
@ 2008-12-20 15:56 ` Kevin Rodgers
[not found] ` <mailman.3166.1229788605.26697.help-gnu-emacs@gnu.org>
1 sibling, 0 replies; 8+ messages in thread
From: Kevin Rodgers @ 2008-12-20 15:56 UTC (permalink / raw
To: help-gnu-emacs
Joe Casadonte wrote:
> On WinXP I use:
>
> (global-set-key [C-~] 'foo-bar)
> (global-set-key [C-M-~] 'baz)
>
> Maybe it will work for you, too?
That shouldn't work for anyone, since ~ is not a function key. I think
you meant to write:
(global-set-key [?\C-~] 'foo-bar)
(global-set-key [?\C-\M-~] 'baz)
--
Kevin Rodgers
Denver, Colorado, USA
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: how to bind c-~ or c-` ?
[not found] ` <mailman.3166.1229788605.26697.help-gnu-emacs@gnu.org>
@ 2008-12-20 16:21 ` Joe Casadonte
0 siblings, 0 replies; 8+ messages in thread
From: Joe Casadonte @ 2008-12-20 16:21 UTC (permalink / raw
To: help-gnu-emacs
On 20 Dec 2008, Kevin Rodgers wrote:
> Joe Casadonte wrote:
>> On WinXP I use:
>>
>> (global-set-key [C-~] 'foo-bar)
>> (global-set-key [C-M-~] 'baz)
>>
>> Maybe it will work for you, too?
>
> That shouldn't work for anyone, since ~ is not a function key. I
> think you meant to write:
And yet it works, on 22.2.1 and 21.x on Win2k and WinXP. I guess I
got lucky. And I just tried it on 22.1.1 on Ubuntu and it works, too.
--
Regards,
joe
Joe Casadonte
jcasadonte@northbound-train.com
------------------------------------------------------------------------------
Llama Fresh Farms => http://www.northbound-train.com
Ramblings of a Gay Man => http://www.northbound-train.com/ramblings
Emacs Stuff => http://www.northbound-train.com/emacs.html
Music CD Trading => http://www.northbound-train.com/cdr.html
------------------------------------------------------------------------------
Live Free, that's the message!
------------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2008-12-20 16:21 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <mailman.3070.1229636932.26697.help-gnu-emacs@gnu.org>
2008-12-18 22:01 ` how to bind c-~ or c-` ? Teemu Likonen
2008-12-18 22:46 ` Samuel Wales
[not found] ` <mailman.3092.1229672252.26697.help-gnu-emacs@gnu.org>
2008-12-19 9:27 ` Phil Carmody
2008-12-19 18:27 ` Samuel Wales
[not found] ` <mailman.3072.1229637711.26697.help-gnu-emacs@gnu.org>
2008-12-19 0:03 ` Joe Casadonte
2008-12-20 15:56 ` Kevin Rodgers
[not found] ` <mailman.3166.1229788605.26697.help-gnu-emacs@gnu.org>
2008-12-20 16:21 ` Joe Casadonte
2008-12-18 21:09 Samuel Wales
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.