* M-[
@ 2003-04-04 22:57 greg jednaszewski
2003-04-04 23:59 ` M-[ Barry Margolin
0 siblings, 1 reply; 4+ messages in thread
From: greg jednaszewski @ 2003-04-04 22:57 UTC (permalink / raw)
Hi,
I use swbuff.el for cycling through buffers, and I'd like to be able to
bind M-[ to swbuff-switch-to-previous-buffer like so:
(global-set-key (kbd "M-[") 'swbuff-switch-to-previous-buffer)
However, I can't seem to be able to bind anything to simply M-[. When I
do describe-key on M-[, it expects another keypress, in the same way
that C-x expects another keypress.
What is the reasoning behind this, and is there any way around it?
Thanks,
Greg
--
Greg Jednaszewski
greg@attenuated.org
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: M-[
2003-04-04 22:57 M-[ greg jednaszewski
@ 2003-04-04 23:59 ` Barry Margolin
2003-04-07 17:40 ` M-[ Peter Lee
2003-04-07 18:14 ` M-[ Kevin Rodgers
0 siblings, 2 replies; 4+ messages in thread
From: Barry Margolin @ 2003-04-04 23:59 UTC (permalink / raw)
In article <b6l2k3$t5l$1@news-int.gatech.edu>,
greg jednaszewski <greg@attenuated.org> wrote:
>I use swbuff.el for cycling through buffers, and I'd like to be able to
>bind M-[ to swbuff-switch-to-previous-buffer like so:
>
>(global-set-key (kbd "M-[") 'swbuff-switch-to-previous-buffer)
>
>However, I can't seem to be able to bind anything to simply M-[. When I
>do describe-key on M-[, it expects another keypress, in the same way
>that C-x expects another keypress.
>
>What is the reasoning behind this, and is there any way around it?
On most ASCII terminals, special function keys (like arrow keys) send
sequences that begin with ESC [.
--
Barry Margolin, barry.margolin@level3.com
Genuity Managed Services, a Level(3) Company, Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: M-[
2003-04-04 23:59 ` M-[ Barry Margolin
@ 2003-04-07 17:40 ` Peter Lee
2003-04-07 18:14 ` M-[ Kevin Rodgers
1 sibling, 0 replies; 4+ messages in thread
From: Peter Lee @ 2003-04-07 17:40 UTC (permalink / raw)
Barry Margolin <barry.margolin@level3.com> writes:
> In article <b6l2k3$t5l$1@news-int.gatech.edu>,
> greg jednaszewski <greg@attenuated.org> wrote:
> >I use swbuff.el for cycling through buffers, and I'd like to be able to
> >bind M-[ to swbuff-switch-to-previous-buffer like so:
> >
> >(global-set-key (kbd "M-[") 'swbuff-switch-to-previous-buffer)
> >
> >However, I can't seem to be able to bind anything to simply M-[. When I
> >do describe-key on M-[, it expects another keypress, in the same way
> >that C-x expects another keypress.
> >
> >What is the reasoning behind this, and is there any way around it?
>
> On most ASCII terminals, special function keys (like arrow keys) send
> sequences that begin with ESC [.
I have the following in my .emacs:
(global-set-key "\M-[" 'curly-brace-region)
It's always worked fine for me. Perhaps it is an OS issue. I'm on
XP.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: M-[
2003-04-04 23:59 ` M-[ Barry Margolin
2003-04-07 17:40 ` M-[ Peter Lee
@ 2003-04-07 18:14 ` Kevin Rodgers
1 sibling, 0 replies; 4+ messages in thread
From: Kevin Rodgers @ 2003-04-07 18:14 UTC (permalink / raw)
Barry Margolin wrote:
> On most ASCII terminals, special function keys (like arrow keys) send
> sequences that begin with ESC [.
The point being, those sequences are bound in function-key-map, which I
think of as an inverted keymap. If the OP insists on using M-[, he
would have to run Emacs under a window system, or disable
function-key-map somehow.
--
<a href="mailto:<kevin.rodgers@ihs.com>">Kevin Rodgers</a>
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2003-04-07 18:14 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-04 22:57 M-[ greg jednaszewski
2003-04-04 23:59 ` M-[ Barry Margolin
2003-04-07 17:40 ` M-[ Peter Lee
2003-04-07 18:14 ` M-[ Kevin Rodgers
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).