Here's a chunk of code:
(defvar test-string "bla bla bla 10.10.10.10 bla bla bla")
(string-match "[[:digit:]]+\\.[[:digit:]]+\\.[[:digit:]]+\\.[[:digit:]]+" test-string)
(message (match-string 0 test-string))
When I select the entire block it's evaluated correctly (using eval-region
):
10.10.10.10
When I evaluate sequentially (using eval-last-sexp
) I get the following:
bla bla bla 10.1
I've looked at the docs of the respective functions but couldn't find any help.
My Emacs version is GNU Emacs 24.5.1 (x86_64-apple-darwin14.3.0, Carbon Version 157 AppKit 1347.57)
.
eval-current-form-sp
, where does it come from?