From: "Lennart Borgman (gmail)" <lennart.borgman@gmail.com>
To: sapsi <saptarshi.guha@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Invalid Function while using setq
Date: Sat, 12 Jan 2008 22:12:28 +0100 [thread overview]
Message-ID: <47892D3C.3010607@gmail.com> (raw)
In-Reply-To: <38ee6b8a-abd2-4c44-8fe1-f520b7407b10@s12g2000prg.googlegroups.com>
sapsi wrote:
> Hello,
> I have the following function in my .emacs (or rather Preferences.el
> on Aquamacs)
>
> (defun send-to-R-app ()
> (interactive)
> "Sends the selection to R.App"
> (let ( (myStr2 nil) (mystr nil))(
Remove the last ( above.
> (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)))
next prev parent reply other threads:[~2008-01-12 21:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-12 17:58 Invalid Function while using setq sapsi
2008-01-12 21:12 ` Lennart Borgman (gmail) [this message]
2008-01-14 17:16 ` Joel J. Adamson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47892D3C.3010607@gmail.com \
--to=lennart.borgman@gmail.com \
--cc=help-gnu-emacs@gnu.org \
--cc=saptarshi.guha@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).