Re: JDEbug and static variables
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
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
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
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