[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: |
Drew Adams |
Subject: |
RE: Why is `C-M-x' only for top-level defuns? |
Date: |
Thu, 12 Jan 2012 07:29:12 -0800 |
> > I'm not very much in favor of trying to make (1) smarter because it
> > will make it less uniform. So we could maybe provide a new command
> > half-way between C-x C-e and C-M-x, or maybe change (1) so
> > that it uses the region if active.
>
> (if (use-region-p) (eval-region (region-beginning) (region-end)) ...)
> in `eval-defun' (`C-M-x') would be a nice addition since `eval-region'
> has no own keybinding.
Again, this is not about `eval-region', which _does not redefine_ a face or var
that is already defined. It's about the special behavior provided by
`eval-defun' which does redefine.
And I'm interested in a redefining command/key, not making the user activate the
region around a sub-sexp before asking for redefinition. A command/key can find
the innermost defface etc. surrounding point without any need for the user to
first select it as the region.
- Re: Why is `C-M-x' only for top-level defuns?, (continued)
- Re: Why is `C-M-x' only for top-level defuns?, Juri Linkov, 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?, 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 <=
- 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?, Drew Adams, 2012/01/12
- Re: Why is `C-M-x' only for top-level defuns?, Dave Abrahams, 2012/01/12
Why is `C-M-x' only for top-level defuns?, Stephen J. Turnbull, 2012/01/12