[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Why is `C-M-x' only for top-level defuns?
From: |
Juri Linkov |
Subject: |
Re: Why is `C-M-x' only for top-level defuns? |
Date: |
Thu, 12 Jan 2012 02:11:42 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (x86_64-pc-linux-gnu) |
> (when twillig-&-the-tithy-toves-do-tyre-&-timble-in-the-twabe
> (defface ...))
>
> Currently, in order to make `C-M-x' work for such a "defun" I temporarily move
> its first line to column 1 and then hit `C-M-x'. Seems like a silly
> workaround,
> but I don't know of a better one.
Without editing the buffer, you could narrow to the inner expression
with e.g. `C-M-SPC C-x n n' and use `C-M-x'.
But then you might ask why `C-x n d' (`narrow-to-defun') narrows to the
top-level expression, and not to the innermost defface, defcustom etc. ;-)
- Why is `C-M-x' only for top-level defuns?, Drew Adams, 2012/01/11
- Re: Why is `C-M-x' only for top-level defuns?, Thien-Thi Nguyen, 2012/01/11
- Re: Why is `C-M-x' only for top-level defuns?,
Juri Linkov <=
- RE: Why is `C-M-x' only for top-level defuns?, Drew Adams, 2012/01/11
- Re: Why is `C-M-x' only for top-level defuns?, Stefan Monnier, 2012/01/11
- Re: Why is `C-M-x' only for top-level defuns?, Daniel Colascione, 2012/01/11
- RE: Why is `C-M-x' only for top-level defuns?, Drew Adams, 2012/01/11
- Re: Why is `C-M-x' only for top-level defuns?, Stefan Monnier, 2012/01/11
- Re: Why is `C-M-x' only for top-level defuns?, Daniel Colascione, 2012/01/11
- Re: Why is `C-M-x' only for top-level defuns?, Thierry Volpiatto, 2012/01/12
- RE: Why is `C-M-x' only for top-level defuns?, Drew Adams, 2012/01/12
- Re: Why is `C-M-x' only for top-level defuns?, Juri Linkov, 2012/01/12
- RE: Why is `C-M-x' only for top-level defuns?, Drew Adams, 2012/01/12