emacs-devel
[Top][All Lists]
Advanced

[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. ;-)



reply via email to

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