Re: Help: error ("Given parent class eieio-named is not a class")

2002-07-18 Thread Roland

At 02:03 PM 7/18/02 -0500, Dan Yu Liu wrote:
>hello Roland:
>   I met the similar problem when I install jde in my unix machine.
>finally, i fix my problem by updating my all package to update one
>like
>change your eieio-0.16 to eiei0-0.17:)
>wish it help!

Yes, I update eieio-0.16 to eieio-0.17beta4 and it solved the problem!
Thanks!

Roland




How do I byte-compile without using make?

2002-07-18 Thread Roland

Hello,

I managed to bytecompile the jde files with the built-in compile command. 
But about the ther tools like eieio? I'm on Windows NT, is there a way to 
compile those without using the make file?

Roland




Has jde-open-source.el been integrated into JDE?

2002-07-23 Thread Roland

Hello,

the function jde-show-class-source is not working correctly even after I 
set my source directories:

(setq jde-db-source-directories (quote ("d:/src/java/" 
"d:/src/webapps/sharkfin/Web-inf/classes")))

What is wrong? Do I need to set up etags? What about jde-open-source? I 
found that function in the archives:
http://www.mail-archive.com/jde@sunsite.dk/msg03887.html

Has that already been integrated into jde?

Thanks for any answers...

Roland




Re: Has jde-open-source.el been integrated into JDE?

2002-07-24 Thread Roland

At 08:48 PM 7/23/02 -0400, Javier S. Lopez wrote:
>Roland <[EMAIL PROTECTED]> writes:
>
> > Has that already been integrated into jde?
>Yes, it is call jde-open-class-at-point.
>
>Javier

I can't find that function on my jde(jde-open-class-at-point), it doesn't 
exist here..

Roland




Bug at jde-open-class-at-point

2002-07-24 Thread Roland

After getting it to run:
http://www.mail-archive.com/jde@sunsite.dk/msg03887/jde-open-source.el

I noticed it doesn't work when the point is over a variable name. It only 
works if the point is over the Classname.

Can anyone fix this?

Thanks Roland




Comint exited abnormally with code 129

2004-09-22 Thread Roland Roberts
I searched the list for this and only found one occurrence which
claimed that updating their system made the problem go away.  Well, it
doesn't for me.

I'm a newbie to JDE and Java, too.  Running a program works, but trying
to debug it gives this error.  Here's the content of the debugger
window:

cd ~/work/fvis/drpg/src/fvis/drpg/
/usr/java/j2sdk1.4.2_05/bin/jdb -launch LoadData --home=/home/rroberts/work/fvis/ 
--oracle-user=fvis_drpg --oracle-sid=FVDRPG



Comint exited abnormally with code 129

I'm using JDE 2.3.3; I saw the comment about upgrading to fix the
font-lock problems.  Will it fix this, too?

I can post my entire .emacs, but the relevant parts are

(autoload 'jde-mode "jde" "JDE mode." t)
(setq semantic-load-turn-useful-things-on t)
(add-to-list 'auto-mode-alist
 '("\\.java\\'" . jde-mode))
(defun rbr-jde-mode ()
  (setq jde-db-read-app-args t
c-basic-offset 4
;; Replace TAB with equivalent spaces
indent-tabs-mode nil))
(add-hook 'jde-mode-hook 'rbr-jde-mode)
;; (add-hook 'java-mode-hook
;;  '(lambda nil
;; (define-key java-mode-map "\eg" 'goto-line)
;; (setq c-basic-offset 4
;; indent-tabs-mode nil) ; Replace TAB with equivalent spaces
;;   (add-hook 'local-write-file-hooks 'delete-trailing-whitespace)))

(font-lock-add-keywords
 'jde-mode
 '(("/[*]\\s-*\\<\\(\\(FIXME\\|WARNING\\):[^*]*\\)\\*?" 1 font-lock-warning-face 
t)))
(font-lock-add-keywords
 'jde-mode
 '(("//\\s-*\\<\\(\\(FIXME\\|WARNING\\):[^\n]*\\)\n" 1 font-lock-warning-face t)))

along with this from my .custom.el

(custom-set-variables
  ;; custom-set-variables was added by Custom -- don't edit or cut/paste it!
  ;; Your init file should contain only one such instance.
 '(jde-compile-option-debug (quote ("all" (t nil nil
 '(jde-db-read-app-args t)
 '(jde-run-read-app-args t))
(custom-set-faces
  ;; custom-set-faces was added by Custom -- don't edit or cut/paste it!
  ;; Your init file should contain only one such instance.
 '(font-lock-comment-face class color) (background dark)) (:italic t :bold nil 
:foreground "Green"
 '(font-lock-constant-face class color) (background dark)) (:foreground 
"Aquamarine"
 '(font-lock-function-name-face class color) (background dark)) (:bold t 
:foreground "LightSkyBlue"
 '(font-lock-string-face class color) (background dark)) (:foreground 
"PaleGreen"
 '(font-lock-type-face class color) (background dark)) (:foreground 
"LightSkyBlue"))))
 '(font-lock-warning-face class color) (background dark)) (:bold t :italic t 
:foreground "Red"
 '(highlight ((t (:background "Red"
 '(region ((t (:background "Gray40"
 '(secondary-selection ((t (:background "PaleTurquoise4")

TIA,

roland
-- 
   PGP Key ID: 66 BC 3B CD
Roland B. Roberts, PhD RL Enterprises
[EMAIL PROTECTED]6818 Madeline Court
[EMAIL PROTECTED]   Brooklyn, NY 11220


Java Buffer modified on reading

2004-11-22 Thread Roland Roberts
-BEGIN PGP SIGNED MESSAGE-

When I edit an existing java file, my *Messages* buffer reads

Setting customized JDE variables to startup values...
Fontifying Time_Rule_Type.java... (regexps..)
Setting customized JDE variables to startup values...
eval: 
Wrong type argument: integer-or-marker-p, nil [2 times]
Building Security.java Semantic directory index imenu [2 times]

and the buffer is marked modified.

I've tried moving aside my .custom.el but the problem is not there.
I've compared my .emacs with that on another host where this does not
happen and, if the problem is there, it would take considerable work to
narrow it down due to the unrelated stuff that loads.  What *is*
different between the two is the version of JDEE.  The one with the
problem is the latest download which is 2.3.4,  The one on the host
without the problem is older, but I can't find a version number; the
last ChangeLog entry is 

2003-12-08  Paul Kinnucan  <[EMAIL PROTECTED]>

* jde-util.el: Update jde-find-class-source to work for inner classes.

This is on GNU Emacs 21.3, and I do have the overlay-fix.el loaded, but
the problem does not seem to be affected by that, either.

Any tips on making this go away?
- -- 
   PGP Key ID: 66 BC 3B CD
Roland B. Roberts, PhD RL Enterprises
[EMAIL PROTECTED]6818 Madeline Court
[EMAIL PROTECTED]   Brooklyn, NY 11220

-BEGIN PGP SIGNATURE-
Version: 2.6.3ia
Charset: noconv
Comment: Processed by Mailcrypt 3.5.8, an Emacs/PGP interface

iQCVAwUBQaIkdeoW38lmvDvNAQHZHgQAvA+tNXlL3mqHPoU/wEtwtmZ1AEkARaaz
0/7+WrodGUyNFHtRDtFnEU6tP2vntKlAehJGm1f1Jds6oP39W4zKU2O1NHcajKOK
GvGewHNTVBVPyFUjIlboCxZoHkfDf0Hu/wc9lkzmQB0LqDfuKHmx2eWHRFn6gCRh
FW0HjuJbw2k=
=9HVR
-END PGP SIGNATURE-


Re: JDEbug and static variables

2005-09-23 Thread Roland Roberts
I'm using a freshly installed cedet-1.0pre3 and jde 2.3.5.  I have a
method which, after C-c C-v j looks like below.

/**
 * Describe  method here.
 *
 * @paramvalue
 * @paramvalue
 * @paramvalue
 * @paramvalue
 * @exception  if an error occurs
 */
public static void setModified(Connection con, boolean commit,
   String tableName, Timestamp when)
throws SQLException {
setSomething(con, commit, tableName, when, false);
return;
}


I tried running the fix documentation menubar item, but it just inserts
the same thing, although it also adds an extra @exception line

My .emacs has the following:

(autoload 'jde-mode "jde" "JDE mode." t)
(setq semantic-load-turn-useful-things-on nil
  jde-check-version-flag nil)
(load "cedet")
(defun rbr-jde-mode ()
  (setq jde-db-read-app-args t
c-basic-offset 4
;; Replace TAB with equivalent spaces
indent-tabs-mode nil))
(add-hook 'jde-mode-hook 'rbr-jde-mode)

Any clues on what I need to be doing?

roland
-- 
   PGP Key ID: 66 BC 3B CD
Roland B. Roberts, PhD RL Enterprises
[EMAIL PROTECTED]6818 Madeline Court
[EMAIL PROTECTED]   Brooklyn, NY 11220


JDE javadoc missing

2005-09-23 Thread Roland Roberts
Sorry for double sending, but the last one was mislabled in the subject
and I didn't want it to get ignored for the wrong reasons

Also, I have JDK 1.5 installed.  This was/is working at another site
with 1.4, but I'd have to double check just how fresh my JDE/CEDET
install is there.

I'm using a freshly installed cedet-1.0pre3 and jde 2.3.5.  I have a
method which, after C-c C-v j looks like below.

/**
 * Describe  method here.
 *
 * @paramvalue
 * @paramvalue
 * @paramvalue
 * @paramvalue
 * @exception  if an error occurs
 */
public static void setModified(Connection con, boolean commit,
   String tableName, Timestamp when)
throws SQLException {
setSomething(con, commit, tableName, when, false);
return;
}


I tried running the fix documentation menubar item, but it just inserts
the same thing, although it also adds an extra @exception line

My .emacs has the following:

(autoload 'jde-mode "jde" "JDE mode." t)
(setq semantic-load-turn-useful-things-on nil
  jde-check-version-flag nil)
(load "cedet")
(defun rbr-jde-mode ()
  (setq jde-db-read-app-args t
c-basic-offset 4
;; Replace TAB with equivalent spaces
indent-tabs-mode nil))
(add-hook 'jde-mode-hook 'rbr-jde-mode)

Any clues on what I need to be doing?

roland
-- 
   PGP Key ID: 66 BC 3B CD
Roland B. Roberts, PhD RL Enterprises
[EMAIL PROTECTED]6818 Madeline Court
[EMAIL PROTECTED]   Brooklyn, NY 11220


Re: JDE javadoc missing

2005-09-23 Thread Roland Roberts
As a follow-up, I copied overlay-fix.el into jde/lisp and relaunched
emacs.  I wasn't clear on if this is necessary or not.  I get a
different error with font-lock mode on vs off.  Here is the content of 
*Messages*:

Setting customized JDE variables to startup values...
semantic-edits-incremental-parser-1: 
incremental parser error: "Wrong type argument: number-or-marker-p, nil" [2 
times]
Error during redisplay: (wrong-type-argument integer-or-marker-p nil) [3 
times]
Mark set
Error during redisplay: (wrong-type-argument integer-or-marker-p nil) [3 
times]
jde-javadoc-autodoc-at-line: No tag found at point
Font-Lock mode disabled
jde-javadoc-autodoc-at-line: No tag found at point
jde-javadoc-autodoc-at-line: No tag found at 
pointsemantic-edits-incremental-parser-1: 
incremental parser error: "Wrong type argument: number-or-marker-p, nil" [2 
times]

With font-lock off, I get the same problem as before. With it on, I get
the "No tag found at point" even with C-c C-v j run from several
different points around the declaration.  I have 

   (setq font-lock-support-mode 'jit-lock-mode)

in my .emacs as well (put them after reading that lazy-lock was a bad
idea...).

regards,

roland
-- 
       PGP Key ID: 66 BC 3B CD
Roland B. Roberts, PhD RL Enterprises
[EMAIL PROTECTED]6818 Madeline Court
[EMAIL PROTECTED]   Brooklyn, NY 11220


Re: JDE javadoc missing

2005-09-23 Thread Roland Roberts
Well, I've figured out it's my fault, but I'm not sure where yetI
have a crufty old .emacs which I thought I'd mostly cleared out (a few
months ago, I still had Emacs 18 conditionals in there...).  Now that my
.emacs looks like that below, I have C-c C-v j working.  Now to figure
out what is messing it up


;;; -*- emacs-lisp -*-
;;;
;;; I've finally removed a lot of the cruft that had settled into this
;;; file and it's partner, emacs-init.el.  The latter originated back
;;; with Emacs 18 under VMS running on a VAX 11/780 where I needed to
;;; get as much out of my .emacs as possible in order speed startup.
;;; Since I no longer run Emacs 18, 19, or even 20 anywhere, I"ve tried
;;; to eliminate all the code for those version, and speed (at least
;;; compared to the VAX 11/780 days) is not an issue.
;;;

;;; Anything which is part of load-path at start treats subdirs.el
;;; special and does this automatically, but it doesn't happen when you
;;; add to load-path here.  :-(
(let ((directory-list '("~/tools/share/emacs/site-lisp"))
  default-directory)
  (while directory-list
(setq default-directory (expand-file-name (car directory-list))
  directory-list (cdr directory-list))
(cond ((file-exists-p default-directory)
   (add-to-list 'load-path default-directory)
   (load (expand-file-name "subdirs.el") t t t)

(add-to-list 'Info-default-directory-list (expand-file-name "~/tools/info"))

;;;
;;;  Programming Modes 
;;;
;; I really want an eval-before-load hook to avoid loading this until
;; I actually want to do Java.
;;;(require 'overlay-fix)
(require 'jde)
;;;(autoload 'jde-mode "jde" "JDE mode." t)
(setq semantic-load-turn-useful-things-on t
  jde-check-version-flag nil)
;; (setq semantic-idle-scheduler-max-buffer-size 1024)
(load "cedet")
;; (add-to-list 'auto-mode-alist
;;  '("\\.java\\'" . jde-mode))
(set-default 'indent-tabs-mode nil)
(defun rbr-jde-mode ()
  (setq jde-db-read-app-args t
c-basic-offset 4
;; Replace TAB with equivalent spaces
indent-tabs-mode nil))
(add-hook 'jde-mode-hook 'rbr-jde-mode)
(add-hook 'java-mode-hook
  '(lambda nil
 (define-key java-mode-map "\eg" 'goto-line)
 (setq c-basic-offset 4
   indent-tabs-mode nil) ; Replace TAB with equivalent spaces
 (add-hook 'local-write-file-hooks 'delete-trailing-whitespace)))

(font-lock-add-keywords
 'jde-mode
 '(("/[*]\\s-*\\<\\(\\(FIXME\\|WARNING\\):[^*]*\\)\\*?" 1 
font-lock-warning-face t)))
(font-lock-add-keywords
 'jde-mode
 '(("//\\s-*\\<\\(\\(FIXME\\|WARNING\\):[^\n]*\\)\n" 1 font-lock-warning-face 
t)))

;;;
;;; Keep defcustom stuff separate and let it override the above.
;;;
(setq custom-file (expand-file-name "~/.custom.el"))
(if (file-exists-p custom-file)
(load-file custom-file))


;;;
;;; Local Variables:
;;; comment-column: 48
;;; End:
;;;

-- 
   PGP Key ID: 66 BC 3B CD
Roland B. Roberts, PhD RL Enterprises
[EMAIL PROTECTED]6818 Madeline Court
[EMAIL PROTECTED]   Brooklyn, NY 11220


Re: JDE javadoc missing

2005-09-23 Thread Roland Roberts
It would appear that some code I wrote in 1997 to use tempo.el in
cc-mode is breaking JDE.  The relevant sections are in a file I have
called cctempo.el (adds boilerplate to new C files, provides some
functionality like jde-javadoc-autodoc-at-line to cc-mode) and uses
tempo-user-elements.  Commenting out one line (indicated below) to avoid
adding to tempo-user-elements make everything work:

;;; ... lots of code omitted

(defun cctempo:tempo-user-elements (arg)
  "cctempo elements for cc-mode (C/C++)"
  (cond ((eq arg 'user)
 (format "%-20s" (user-full-name)))
((eq arg 'ifndef-header)
 (let ((tag (mapconcat '(lambda (arg) arg)
   (split-string
(file-name-nondirectory (buffer-file-name)) 
"[^A-Za-z0-9_]")
   "_")))
   (format "#ifndef __%s\n#define __%s\n" tag tag)))
((eq arg 'endif-header)
 (let ((tag (mapconcat '(lambda (arg) arg)
   (split-string
(file-name-nondirectory (buffer-file-name)) 
"[^A-Za-z0-9_]")
   "_")))
   (format "#endif /* __%s */\n" tag tag)))
((eq arg 'function)
 (let (end)
   (save-excursion
 (end-of-defun)
 (beginning-of-defun)
 (if (not (looking-at "{"))
 ""
   (backward-sexp)
   ;; Broken for backward, works fine for forward --- why?
   ;; (re-search-backward "\\s_\\sw")
   (skip-chars-backward "\t\n\r ")
   (setq end (point))
   (backward-sexp)
   (buffer-substring (point) end)
((eq arg 'arglist)
 (let (end)
   (save-excursion
 (end-of-defun)
 (beginning-of-defun)
 (if (not (looking-at "{"))
 ""
   ;; Broken for backward, works fine for forward --- why?
   ;; (re-search-backward "\\s_\\sw")
   (skip-chars-backward "\t\n\r ")
   (setq end (point))
   (backward-sexp)
   (cctempo:format-arglist 
(buffer-substring (1+ (point)) (1- end)))
(t "")))

;; ... more code omitted ...

;; adding these break JDE mode jde-javadoc-autodoc-at-line
(add-to-list 'tempo-user-elements 'cctempo:tempo-user-elements)

I'm now trying to read through tempo to figure out why this breaks
things

regards,

roland
-- 
   PGP Key ID: 66 BC 3B CD
Roland B. Roberts, PhD RL Enterprises
[EMAIL PROTECTED]6818 Madeline Court
[EMAIL PROTECTED]   Brooklyn, NY 11220


Re: JDE javadoc missing

2005-09-23 Thread Roland Roberts
Problem solved.  My tempo-user-elements handler was not doing what
tempo.el says it's supposed to do.  It was returning an empty string
instead of nil when it failed to handle the element.  Changing the last
line of the handler from

(t "")

to 

(t nil)

gets everything to work.

How's that for a latent bug---been sitting there for 8 years

roland
-- 
   PGP Key ID: 66 BC 3B CD
Roland B. Roberts, PhD RL Enterprises
[EMAIL PROTECTED]6818 Madeline Court
[EMAIL PROTECTED]   Brooklyn, NY 11220


context sensitive help

2001-05-07 Thread Roland Zumkeller

Hi,
I'm trying to use JDE's context sensitive help feature for the Java API.
When running C-c C-v C-w ('jde-help-symbol') the status line says:
  "Wrong type argument: stringp, nil"
But nothing else happens. 

I'm using XEmacs 21.4 with cygwin. (I'm not sure about the JDE version,
but it's the one that came with 21.4 from xemacs.org)

Thanks,

- Roland



problem with generating javadoc templates

2001-06-02 Thread Roland Zumkeller

Hi,
I've just installed JDE 2.2.7.1. Most things work fine, but when I try
to use the "generate javadoc"  (jde-javadoc-generate-javadoc-template,
C-c C-v j) feature, this happens:
- it only writes "/**" in front of my code (instead of generating a
whole template)
- thera are these two messages in the mini buffer (and the *Message-Log*
buffer):

  Updating [ O]
  Symbol's function definition is void: deactivate-mark

This is the backtrace:

Signaling: (void-variable mark-active)
  tempo-insert-template(tempo-template-jde-javadoc-describe-class nil)
  jde-javadoc-insert(tempo-template-jde-javadoc-describe-class)
  jde-javadoc-insert-class-desc(nil "MyClass")
  jde-javadoc-type-doc(("public") "class" "MyClass" nil (("MyClass" type
"class" nil nil (...) nil nil #)) nil)
  jde-javadoc-type(("MyClass" type "class" nil nil ((typemodifiers
"public")) nil nil #) nil)
  jde-javadoc-generator(("MyClass" type "class" nil nil ((typemodifiers
"public")) nil nil #))
  #()
  call-interactively(jde-javadoc-generate-javadoc-template)


I'm using XEmacs 21.1.14 under Linux, eieio 0.16, speedbar 0.13 and
semantic 1.4beta6 (I've tried other combinations, though). This is my
whole .emacs file:

  (setq debug-on-error t)
  (add-to-list 'load-path (expand-file-name
"/usr/lib/xemacs/xemacs-packages/lisp/jde-2.2.7.1/lisp"))
  (require 'jde)


[ Another problem that might have to do with this one:
When trying to compile the jde (M-x jde-compile-jde) I get this error:

Compiling file
/usr/lib/xemacs/xemacs-packages/lisp/jde-2.2.7.1/lisp/setnu.el at Sat
Jun  2 16:12:50 2001
  ** The following functions are not known to be defined: 
overlay-put, overlays-in, overlay-get, overlays-at,
overlay-recenter, overlay-lists, overlay-start, overlay-end
]


I'm grateful for any help. It seems that this goes beyond my knowledge
of emacs and lisp programming. :-(

Thanks in advance, :-)

- Roland