Re: WELCOME to jde@sunsite.dk

2004-12-15 Thread Abner Ballardo Urco
hi,

I have a problem, when I open a java file (C-x C-f file.java) jde starts
ok. I can see the classes,jde,java,jdb,senator menus, and the sintax
highlight works fine but when I open another file (C-x C-4 f or C-x C-5
f) I only see the jde,java,jdb menus and the sintax highlight doesn't
work. 

I was searching the web but I cannot find something to fix this, any
suggestions are welcome. I think it is something with emacs

This is what I use:
Emacs 21.3+1-8
JDE 2.3.3-2
Debian Sarge

thanks,

P.D.: sorry for my bad english

-- 
Abner Ballardo Urco

-
"Un informatico es alguien que soluciona un problema que nunca creiste
tener de una manera que nunca entenderas" - Anonimo
-

Fingerprint: 1024D/450EDFF0:E928 1E16 C9E6 1F2F 4D2E  9E33 ADBF BE90
450E DFF0


signature.asc
Description: Esta parte del mensaje =?ISO-8859-1?Q?est=E1?= firmada	digitalmente


Problems using jde-ant-build with spaces in ant home

2004-12-15 Thread Troy Daniels
Please enter the details of your bug report here
I'm having problems running ant with jde-ant-build.  If I set
jde-ant-invocation-method to "Script", it works fine.  The head of the
compilation buffer is below.  Note that the value of ant.home is quoted.
cd 
d:/Jaguar/dev/logging_reorg/KBR_ISD_VOB/Jaguar_Plan_Generator_Component/source/Utilities/com/alphatech/kbr/jaguar/logging/
ant -Dant.home="d:/Program Files/apache-ant-1.6.2" -buildfile 
'd:/Jaguar/dev/logging_reorg/KBR_ISD_VOB/Jaguar_Plan_Generator_Component/source/Utilities/build.xml' 
-emacs

If I set it to "Ant Server", I get the following in the compilation
buffer.  Note that ant.home is not quoted.  Looking at the lisp files,
it appears that quotes are first added then removed.
AntServer output:
 -Dant.home=d:/Program Files/apache-ant-1.6.2 -buildfile 
d:/tdaniels_view/EBO/build.xml -emacs
Buildfile: d:\tdaniels_view\EBO\build.xml

BUILD FAILED
Target `Files/apache-ant-1.6.2' does not exist in this project.
Lastly, if I set jde-ant-invocation-method to "Java", I get this.
Here, we have a mixture of single and double quotes.  Somehow, the
double quote and space between ant.home's value and the Main class is
interpreted as a space but not a break between paraemeters.2
c:/j2sdk1.4.1_03/bin/java.exe -classpath 'd:/Program 
Files/apache-ant-1.6.2/lib;c:/j2sdk1.4.1_03/lib/tools.jar' 
-Dant.home="d:/Program Files/apache-ant-1.6.2" org.apache.tools.ant.Main 
-buildfile 
'd:/Jaguar/dev/logging_reorg/KBR_ISD_VOB/Jaguar_Plan_Generator_Component/source/Utilities/build.xml' 
-emacs
java.lang.NoClassDefFoundError: Files/apache-ant-1/6/2 
org/apache/tools/ant/Main

If it matters, I'm running with the CVS version, not the beta listed 
below.  I launch emacs from a cygwin bash shell.

Emacs  : GNU Emacs 21.2.1 (i386-msvc-nt5.0.2195)
 of 2002-03-19 on buffy
Package: JDE version 2.3.4beta6
Required packages: cedet-1.0beta2
current state:
==
(setq
 jde-gen-session-bean-template '("(jde-import-insert-imports-into-buffer "
 "  (list \"javax.ejb.*\""
 "\"java.rmi.RemoteException\"))" "'>"
 "(jde-wiz-update-implements-clause \"SessionBean\")" "'>" 
"(jde-gen-method-signature" "  \"public\"" "  \"void\"" "  \"ejbActivate\"" 
"  nil" "  \"RemoteException\"" " )" "'>" "(if jde-gen-k&r " " ()" " 'n)" 
"\"{\"'>'n" "\"}\"'>'n 'n" "(jde-gen-method-signature" "  \"public\"" 
"  \"void\"" "  \"ejbPassivate\"" "  nil" "  \"RemoteException\"" " )" "'>" 
"(if jde-gen-k&r " " ()" " 'n)" "\"{\"'>'n" "\"}\"'>'n 'n" 
"(jde-gen-method-signature" "  \"public\"" "  \"void\"" "  \"ejbRemove\"" 
"  nil" "  \"RemoteException\"" " )" "'>" "(if jde-gen-k&r " " ()" " 'n)" 
"\"{\"'>'n" "\"}\"'>'n 'n" "(jde-gen-method-signature" "  \"public\"" 
"  \"void\"" "  \"setSessionContext\"" "  \"SessionContext ctx\"" 
"  \"RemoteException\"" " )" "'>" "(if jde-gen-k&r " " ()" " 'n)" 
"\"{\"'>'n" "\"}\"'>'n 'n" "(jde-gen-method-signature" "  \"public\"" 
"  \"void\"" "  \"unsetSessionContext\"" "  nil" "  \"RemoteException\"" " 
)" "'>" "(if jde-gen-k&r " " ()" " 'n)" "\"{\"'>'n" "\"}\"'>'n 'n" "'>")
 jde-gen-beep '("(end-of-line) '&"
		"\"Toolkit.getDefaultToolkit().beep();\"'>'n'>")
 jde-complete-signature-display '("Eldoc")
 jde-project-name "default"
 jde-wiz-toString-code-EOL '("Unix")
 jde-which-method-format '("[" jde-which-method-current "]")
 jde-run-classic-mode-vm nil
 jde-complete-unique-method-names nil
 jde-find-granularity '("Character")
 jde-which-method-max-length 20
 jde-javadoc-gen-nodeprecatedlist nil
 jde-imenu-include-classdef t
 jde-javadoc-gen-link-online nil
 jde-complete-display-result-type t
 jde-gen-code-templates '(("Get Set Pair" . jde-gen-get-set)
			  ("main method" . jde-gen-main-method)
			  ("toString method" . jde-gen-to-string-method)
			  ("Deep clone" . jde-gen-deep-clone)
			  ("Action Listener" . jde-gen-action-listener)
			  ("Change Listener" . jde-gen-change-listener)
			  ("Window Listener" . jde-gen-window-listener)
			  ("Mouse Listener" . jde-gen-mouse-listener)
			  ("Mouse Motion Listener" .
			   jde-gen-mouse-motion-listener)
			  ("Inner Class" . jde-gen-inner-class)
			  ("println" . jde-gen-println)
			  ("beep" . jde-gen-beep)
			  ("property change support" .
			   jde-gen-property-change-support)
			  ("EJB Entity Bean" . jde-gen-entity-bean)
			  ("EJB Session Bean" . jde-gen-session-bean))
 jde-gen-cflow-else '("'> \"else\""
		  "(jde-gen-electric-brace jde-gen-conditional-padding-3)"
		  "'r'n" "\"}\"" "(if jde-gen-comments "
		  " '(l \" // end of else\"))" "'>'n")
 jde-jdk-registry '(("1.3.1" . "d:/Program Files/jdk1.3.1_06")
		("1.4.1" . "c:/j2sdk1.4.1_03")
		("1.4.2" . "c:/j2sdk1.4.2_04"))
 jde-javadoc-gen-destination-directory "JavaDoc"
 jde-mode-line-format '("-" mode-line-mule-info mode-line-modified
			mode-line-frame-identification
			mode-line-buffer-identification " " global-mode-string
			" %[(" mode-name mode-line-process minor-mode-alist
			"%n" ")%]--" (line-number-mode "L%l--")
	

Re: jde-build suggestion: use C-u for args

2004-12-15 Thread Jens Lautenbacher
On Wed, 2004-12-15 at 17:29 +0100, Kai Grossjohann wrote:
> I suggest that C-u C-c C-v C-b invert the meaning of the
> jde-read-{make,ant}-args flag.
> 
> I often want to issue the same build command, but sometimes a
> different one.  So I set jde-read-make-args to t, but now I have to
> press an extra key in 99% of the build invocations: C-c C-v C-b RET.
> 
> What do people think?

That's the way to go and in line with usual emacs conventions

jtl


signature.asc
Description: This is a digitally signed message part


jde-build suggestion: use C-u for args

2004-12-15 Thread Kai Grossjohann
I suggest that C-u C-c C-v C-b invert the meaning of the
jde-read-{make,ant}-args flag.

I often want to issue the same build command, but sometimes a
different one.  So I set jde-read-make-args to t, but now I have to
press an extra key in 99% of the build invocations: C-c C-v C-b RET.

What do people think?

Kai



RE: Auto-format code to width <= 80

2004-12-15 Thread Michael Schupp


Mark Hansen once wrote:
> Thanks for everyone's help with this.  I'd like to get this "warning
> face" working on columns > 80.  I've tried this suggestion, but nothing
> is happening.  Below is my .emacs.  If anyone can see anything wrong,
> I'd appreciate the help.  (I'm kind of a newbie with customizing my
> emacs - have been using it "out of the box" for years, so sorry for
> bother this list again) ...
>

<.. .emacs snipped ..>

well, you could drop this in [apologies for extremely hacked version
of former reasonable elisp]:

(defun my-font-lock-max-width()
 "Adds a 80 character line-width"
 (font-lock-add-keywords nil '(("\\(.\\{80\\}\\)\\(.+\\)"
 2 font-lock-warning-face nil
(add-hook 'font-lock-mode-hook 'my-font-lock-max-width)





--

michael schupp
+44.[0].20.754.50621




--

This e-mail may contain confidential and/or privileged information. If you are 
not the intended recipient (or have received this e-mail in error) please 
notify the sender immediately and destroy this e-mail. Any unauthorized 
copying, disclosure or distribution of the material in this e-mail is strictly 
forbidden.



RE: Auto-format code to width <= 80

2004-12-15 Thread Mark D. Hansen
Thanks for everyone's help with this.  I'd like to get this "warning
face" working on columns > 80.  I've tried this suggestion, but nothing
is happening.  Below is my .emacs.  If anyone can see anything wrong,
I'd appreciate the help.  (I'm kind of a newbie with customizing my
emacs - have been using it "out of the box" for years, so sorry for
bother this list again) ...

;; required by jdee
(load-file "/usr/share/emacs/site-lisp/cedet-common/cedet.el")

;; for all modes
;; display column numbers
(setq column-number-mode t)
;; no more than 80 columns
(setq-default fill-column 80)

; Tell emacs to use sgml/xml mode for the following file types.
(setq auto-mode-alist
(append
'(("\\.wsdd" . xml-mode)
  ("\\.wsdl" . xml-mode)
  ("\\.xsl" . xml-mode)
  ("\\.xsd" . xml-mode))
auto-mode-alist))

  (setq auto-mode-alist
  (append '(("\.sgml$"  . sgml-mode))
auto-mode-alist))

;; use xxml.el to get colors working in XML files
(autoload 'xxml-mode-routine "xxml")
(add-hook 'sgml-mode-hook 'xxml-mode-routine)

;; put all semantic.cache in same place
(setq semanticdb-default-save-directory "/home/mhansen/.semantic.d")

;; jdee customizations
(setq user-mail-address "[EMAIL PROTECTED]")

;; highlight (my warning face is red)
;; the part of lines that extend past 80 characters using this:

(defun my-font-lock-prepends (mode)
 "Adds a 80 character line-width"
 (font-lock-add-keywords
  mode
  '(("\\(.\\{80\\}\\)\\(.+\\)"
 2 font-lock-warning-face prepend

(my-font-lock-prepends 'jde-mode)

;; mozilla as standard browser
(setq browse-url-default-browser "mozilla")

;; keyboard bindings like a PC
(pc-selection-mode)

(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.
 '(auto-raise-tool-bar-buttons t t)
 '(auto-resize-tool-bars t t)
 '(auto-revert-mode nil t)
 '(auto-save-file-format t t)
 '(c-basic-offset 2)
 '(c-ignore-auto-fill (quote (string cpp)))
 '(case-fold-search t)
 '(column-number-mode t)
 '(current-language-environment "English")
 '(debug-on-error nil)
 '(debug-on-signal nil t)
 '(debugger (quote debug) t)
 '(edebug-all-defs nil t)
 '(edebug-all-forms nil t)
 '(fill-column 80)
 '(generated-autoload-file "loaddefs.el" t)
 '(global-font-lock-mode t nil (font-lock))
 '(jde-ant-args "-emacs")
 '(jde-ant-build-hook (quote (jde-compile-finish-kill-buffer
jde-compile-finish-refresh-speedbar
jde-compile-finish-flush-completion-cache)))
 '(jde-ant-enable-find t)
 '(jde-ant-home "$ANT_HOME")
 '(jde-ant-program "/home/mhansen/bin/ant-jde")
 '(jde-ant-read-target t)
 '(jde-auto-parse-buffer-interval 60)
 '(jde-auto-parse-max-buffer-size 50)
 '(jde-build-function (quote (jde-ant-build)))
 '(jde-global-classpath (quote ("/mnt/z/book/build/classes")))
 '(jde-sourcepath (quote ("/mnt/z/book/src" "/mnt/z/book/samples"
"/mnt/z/book/build/src")))
 '(mouse-wheel-mode t nil (mwheel))
 '(sgml-always-quote-attributes t t)
 '(sgml-angle-distance 4000 t)
 '(sgml-auto-activate-dtd nil t)
 '(sgml-auto-insert-required-elements t t)
 '(sgml-balanced-tag-edit t t)
 '(sgml-buggy-subst-char-in-region nil t)
 '(sgml-custom-markup nil t)
 '(sgml-declaration nil t)
 '(sgml-default-doctype-name nil t)
 '(sgml-default-dtd-file nil t)
 '(sgml-doctype nil t)
 '(sgml-exposed-tags nil t)
 '(sgml-general-insert-case (quote lower) t)
 '(sgml-ignore-undefined-elements nil t)
 '(sgml-indent-data nil t)
 '(sgml-indent-step 2 t)
 '(sgml-insert-defaulted-attributes nil t)
 '(sgml-insert-end-tag-on-new-line nil t)
 '(sgml-insert-missing-element-comment t t)
 '(sgml-leave-point-after-insert nil t)
 '(sgml-live-element-indicator nil t)
 '(sgml-local-catalogs nil t)
 '(sgml-local-ecat-files nil t)
 '(sgml-max-menu-size 32 t)
 '(sgml-minimize-attributes nil t)
 '(sgml-namecase-general t t)
 '(sgml-normalize-trims t t)
 '(sgml-offer-save t t)
 '(sgml-omittag t t)
 '(sgml-omittag-transparent nil t)
 '(sgml-parent-document nil t)
 '(sgml-range-indicator-max-length 9 t)
 '(sgml-recompile-out-of-date-cdtd (quote ask) t)
 '(sgml-shorttag t t)
 '(sgml-slash-distance 1000 t)
 '(sgml-system-identifiers-are-preferred nil t)
 '(sgml-tag-region-if-active nil t)
 '(sgml-trace-entity-lookup nil t)
 '(sgml-validate-command "nsgmls -e -g -s -u %s %s")
 '(sgml-warn-about-undefined-elements t t)
 '(sgml-warn-about-undefined-entities t t)
 '(sgml-xml-declaration "/usr/share/sgml/declaration/xml.dcl" t)
 '(sgml-xml-validate-command "/bin/sh xmlwf %s" t)
 '(show-paren-mode t nil (paren))
 '(speedbar-supported-extension-expressions (quote (".wy" ".by"
".[ch]\\(\\+\\+\\|pp\\|c\\|h\\|xx\\)?" ".tex\\(i\\(nfo\\)?\\)?" ".el"
".emacs" ".l" ".lsp" ".p" ".java" ".f\\(90\\|77\\|or\\)?" ".ada"
".p[lm]" ".tcl" ".m" ".scm" ".pm" ".py" ".g" ".s?html" ".ma?k"
"[Mm]akefile\\(\\.in\\)?" ".xml" ".properties" ".xsl" ".xslt")))
 '(standard-indent 2)
 '(transient-mark-mode t))
(custom-set-faces
  ;; custom-set-faces was added by Custom -- don't edit or cut/paste i