* M vs C-[
@ 2011-07-17 14:08 C K Kashyap
2011-07-17 19:05 ` Tassilo Horn
0 siblings, 1 reply; 3+ messages in thread
From: C K Kashyap @ 2011-07-17 14:08 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 193 bytes --]
Hi folks,
Looks like I can use C-[ to get the M key effect. However, I noticed that
M-C-\ to indent a region does not quite work when I do C-[ C-\
What is the reason for that?
Regards,
Kashyap
[-- Attachment #2: Type: text/html, Size: 233 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: M vs C-[
2011-07-17 14:08 M vs C-[ C K Kashyap
@ 2011-07-17 19:05 ` Tassilo Horn
2011-07-18 5:30 ` C K Kashyap
0 siblings, 1 reply; 3+ messages in thread
From: Tassilo Horn @ 2011-07-17 19:05 UTC (permalink / raw)
To: help-gnu-emacs
C K Kashyap <ckkashyap@gmail.com> writes:
Hi!
> Looks like I can use C-[ to get the M key effect.
You can also use ESC:
C-M-\ can be typed as ESC C-\
> However, I noticed that M-C-\ to indent a region does not quite work
> when I do C-[ C-\
It does here. Are you sure it acts differently from C-M-\?
(While trying out, I found that `indent-region' doesn't always indent,
but its docs (C-h k ESC C-\) tell you how it determines if and to where
it indents.)
Actually, you can force it to indent using a prefix arg:
C-u 4 C-M-\ ;; indent to 4th column
C-u 4 C-[ C-\ ;; ditto
C-u 4 ESC C-\ ;; ditto
Bye,
Tassilo
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: M vs C-[
2011-07-17 19:05 ` Tassilo Horn
@ 2011-07-18 5:30 ` C K Kashyap
0 siblings, 0 replies; 3+ messages in thread
From: C K Kashyap @ 2011-07-18 5:30 UTC (permalink / raw)
To: Tassilo Horn; +Cc: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 601 bytes --]
>
> It does here. Are you sure it acts differently from C-M-\?
>
> (While trying out, I found that `indent-region' doesn't always indent,
> but its docs (C-h k ESC C-\) tell you how it determines if and to where
> it indents.)
>
> Actually, you can force it to indent using a prefix arg:
>
> C-u 4 C-M-\ ;; indent to 4th column
> C-u 4 C-[ C-\ ;; ditto
> C-u 4 ESC C-\ ;; ditto
>
> Bye,
> Tassilo
>
>
>
My bad ... it seems to do it now ... I apologize for the confusion.
The reason I am trying to avoid the ESC key is that it requires me to
stretch my fingers more :)
Regards,
Kashyap
[-- Attachment #2: Type: text/html, Size: 901 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-07-18 5:30 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-07-17 14:08 M vs C-[ C K Kashyap
2011-07-17 19:05 ` Tassilo Horn
2011-07-18 5:30 ` C K Kashyap
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).