(setq mystr (buffer-substring-no-properties (mark) (point)))
(setq myStr2 (replace-regexp-in-string "\"" "'" mystr ) )
(do-applescript (concat "tell application \"R\" \r"
"cmd "
"\"" myStr2 "\""
"\r"
"end tell"
))
) ))
(global-set-key (kbd "A-r")
'send-to-R-app)
When i start emacs, i get this error
`(setq mystr (buffer-substring-no-properties (mark) (point)))' is a
malformed function.
I have no idea why, also if select the code fragement and type M-x
eval-region and then select some code and type M-x send-to-R-app, i
get a similar error
Invalid function setq mystr (buffer-substring-no-properties (mark)
(point)))