Subject: Re: bug#6893: evaluating `'#'(lambda (b) b)8 ; => 8 with `eval-last-sexp' "C-x C-e" in `emacs-lisp-mode'

From: MON KEY <[email-masked]>
Date: Sat, 21 Aug 2010 20:17:22 -0400

On Sat, Aug 21, 2010 at 6:40 PM, Stefan Monnier
<[email-masked]> wrote:
>> Interactive invocation of `eval-last-sexp' (e.g. "C-x C-e" ) in
>> Emacs-lisp mode buffer for this form:
>
>>  `'#'(lambda (b) b)8
>>  ;=> 8
>
> C-x C-e doesn't evaluate "the expression on the line" but "the last sexp
> before point".

OK.

> The "last-sexp" is just "8" (try C-M-b to see what it is), so whatever
> other sexp you put before won't make any difference.

So what about these?

`'#'8
 ;=> (quote (function 8))

 `#'?\x27?\x23
 ;=> (function 39)

Where did 35 go?

>        Stefan

--
/s_P\