At 05:19 PM 9/7/00 +0100, you wrote:
>Hi,
>
>I have some problems with the latest version of JDE (2.2.3) and Emacs when I
>want to use the menu JDE->New->Class. It will insert all the data in the
>buffer, but does not insert new lines. This makes that everything is
>inserted on one line. I did not have this problem when I used JDE 2.1.6.
>
>All other functions work fine, even inserting a template, like for Session
>Beans, in an existing file gives no problems. I have not a lot of experience
>with emacs, but it seems to me that JDE is misinterpreting the eol features
>(cr-lf versus lf). 
>
>I also did test it using Xemacs and this gives the same problem, so it
>definitely has to do with JDE or one of it's mandatory packages.
>
>The versions I use are:
>
>OS: Windows 2000 Professional - Service Pack 1
>emacs:    GNU Emacs 20.7.1 (i386-*-nt5.0.2195) of Tue Jun 13 2000 on buffy
>semantic 1.2.1
>speedbar 0.12
>the latest elib
>
>I have no problems at startup, compile and everything just works fine if I
>use existing or manually coded files ...
>
>Here is an example of the generated source:
>
>
>// tester}}public tester (){public class tester {*/* @version* @author <a
>href="mailto: "</a>** Created: Thu Sep 07 18:13:40 2000*** tester/**
>

Hi,

JDE->New->Class works on my system (Windows 95/GNU Emacs 20.7.1). The above
is not the default template for the new class buffer. Perhaps you have a
corrupted jde-gen.el file or you have a prj.el file with a corrupted
version of the template. 

You can view the template by typing

M-x customize-variable jde-get-class-buffer-template. It should look like
this:

jde-gen-class-buffer-template: [Hide]
[INS] [DEL] String: (funcall jde-gen-boilerplate-function) 'n
[INS] [DEL] String: "/**" 'n
[INS] [DEL] String: " * "
[INS] [DEL] String: (file-name-nondirectory buffer-file-name) 'n
[INS] [DEL] String: " *" 'n
[INS] [DEL] String: " *" 'n
[INS] [DEL] String: " * Created: " (current-time-string) 'n
[INS] [DEL] String: " *" 'n
[INS] [DEL] String: " * @author " (user-full-name) 'n
[INS] [DEL] String: " * @version" 'n
[INS] [DEL] String: " */" 'n>
[INS] [DEL] String: 'n>
[INS] [DEL] String: "public class "
[INS] [DEL] String: (file-name-sans-extension (file-name-nondirectory
buffer-file-name))
[INS] [DEL] String: " " (jde-gen-get-super-class)
[INS] [DEL] String: 'n
[INS] [DEL] String: "{"> 'n>
[INS] [DEL] String: "public "
[INS] [DEL] String: (file-name-sans-extension (file-name-nondirectory
buffer-file-name))
[INS] [DEL] String: " ()"
[INS] [DEL] String: 'n
[INS] [DEL] String: "{"> 'n>
[INS] [DEL] String: 'p 'n>
[INS] [DEL] String: "}">
[INS] [DEL] String: 'n>
[INS] [DEL] String: 'n>
[INS] [DEL] String: "}">
[INS] [DEL] String: "// "
[INS] [DEL] String: (file-name-sans-extension (file-name-nondirectory
buffer-file-name))
[INS] [DEL] String: 'n>
[INS]
   [State]: you have set this option, but not saved it for future sessions.
Template for new Java class. [More]


>The error I get is:
>
>               Signaling: (error "Cannot find end of balanced expression to
>indent.")
>                 signal(error ("Cannot find end of balanced expression to
>indent."))
>                 error("Cannot find end of balanced expression to indent.")
>                 c-indent-exp()
>                 jde-gen-class-buffer("~/tester")
>                 call-interactively(jde-gen-class-buffer)
>
>My .emacs file is this:
>
>       ;; This .emacs file illustrates the minimul setup
>       ;; required to run the JDE.
>
>       ;; Set the debug option to enable a backtrace when a
>       ;; problem occurs.
>       (setq debug-on-error t)
>
>       ;; Update the Emacs load-path to include the path to
>       ;; the JDE and its require packages. This code assumes
>       ;; that you have installed the packages in the emacs/site
>       ;; subdirectory of your home directory.
>       (add-to-list 'load-path (expand-file-name "c:/usr/jde-2.2.3/lisp"))
>       (add-to-list 'load-path (expand-file-name "~/elisp/semantic-1.2.1"))
>       (add-to-list 'load-path (expand-file-name "~/elisp/speedbar-0.12"))
>       (add-to-list 'load-path (expand-file-name "~/elisp/elib"))
>
>       ;; Tell Emacs to load the entire JDE package at startup (only once).
>       (require 'jde)
>
>       ;; Sets the basic indentation for Java source files
>       ;; to two spaces.
>       (defun my-jde-mode-hook ()
>         (setq c-basic-offset 4))
>
>       (add-hook 'jde-mode-hook 'my-jde-mode-hook)
>
>       ;; Include the following only if you want to run
>       ;; bash as your shell.
>
>       ;; Setup Emacs to run bash as its primary shell.
>       (setq shell-file-name "bash")
>       (setq shell-command-switch "-c")
>       (setq explicit-shell-file-name shell-file-name)
>       (setenv "SHELL" shell-file-name)
>       (setq explicit-sh-args '("-login" "-i"))
>       (if (boundp 'w32-quote-process-args)
>         (setq w32-quote-process-args ?\")) ;; Include only for MS Windows.
>
>If anybody has any idea, please let me know, I would like to use this
>feature again as I did in the past !
>
>       Cor
>
>

Reply via email to