Improved `jde-cursor-posn-as-event'

2001-03-19 Thread David Ponce
Hello All, Following is an improved version of latest JDE's function `jde-cursor-posn-as-event'. This function converts the cursor position (point) into an event so the completion menu can pop up at point. This implementation works in XEmacs too :-) and also move the mouse to the cursor

Re: new jde-java-font-lock.el

2001-01-09 Thread David Ponce
Hello, [...] I have reduced my _emacs file to this: (add-to-list 'load-path (expand-file-name "~/site-lisp/jde-2.2.6/ lisp")) (add-to-list 'load-path (expand-file-name "~/site-lisp/speedbar- 0.13a")) (add-to-list 'load-path (expand-file-name "~/site-lisp/elib-1.0")) (add-to-list 'load-path

ANN: updated jde-java-font-lock.el

2001-01-09 Thread David Ponce
Hello All, I submit you my latest work on improving jde-java-font-lock.el. The attached updated version is a major rewrite with the following changes since my previous post. - In XEmacs 'null', 'false', 'true' are treated as constants (were keywords) and 'super', 'this' as keywords (were

Another new version of jde-java-font-lock.el

2001-01-05 Thread David Ponce
'. Please try it :-) Any feedback will be appreciated. Sincerely, David ;;; jde-java-font-lock.el -- Extra level font locking for java ;; Copyright (C) 1998, 1999, 2000, 2001 by David Ponce ;; Author: David Ponce [EMAIL PROTECTED] ;; Maintainer: David Ponce [EMAIL PROTECTED] ;;

New jde-java-font-lock.el

2001-01-04 Thread David Ponce
). Please try it :-) Any feedback will be appreciated. Sincerely, David ;;; jde-java-font-lock.el -- Extra level font locking for java ;; Copyright (C) 1998, 1999, 2000, 2001 by David Ponce ;; Author: David Ponce [EMAIL PROTECTED] ;; Maintainer: David Ponce [EMAIL PROTECTED] ;; Paul

ANN: senator version 2.1 available

2001-01-03 Thread David Ponce
Hello All, A new senator version 2.1 is available at http://www.dponce.com/more-elisp.html. Summary of changes since version 2.0. - Fixed a nasty typo in `senator-minor-mode'. `run-hooks' were missing a quotation before their arguments. Thanks to "Charles Rich" [EMAIL PROTECTED] who has

Re: Xemacs support for jde-imenu-complete.el

2000-12-18 Thread David Ponce
Hello, In the attached version of jde-complete.el (taken from JDE 2.2.6beta7) I reimplemented the Emacs specific `jde-complete-popup-emacs-completion-menu' as a new generic `jde-complete-popup-completion-menu' that should work both on Emacs and XEmacs. It works for me with Emacs 20.7, 21.0 and

Re: AW: JDE and EIEIO

2000-12-17 Thread David Ponce
Hello, [EMAIL PROTECTED] wrote: [...] Paul, could you please do all the tests you think they are necessary and then removing all the eieio-stuff from the JDE-distribution but instead adding the EIEIO to the requirements list like semantic!? This would really be nice!! [...] Yes this would

Updated senator 2.0 available

2000-12-15 Thread David Ponce
Hello All, The latest bug fix release of the SEmantic NAvigaTOR 2.0 library is available at http://www.dponce.com/more-elisp.html. Summary of changes: - `senator-mark-defun' now work on XEmacs too. - Fixed a "side effect" bug with latest `beginning-of-defun' and `end-of-defun' advices.

Re: senator 2.0

2000-12-11 Thread David Ponce
Hello, The problem is that the advices work only if the functions are called interactively. Please, replace the advices in senator.el by the following ones. They should work with `narrow-to-defun' now. (defadvice beginning-of-defun (around senator activate) "If semantic tokens are available,

Re: senator 2.0

2000-12-11 Thread David Ponce
Hello, [...] I haven't quite gotten senator to work properly. The senator-next- token does only seem to work correctly when in senator-minor-mode. Otherwise it doesn't continue when it gets to the beginning of a token. senator-previous- token OTOH works both with and without the minor mode

Re : RE: JDE 2.2.6beta7 available

2000-11-27 Thread David Ponce
Hello, Pressing M-C-e at the beginning of the buffer or pressing M-C-a at the beginning of the first method freezes the computer (uses all available CPU power) for quite some time, especially with large buffers. Maybe there is a workaround for this? Attached senator-1.5.zip file contains

Re: IMenu method sorting pb with 226B6 + fixes

2000-11-24 Thread David Ponce
Hello, The attached file jde-fixes.zip contains fixed versions of: jde.el - added (autoload 'ange-ftp-ftp-name "ange-ftp") before `jde-root-dir-p' defun to fix error in `jde-mode' when ange-ftp not yet loaded (ange-ftp-ftp-name not defined). jde-imenu.el - `jde-imenu-sort'

Re: FW: Improved command to organize import statements

2000-11-17 Thread David Ponce
Hello Jeff, Thank you again for your feedback :-) I made a new version jde-import-org.el attached here. It contains the following changes: - New `jde-import-group-function' option to specify the function used to associate import token to group. The default one is `jde-import-group-of'.

Re: Re[1]: Navigating Java functions?

2000-11-15 Thread David Ponce
Hello Eric, [...] As a side note, I also discovered `beginning-of-defun-function' and `end-of-defun-function', which are documented like this: [...] Very interesting but it seems that these variables do not exist in Emacs 20.7. What version of Emacs are you using? Sincerely, David

RE: Improved command to organize import statements

2000-11-15 Thread David Ponce
Hello Jeff, [...] My feedback: I would like an option to not specify groups, and have it automatically insert the line break on changes in the first two sections of the package/domain. e.g. com.a.b com.a.c.d com.c.d com.x.y com.x.z java.x.y mno.g.h.i would

Re: Re: Navigating Java functions?

2000-11-14 Thread David Ponce
Hello, Here is a new version of SEmantic NAvigaTOR with improved navigation in semantic token where to step at start and end. - `senator-next-token' move the point to the end of token if it was at beginning or in the middle of the token. - `senator-previous-token' move the point to the

Re: Re[1]: Navigating Java functions?

2000-11-14 Thread David Ponce
John Cooper [EMAIL PROTECTED] seems to think that: "David Ponce" [EMAIL PROTECTED] writes: Here is a new version of SEmantic NAvigaTOR with improved navigation in semantic token where to step at start and end. - `senator-next-token' move the point to the end of token if i

Re: Navigating Java functions?

2000-11-10 Thread David Ponce
Hello All, The attached library senator.el (SEmantic NAvigaTOR) defines the commands `senator-next-token' and `senator-previous-token' to navigate between language semantic tokens in current buffer. It uses Eric Ludlam's semantic bovinator tool (version 1.3.1) to parse the buffer and find the

RE : RE: Improved command to organize import statements

2000-11-10 Thread David Ponce
Hello, Maybe it would be a good idea to let the user specify the regexps directly in jde-imports-groups. That way a string like "javax?." would match both the "java.*" and "javax.*" classes and order them in the same group. This is a very good idea :-) The following redefines

Improved command to organize import statements

2000-11-08 Thread David Ponce
Hello All, The attached file impgroup.el contains the command `jde-order-imports' which organize the import statements of the Java source in the current buffer. Imports are organized into groups defined by `jde-imports-groups'. Groups are inserted in the order specified by `jde-imports-groups'.

A command to kill extra import statements

2000-10-29 Thread David Ponce
Hello All, The attached file impkillx.el contains the command `jde-kill-extra-imports' which kills extra Java import statements. C-u M-x jde-kill-extra-imports comments out extra imports instead of killing them. The command removes import duplicates. If a global package import exists all the

Re: cosmetic flaw in jde-sort-imports

2000-10-27 Thread David Ponce
Hello all, jde-sort-imports marks the buffer as changed even if there are no visible changes (changed order in imports) in the buffer. Attached is a completely new `jde-sort-imports' command with the following enhancements: * If imports are already sorted the buffer is left unchanged. *

Bud in JDE 2.2.6beta1 (jde-wiz.el)

2000-10-23 Thread David Ponce
Hello Paul, I found a bug in the JDE 2.2.6beta1: The jde-sort-imports command is broken. The line 143 of jde-wiz.el must be changed from: (let* ((tokens (semantic-bovinate-toplevel nil nil t)) to: (let* ((tokens (semantic-bovinate-toplevel t)) to be compatible with semantic-1.3.1 API.

Re: semantic 1.3 and speedbar 0.13

2000-10-06 Thread David Ponce
Hello All, The JDE 2.2.4 does not work with semantic 1.3 because of semantic API change. I sent updates to Paul to fix this compatibility problem and improve JDE's use of new semantic 1.3 features. May be these changes will be included in the next realease of the JDE? Sincerely, David

[Fwd: font-lock-add-keywords]

2000-10-06 Thread David Ponce
Hello All, Maybe someone could help Ray. I am not an XEmacs user. It seems that the `font-lock-add-keyword' function does not exist in XEmacs 21. Thank you in advance for any help. Sincerely, David Hi David, Thanks for all your efforts on the JDE additions. I admire your skills! I am

Re: Bug in the java-Parser with semantic bovinator

2000-08-16 Thread David Ponce
Hello, It works fine for me with JDE 2.2.2 - NT Emacs 20.7.1 - semantic 1.2.1. I seems the parser does not work when case-fold-search value is non nil (that is searches and matches should ignore case). Hope this helps. Sincerely, David [EMAIL PROTECTED] wrote: Hello, this is not a bug

Re: Re: Bug in the java-Parser with semantic bovinator

2000-08-16 Thread David Ponce
I think it would be nice if one could specify that a bovinator grammar is case sensitive or not. Maybe an option in the BNF file? Sincerely, David I seems the parser does not work when case-fold-search value is non nil (that is searches and matches should ignore case).

Re: Sorting the Classes imenu

2000-06-28 Thread David Ponce
-parts' ;;; functions by the above code in jde-parse.el to add customizable ;;; sort facilities to the JDE Classes imenu. ;;; ;;; David Ponce [EMAIL PROTECTED] ;;; (defcustom jde-imenu-index-sort nil "If non-nil sorts items in the classes index menu. You can choose: - - 'asc to sort by token

ANNOUNCE: jdok.el 1.11 final is available

2000-06-09 Thread David Ponce
Hello All, The final version of jdok.el 1.11 is downloadable from http://www.dponce.com/. Here are the changes since previous version (1.9): 2000-06-09 David Ponce [EMAIL PROTECTED] * jdok.el: Version 1.11 released. FIXED: When methods/constructors contains a "

Re: Classes menu not parsing all combinations correctly

2000-06-08 Thread David Ponce
Mike Bowler wrote: JDE 2.1.6 final / NT Emacs 20.6 / Windows NT 4.0 Some methods are still not showing up in the classes menu. The code below shows which combinations of modifiers are being parsed correctly and which ones aren't. Mike [EMAIL PROTECTED] == public

The Classes imenu don't display final methods

2000-06-07 Thread David Ponce
Hello, The Classes imenu does not display methods with final modifier. It seems that the variable `jde-parse-bovine-java-grammar' in jde-parse.el is not consistent with the java grammar defined in java.bnf. I have compiled java.bnf using `semantic-bnf-to-bovine' and replaced the

Re: jde-create-imenu-index

2000-06-06 Thread David Ponce
Hello, Attached is an improved advised version `jde-create-imenu-index' and `jde-imenu-index-class' which displays full method signatures in the "Classes" imenu depending on the setting of the customizable option `jde-enable-full-method-signatures-index-menu'. Sincerely, David [EMAIL

Re: jde-create-imenu-index

2000-06-05 Thread David Ponce
Hello, Ittay Freiman wrote: Hello, I've been using imenu for some time. It is a great package except for one thing: It doesn't handle overloaded methods. This means that in the listings (either menu / completion) I just see the method name, without the signature of its parameters. Can

Re: ANNOUNCE: jde-import 1.1

2000-05-31 Thread David Ponce
Hello, Here is a command to sort Java import statement which use the semantic parser table provided since JDE 2.1.6 beta 24. (defun my-jde-sort-imports (optional reverse) "Sort Java import statements alphabetically. In reverse order if REVERSE is non-nil. Usage: \\[my-jde-sort-imports]

Re: bug in classes menu

2000-05-24 Thread David Ponce
Hello, In addition I noticed that the Rescan option doesn't seem to work, is Yes, this appears to be a bug. I'm investigating. It seems that an argument is missing in the call to semantic-bovinate-toplevel in the jde-create-imenu-index function (jde-parse.el). Here is the patch I have

ANNOUNCE: jdok 1.11 beta

2000-05-12 Thread David Ponce
n previous versions of jdok are no more used. So jdok templates must be customized again (sorry for the inconvenience). You feedback will be welcome. Sincerely, David ;; jdok.el --- Javadoc template generator ;; Copyright (C) 1998, 2000 by David Ponce ;; Author: David Ponce [EMAIL

Jdok 1.10 beta

2000-04-26 Thread David Ponce
, following-char, eobp and looking-at builtins. I hope it will continue to work with XEmacs. It works well for me with NT Emacs 20.6.1 and Solaris Emacs 20.6.1. Any feedback will be welcome. Sincerely, David ;; jdok.el --- Javadoc template generator ;; Copyright (C) 1998, 2000 by David Ponce ;; Author

ANNOUNCE: jdok 1.9 beta3 available

2000-04-13 Thread David Ponce
Hello All, jdok 1.9 (beta3) is available at http://www.dponce.com/ Summary of changes since beta2 * XEmacs compatibility changes: Specialized functions now handle insertion of @param, @exception and @see tag and does nothing if a tag value is "" (split-string different behaviour between

ANNOUNCE: jjar 1.7 beta available!

2000-04-12 Thread David Ponce
Hello All, The first beta version of jjar 1.7 can be downloaded from http://www.dponce.com/. This library provides commands to create or update (since JDK 1.2) a Java ARrchive files (.jar). Summary of changes since previous version: * Mainly a new improved file selection scheme. The files to

Re: Previous/Next Method?

2000-04-12 Thread David Ponce
Lance Johnston wrote: Does JDE provide a "move the cursor to previous/next method" type of function? I've looked around some, but can't seem to find anything. Hello, I use the following commands, based on font-lock-mode, to move the cursor to previous/next method: (defun

ANNOUNCE: jdok 1.9 (beta) available!

2000-04-10 Thread David Ponce
Hello All, The first beta version of jdok 1.9 can be downloaded from http://www.dponce.com/. Summary of changes since 1.8: - Mainly, this new version can now generate javadoc block comment template for the class or interface at point :-) - I have done some code cleanup too, and jdok 1.9 no

ANNOUNCE: New version of jmaker available

2000-03-31 Thread David Ponce
Hello All, A new version of jmaker.el is available at http://www.dponce.com. This JDE add-on defines a command that generates a makefile with targets to compile all Java source files in the current directory. You can use the JDE build command or the Emacs compile command to run the generated