unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Why is `C-M-x' only for top-level defuns?
@ 2012-01-11 17:06 Drew Adams
  2012-01-11 21:34 ` Thien-Thi Nguyen
                   ` (2 more replies)
  0 siblings, 3 replies; 21+ messages in thread
From: Drew Adams @ 2012-01-11 17:06 UTC (permalink / raw)
  To: emacs-devel

There is likely a good reason for this, but I'll still pose the question, to
learn.

Why not let `C-M-x' re-evaluate a "defun" (defcustom, defface, etc.) that is not
necessarily at top level?  E.g., with point on, say, `defface' in this sexp, why
shouldn't `C-M-x' redefine the face?

(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.  Am I missing something?




^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2012-01-12 16:56 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-11 17:06 Why is `C-M-x' only for top-level defuns? Drew Adams
2012-01-11 21:34 ` Thien-Thi Nguyen
2012-01-11 22:22   ` Drew Adams
2012-01-12  0:11 ` Juri Linkov
2012-01-12  0:36   ` Drew Adams
2012-01-12  1:27     ` Stefan Monnier
2012-01-12  2:40       ` Daniel Colascione
2012-01-12  3:42         ` Drew Adams
2012-01-12  4:05           ` Stefan Monnier
2012-01-12  4:15             ` Daniel Colascione
2012-01-12  6:34             ` Thierry Volpiatto
2012-01-12 15:29               ` Drew Adams
2012-01-12 10:30             ` Juri Linkov
2012-01-12 15:29               ` Drew Adams
2012-01-12 15:21             ` Drew Adams
2012-01-12 16:25               ` Drew Adams
2012-01-12 16:52                 ` Dave Abrahams
2012-01-12  5:23 ` Stephen J. Turnbull
2012-01-12 15:29   ` Drew Adams
2012-01-12 16:47     ` Stephen J. Turnbull
2012-01-12 16:56       ` Dave Abrahams

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

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