[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: |
Stefan Monnier |
Subject: |
Re: Why is `C-M-x' only for top-level defuns? |
Date: |
Wed, 11 Jan 2012 23:05:56 -0500 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.0.92 (gnu/linux) |
> Stefan might be right that it would be difficult to get right - dunno.
> Off the top of my head, however, I'd guess that just going `uplist'
> from point till finding `defface', `defcustom', or `defvar' as the car
> might be good enough.
C-M-x differs from C-x C-e in two aspects:
1- it "guesses" which sexp is meant.
2- it handles defface/defvar/defcustom specially.
IIUC you're only worried about the first partt o the extent that it
prevents you from getting to the second. I.e. what you're after is
a way to get (2) of C-M-x for sexps where (1) currently fails.
I'm not very much in fa vor 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.
Stefan
- 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, 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 <=
- 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
- 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