help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: M vs C-[


From: Tassilo Horn
Subject: Re: M vs C-[
Date: Sun, 17 Jul 2011 21:05:26 +0200
User-agent: Gnus/5.110018 (No Gnus v0.18) Emacs/24.0.50 (gnu/linux)

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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]