unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Matthew Flaschen <matthew.flaschen@gatech.edu>
Cc: emacs <help-gnu-emacs@gnu.org>
Subject: Re: Compile then run in JDE
Date: Mon, 29 Jan 2007 19:43:03 -0500	[thread overview]
Message-ID: <45BE9497.9050709@gatech.edu> (raw)
In-Reply-To: <45BB067F.1000205@gatech.edu>

[-- Attachment #1: Type: text/plain, Size: 1440 bytes --]

Anyone have any ideas about this?

Thanks,

Matthew Flaschen

Matthew Flaschen wrote:
> I've been trying to make a compile then run command for JDE.  I.E. a
> single command which would save, compile, then run.  For now, I've just
> been testing with a single file.
> 
> I've been unable to get it to run after the compile.  I got it to:
> 
> (defun java-compile-then-run ()
> "Saves, compiles and runs the current buffer, using JDE"
> (interactive)
> (basic-save-buffer)
> (save-current-buffer
>   (jde-compile))
> (jde-run))
> 
> That gives me the attached errors, starting with "Wrong number of
> arguments" (Sorry, I couldn't figure out how to escape the error for
> copying text).  I copied that from the *Messages* buffer.  To isolate
> the problem, I simplified the function to:
> 
> (defun java-compile-then-run ()
> "Saves, compiles and runs the current buffer, using JDE"
> (interactive)
> (jde-run))
> 
> 
> To my surprise, it gave the same error.  The command jde-run works, but
> java-compile-then-run results in the "Wrong number of arguments
> exception.  Can anyone explain this? At the very least I would like to
> get the dummy (second) function working.
> 
> Matthew Flaschen
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> help-gnu-emacs mailing list
> help-gnu-emacs@gnu.org
> http://lists.gnu.org/mailman/listinfo/help-gnu-emacs


[-- Attachment #2: emacsargerror.png --]
[-- Type: image/png, Size: 9845 bytes --]

[-- Attachment #3: Type: text/plain, Size: 152 bytes --]

_______________________________________________
help-gnu-emacs mailing list
help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

      reply	other threads:[~2007-01-30  0:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-27  7:59 Compile then run in JDE Matthew Flaschen
2007-01-30  0:43 ` Matthew Flaschen [this message]

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=45BE9497.9050709@gatech.edu \
    --to=matthew.flaschen@gatech.edu \
    --cc=help-gnu-emacs@gnu.org \
    /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).