V% and c-x c-e

Vegard Øye vegard_oye at hotmail.com
Mon Aug 30 22:30:18 CEST 2010


On 2010-08-30 19:02, Marc Weber wrote:

> Is it intentional that when selecting 
> 
> (message
>   "arg")
> 
> using V% (on a parenthesis) that this only works top-down, but not
> bottom up? Bottom up leads to parse error or such.

C-x C-e (`eval-last-sexp') evaluates the S-exp before point.
To evaluate the Visual selection, use `eval-region'. E.g.,

    (global-set-key "\C-x\C-e" 'eval-region)

-- 
Vegard



More information about the implementations-list mailing list