Madhu enometh@meer.net writes:
- Helmut Eller m2k5d0spr6.fsf@common-lisp.net :
Wrote on Thu, 25 Sep 2008 08:28:45 +0200:
| * Madhu [2008-09-25 08:00+0200] writes: | |> * 2008-03-13 Helmut Eller heller@common-lisp.net |> | * slime.el (slime-region-for-defun-function): Deleted. |> | (slime-region-for-defun-at-point): Use beginning-of-defun |> | and not beginning-of-sexp. |> |> This breaks multiple use cases when evaluating s-expressions from lisp |> file buffers. | | Which cases?
Heres One case.
#+nil (progn (print 1) (print 2))
Note the progn and each enclosed sexp all begin at column 0
Yeah we all know how Emacs' primitive heuristic for beginning-of-defun is annoying. However, notice that C-M-x is bound to slime-eval-defun, so its failure on the above case is traditionally correct. :-)
You're probably looking for C-x C-e which is bound to slime-eval-last-expression. (It however, doesn't do the DEFVAR reevaluation magic.)
-T.