Hi.
I need to debug a servlet running in tomcat. I can do this from the
command line using
jdb; however, so far I have had no luck using jde. jde debugging works
for me with simpler targets
using both jdb and jdebug.
I decided to start at the beginning by starting tomcat from the jde.
When I try this I
get the output shown just below. If I open a shell buffer in emacs and
enter the same
commands, tomcat starts fine. (I have similar problems trying to start
tomcat using jdb or jdebug.)
Any ideas?
Thanks.
--Len
Buffer *org.apache.tomcat.startup.Tomcat* :
cd /home/berman/Projects/tomcat/jakarta-tomcat-3.2.1/src/org/
/usr/local/ibm/IBMJava2-13/bin/java -classpath
/home/berman/Projects/tomcat/jakarta-tomcat-3.2.1/lib/aip.jar:/home/berman/Projects/tomcat/jakarta-tomcat-3.2.1/lib/ant.jar:/home/berman/Projects/tomcat/jakarta-tomcat-3.2.1/lib/jasper.jar:/home/berman/Projects/tomcat/jakarta-tomcat-3.2.1/lib/jaxp.jar:/home/berman/Projects/tomcat/jakarta-tomcat-3.2.1/lib/parser.jar:/home/berman/Projects/tomcat/jakarta-tomcat-3.2.1/lib/servlet.jar:/home/berman/Projects/tomcat/jakarta-tomcat-3.2.1/lib/webserver.jar:/usr/local/ibm/IBMJava2-13/lib/tools.jar:/home/berman/Projects/Accessibility/servlet/WEB-INF/classes
-Dtomcat.home=/home/berman/Projects/tomcat/jakarta-tomcat-3.2.1
org.apache.tomcat.startup.Tomcat -f
/home/berman/Projects/tomcat/jakarta-tomcat-3.2.1/conf/server.xml
Usage: java org.apache.tomcat.startup.Tomcat {options}
Options are:
-config file (or -f file) Use this file instead of
server.xml
-help (or help) Show this usage report
-home dir (or -h dir) Use this directory as
tomcat.home
-stop Shut down currently running
Tomcat
Process org.apache.tomcat.startup.Tomcat finished
Output of jde->help->problem report:
Emacs : GNU Emacs 20.7.1 (i386-redhat-linux-gnu, X toolkit)
of Thu Aug 24 2000 on porky.devel.redhat.com
Package: JDE version 2.2.6.2
current state:
==============
(setq
jde-gen-session-bean-template '("(jde-import-insert-imports-into-buffer
(list \"javax.ejb.*\"\n\"java.rmi.RemoteException\"))"
"(jde-wiz-update-implements-clause
\"SessionBean\")"
"'> \"public void ejbActivate() throws
RemoteException
{\"'>'n \"}\"'>'n\n'>'n"
"'> \"public void ejbPassivate() throws
RemoteException
{\"'>'n \"}\"'>'n\n'>'n"
"'> \"public void ejbRemove() throws
RemoteException
{\"'>'n \"}\"'>'n '>'n"
"'> \"public void
setSessionContext(SessionContext ctx)
throws\nRemoteException {\"" "'>'n \"}\"'>'n '>'n"
"'> \"public void unsetSessionContext()
throws
RemoteException {\"'>'n\n\"}\"'>'n '>'n'>")
jde-gen-beep '("(end-of-line) '&"
"\"Toolkit.getDefaultToolkit().beep();\"'>'n'>")
jde-which-method-format '("[" jde-which-method-current "]")
jde-run-classic-mode-vm nil
jde-javadoc-gen-nodeprecatedlist nil
jde-which-method-max-length 20
jde-imenu-include-classdef t
jde-javadoc-gen-link-online nil
jde-gen-code-templates '(("Get Set Pair" . jde-gen-get-set) ("toString
method" . jde-gen-to-string-method)
("Action Listener" . jde-gen-action-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)
("property change support" .
jde-gen-property-change-support))
jde-gen-cflow-else '("(if (jde-parse-comment-or-quoted-p)" "'(l
\"else\")" "'(l '> \"else \"" "(if jde-gen-k&r " "()" "'>'n)"
"\"{\"'>'n'>'r'n" "\"} // end of else\"'>'n'>)" ")")
jde-make-args ""
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--")
(column-number-mode "C%c--") (-3 . "%p")
(jde-which-method-mode ("--" jde-which-method-format "--")) "-%-")
jde-mode-abbreviations '(("ab" . "abstract") ("bo" . "boolean") ("br" .
"break") ("by" . "byte") ("byv" . "byvalue") ("cas" . "cast")
("ca" . "catch") ("ch" . "char") ("cl" . "class") ("co" .
"const") ("con" . "continue") ("de" . "default")
("dou" . "double") ("el" . "else") ("ex" . "extends") ("fa"
. "false") ("fi" . "final") ("fin" . "finally")
("fl" . "float") ("fo" . "for") ("fu" . "future") ("ge" .
"generic") ("go" . "goto") ("impl" . "implements")
("impo" . "import") ("ins" . "instanceof") ("in" . "int")
("inte" . "interface") ("lo" . "long") ("na" . "native")
("ne" . "new") ("nu" . "null") ("pa" . "package") ("pri" .
"private") ("pro" . "protected") ("pu" . "public")
("re" . "return") ("sh" . "short") ("st" . "static") ("su"
. "super") ("sw" . "switch") ("sy" . "synchronized")
("th" . "this") ("thr" . "throw") ("throw" . "throws")
("tra" . "transient") ("tr" . "true") ("vo" . "void")
("vol" . "volatile") ("wh" . "while"))
jde-imenu-enable t
jde-compile-option-verbose nil
jde-db-option-heap-size '((1 . "megabytes") (16 . "megabytes"))
jde-bug-debugger-host-address "localhost.localdomain"
jde-make-working-directory ""
jde-bug-breakpoint-marker-colors '("red" . "yellow")
jde-javadoc-gen-use nil
jde-gen-buffer-boilerplate nil
jde-bug-raise-frame-p t
jde-db-option-application-args nil
jde-javadoc-gen-nonavbar nil
jde-javadoc-gen-nohelp nil
jde-bug-vm-includes-jpda-p t
jde-gen-jfc-app-buffer-template '("(funcall
jde-gen-boilerplate-function) 'n" "\"import java.awt.Dimension;\" 'n"
"\"import java.awt.Graphics;\" 'n"
"\"import
java.awt.Graphics2D;\" 'n" "\"import java.awt.Color;\" 'n"
"\"import java.awt.geom.Ellipse2D;\"
'n" "\"import
java.awt.event.WindowAdapter;\" 'n"
"\"import
java.awt.event.WindowEvent;\" 'n" "\"import
javax.swing.JFrame;\" 'n"
"\"import javax.swing.JPanel;\" 'n"
"\"import
javax.swing.JScrollPane;\" 'n"
"\"import javax.swing.JMenuBar;\"
'n" "\"import
javax.swing.JMenu;\" 'n"
"\"import
java.awt.event.ActionEvent;\" 'n" "\"import
javax.swing.AbstractAction;\" 'n 'n" "\"/**\" 'n"
"\" * \"" "(file-name-nondirectory
buffer-file-name)
'n" "\" *\" 'n" "\" *\" 'n"
"\" * Created: \"
(current-time-string) 'n" "\" *\"
'n" "\" * @author \" (user-full-name) 'n"
"\" * @version\" 'n" "\" */\" 'n>"
"'n>" "\"public
class \""
"(file-name-sans-extension
(file-name-nondirectory
buffer-file-name))" "\" extends JFrame {\" 'n> 'n>"
"\"class Canvas extends JPanel {\"
'n> 'n>" "\"public
Canvas () {\" 'n>"
"\"setSize(getPreferredSize());\"
'n>"
"\"Canvas.this.setBackground(Color.white);\" 'n>" "\"}\" 'n> 'n>"
"\"public Dimension
getPreferredSize() {\" 'n>"
"\"return new Dimension(600, 600);\" 'n>" "\"}\" 'n> 'n>"
"\"public void
paintComponent(Graphics g) {\" 'n>"
"\"super.paintComponent(g);\" 'n>"
"\"Graphics2D g2d = (Graphics2D)
g;\" 'n>"
"\"Ellipse2D circle = new
Ellipse2D.Double(0d, 0d,
100d, 100d);\" 'n>" "\"g2d.setColor(Color.red);\" 'n>"
"\"g2d.translate(10, 10);\" 'n>"
"\"g2d.draw(circle);\" 'n>" "\"g2d.fill(circle);\" 'n>" "\"}\" 'n> 'n>"
"\"}\" 'n> 'n>" "\"public \""
"(file-name-sans-extension (file-name-nondirectory buffer-file-name))"
"\"() {\" 'n>" "\"super(\\\"\" (P
\"Enter app title:
\") \"\\\");\" 'n>" "\"setSize(300, 300);\" 'n>"
"\"addWindowListener(new
WindowAdapter() {\" 'n>"
"\"public void
windowClosing(WindowEvent e)
{System.exit(0);}\" 'n>"
"\"public void
windowOpened(WindowEvent e) {}});\"
'n>" "\"setJMenuBar(createMenu());\" 'n>"
"\"getContentPane().add(new
JScrollPane(new
Canvas()));\" 'n>" "\"}\" 'n>" "'n>"
"\"public static void main(String[]
args) {\" 'n>"
"'n>"
"(file-name-sans-extension
(file-name-nondirectory
buffer-file-name))" "\" f = new \""
"(file-name-sans-extension
(file-name-nondirectory
buffer-file-name))" "\"();\" 'n>" "\"f.show();\" 'n>"
"'p 'n>" "\"}\" 'n> 'n>"
"\"protected JMenuBar
createMenu() {\" 'n>"
"\"JMenuBar mb = new JMenuBar();\"
'n>" "\"JMenu menu
= new JMenu(\\\"File\\\");\" 'n>"
"\"menu.add(new
AbstractAction(\\\"Exit\\\") {\" 'n>"
"\"public void
actionPerformed(ActionEvent e) {\" 'n>"
"\"System.exit(0);\" 'n>" "\"}\" 'n>"
"\"});\" 'n>" "\"mb.add(menu);\"
'n>" "\"return mb;\"
'n>" "\"}\" 'n> 'n>" "\"} // \""
"(file-name-sans-extension
(file-name-nondirectory
buffer-file-name))" "'n>")
jde-bug-key-bindings '(("[? ? ?]" . jde-bug-step-over) ("[? ? ?]"
. jde-bug-step-into)
("[? ? ?]" . jde-bug-step-into-all) ("[? ? ?]" .
jde-bug-step-out) ("[? ? ?]" . jde-bug-continue)
("[? ? ?]" . jde-bug-toggle-breakpoint))
jde-compile-finish-hook '(jde-compile-finish-refresh-speedbar
jde-compile-finish-flush-completion-cache)
jde-compile-option-nowarn nil
jde-setnu-mode-threshold 20000
jde-run-java-vm-w "javaw"
jde-compile-option-encoding nil
jde-run-option-java-profile '(nil . "./java.prof")
bsh-startup-timeout 10
jde-bug-jpda-directory ""
jde-read-compile-args nil
jde-run-java-vm "/usr/local/ibm/IBMJava2-13/bin/java"
jde-db-option-verbose '(nil nil nil)
jde-which-method-class-min-length 4
jde-db-read-app-args t
jde-javadoc-gen-nodeprecated nil
jde-run-option-heap-profile '(nil "./java.hprof" 5 20 "Allocation
objects")
jde-gen-println '("'&" "\"System.out.println(\" (P \"Print out: \")
\");\" 'n>")
jde-enable-abbrev-mode nil
bsh-vm-args nil
jde-auto-parse-max-buffer-size 50000
jde-gen-cflow-main '("(if (jde-parse-comment-or-quoted-p)" "'(l
\"main\")" "'(l '> \"public static void main (String[] args) \""
"(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n'>'r'n" "\"} // end
of main ()\"'>'n'>)" ")")
jde-javadoc-exception-tag-template "\"* @exception \" type \" if an
error occurs\""
jde-global-classpath
'("/home/berman/Projects/tomcat/jakarta-tomcat-3.2.1/lib/aip.jar"
"/home/berman/Projects/tomcat/jakarta-tomcat-3.2.1/lib/ant.jar"
"/home/berman/Projects/tomcat/jakarta-tomcat-3.2.1/lib/jasper.jar"
"/home/berman/Projects/tomcat/jakarta-tomcat-3.2.1/lib/jaxp.jar"
"/home/berman/Projects/tomcat/jakarta-tomcat-3.2.1/lib/parser.jar"
"/home/berman/Projects/tomcat/jakarta-tomcat-3.2.1/lib/servlet.jar"
"/home/berman/Projects/tomcat/jakarta-tomcat-3.2.1/lib/webserver.jar"
"/usr/local/ibm/IBMJava2-13/lib/tools.jar"
"/home/berman/Projects/Accessibility/servlet/WEB-INF/classes")
jde-gen-window-listener-template '("'& (P \"Window name: \")"
"\".addWindowListener(new WindowAdapter() {\" 'n>"
"\"public void
windowActivated(WindowEvent e) {}\"
'n>"
"\"public void
windowClosed(WindowEvent e) {}\" 'n>"
"\"public void
windowClosing(WindowEvent e)
{System.exit(0);}\" 'n>"
"\"public void
windowDeactivated(WindowEvent e) {}\"
'n>"
"\"public void
windowDeiconified(WindowEvent e) {}\"
'n>"
"\"public void
windowIconified(WindowEvent e) {}\"
'n>"
"\"public void
windowOpened(WindowEvent e) {}});\"
'n>")
jde-run-working-directory ""
jde-gen-property-change-support '("'&" "\"protected
PropertyChangeSupport pcs = new PropertyChangeSupport(this);\" 'n>"
"\"/**\" 'n>\"* Adds a
PropertyChangeListener to the
listener list.\" 'n>"
"\"* The listener is registered for
all properties.\"
'n>"
"\"*\" 'n> \"* @param listener The
PropertyChangeListener to be added\" 'n> \"*/\" 'n>"
"\"public void
addPropertyChangeListener(PropertyChangeListener listener) {\" 'n>"
"\"pcs.addPropertyChangeListener(listener);\" 'n>
\"}\" 'n> 'n>"
"\"/**\" 'n>\"* Removes a
PropertyChangeListener from
the listener list.\" 'n>"
"\"* This removes a
PropertyChangeListener that was
registered for all properties.\" 'n>"
"\"*\" 'n> \"* @param listener The
PropertyChangeListener to be removed\" 'n> \"*/\" 'n>"
"\"public void
removePropertyChangeListener(PropertyChangeListener listener) {\" 'n>"
"\"pcs.removePropertyChangeListener(listener);\" 'n>
\"}\" 'n> 'n>"
"\"/**\" 'n>\"* Adds a
PropertyChangeListener for a
specific property.\" 'n>"
"\"* The listener will be invoked
only when a call on
firePropertyChange\" 'n>"
"\"* names that specific property.\"
'n>"
"\"*\" 'n> \"* @param propertyName
The name of the
property to listen on\" 'n>"
"\"* @param listener The
PropertyChangeListener to be
added\" 'n> \"*/\" 'n>"
"\"public void
addPropertyChangeListener(String
propertyName,\" 'n>"
"\"PropertyChangeListener listener)
{\" 'n>"
"\"pcs.addPropertyChangeListener(propertyName,
listener);\" 'n> \"}\" 'n> 'n>"
"\"/**\" 'n>\"* Removes a
PropertyChangeListener for a
specific property.\" 'n>"
"\"*\" 'n> \"* @param propertyName
The name of the
property that was listened on\" 'n>"
"\"* @param listener The
PropertyChangeListener to be
removed\" 'n> \"*/\" 'n>"
"\"public void
removePropertyChangeListener(String
propertyName,\" 'n>"
"\"PropertyChangeListener listener)
{\" 'n>"
"\"pcs.removePropertyChangeListener(propertyName,
listener);\" 'n> \"}\" 'n> 'n>"
"\"/**\" 'n>\"* Reports a bound
property update to any
registered listeners. \" 'n>"
"\"* No event is fired if old and
new are equal and
non-null.\" 'n>"
"\"*\" 'n> \"* @param propertyName
The programmatic
name of the property that was changed\" 'n>"
"\"* @param oldValue The old value
of the property\"
'n>"
"\"* @param newValue The new value
of the property.\"
'n> \"*/\" 'n>"
"\"public void
firePropertyChange(String propertyName,
Object oldValue, Object newValue) {\" 'n>"
"\"pcs.firePropertyChange(propertyName, oldValue,
newValue);\" 'n> \"}\" 'n> 'n>"
"\"/**\" 'n>\"* Reports a bound
property update to any
registered listeners. \" 'n>"
"\"* No event is fired if old and
new are equal and
non-null.\" 'n>"
"\"* This is merely a convenience
wrapper around the
more general\" 'n>"
"\"* firePropertyChange method that
takes Object
values.\" 'n>"
"\"* No event is fired if old and
new are equal and
non-null.\" 'n>"
"\"*\" 'n> \"* @param propertyName
The programmatic
name of the property that was changed\" 'n>"
"\"* @param oldValue The old value
of the property\"
'n>"
"\"* @param newValue The new value
of the property.\"
'n> \"*/\" 'n>"
"\"public void
firePropertyChange(String propertyName,
int oldValue, int newValue) {\" 'n>"
"\"pcs.firePropertyChange(propertyName, oldValue,
newValue);\" 'n> \"}\" 'n> 'n>"
"\"/**\" 'n>\"* Reports a bound
property update to any
registered listeners. \" 'n>"
"\"* No event is fired if old and
new are equal and
non-null.\" 'n>"
"\"* This is merely a convenience
wrapper around the
more general\" 'n>"
"\"* firePropertyChange method that
takes Object
values.\" 'n>"
"\"* No event is fired if old and
new are equal and
non-null.\" 'n>"
"\"*\" 'n> \"* @param propertyName
The programmatic
name of the property that was changed\" 'n>"
"\"* @param oldValue The old value
of the property\"
'n>"
"\"* @param newValue The new value
of the property.\"
'n> \"*/\" 'n>"
"\"public void
firePropertyChange(String propertyName,
boolean oldValue, boolean newValue) {\" 'n>"
"\"pcs.firePropertyChange(propertyName, oldValue,
newValue);\" 'n> \"}\" 'n> 'n>"
"\"/**\" 'n>\"* Fires an existing
PropertyChangeEvent
to any registered listeners.\" 'n>"
"\"* No event is fired if the given
event's old and
new values are equal and non-null. \" 'n>"
"\"*\" 'n> \"* @param evt The
PropertyChangeEvent
object.\" 'n>\"*/\" 'n>"
"\"public void
firePropertyChange(PropertyChangeEvent
evt) {\" 'n>"
"\"pcs.firePropertyChange(evt);\"
'n> \"}\" 'n> 'n>"
"\"/**\" 'n>\"* Checks if there are
any listeners for
a specific property.\" 'n>"
"\"*\" 'n> \"* @param evt The
PropertyChangeEvent
object.\" 'n>"
"\"* @return <code>true</code>if
there are one or more
listeners for the given property\" 'n>"
"\"*/\" 'n>" "\"public boolean
hasListeners(String
propertyName) {\" 'n>"
"\"return
pcs.hasListeners(propertyName);\" 'n> \"}\"
'n> 'n>")
jde-javadoc-describe-interface-template "\"* Describe interface \"
(jde-javadoc-code name) \" here.\""
jde-imenu-include-signature t
jde-db-marker-regexp "^Breakpoint hit: .*(\\([^$]*\\).*:\\([0-9]*\\))"
jde-gen-mouse-motion-listener-template '("'& (P \"Component name: \")"
"\".addMouseMotionListener(new MouseMotionAdapter() {\" 'n>"
"\"public void mouseDragged(MouseEvent e) {}\" 'n>"
"\"public void mouseMoved(MouseEvent e) {}});\"
'n>")
jde-key-bindings '(("" . jde-compile) ("" . jde-run) ("" .
jde-db) ("" . jde-build)
(""
. jde-run-menu-run-applet) ("" .
jde-db-menu-debug-applet) ("\n" . bsh)
(""
. speedbar-frame-mode) ("" .
jde-wiz-implement-interface) ("" . jde-wiz-import)
(""
. jde-browse-jdk-doc) ("" . jde-save-project)
("\f" . jde-gen-println))
jde-gen-cflow-for-i '("(if (jde-parse-comment-or-quoted-p)" "'(l
\"fori\")" "'(l '> \"for (int \" (p \"variable: \" var) \" = 0; \""
"(s var)" "\" < \"(p \"upper bound: \" ub)\"; \" (s var)
\"++) \"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n'>'r'n"
"\"} // end of for (int \" (s var) \" = 0; \"" "(s var) \" <
\" (s ub) \"; \" (s var) \"++)\"'>'n'>)" ")")
jde-run-option-classpath nil
jde-javadoc-gen-detail-switch '("-protected")
jde-bug-sio-connect-delay 1
jde-javadoc-param-tag-template "\"* @param \" name \" \" (jde-javadoc-a
type)\n \" \" (jde-javadoc-code type) \" value\""
jde-compile-option-verbose-path nil
jde-javadoc-display-doc t
jde-imenu-modifier-abbrev-alist '(("public" . 43) ("protected" . 177)
("private" . 172) ("static" . 2215) ("transient" . 35)
("volatile" . 126) ("abstract" .
170) ("final" . 182)
("native" . 36) ("synchronized" . 64)
("strictfp" . 37))
jde-db-debugger '("Other" "/usr/local/ibm/IBMJava2-13/bin/jdb" .
"Executable")
jde-jdk-doc-url
"http://www.javasoft.com/products/jdk/1.1/docs/index.html"
jde-gen-cflow-enable t
jde-compiler "/usr/local/ibm/IBMJava2-13/bin/javac"
jde-javadoc-gen-verbose nil
jde-javadoc-describe-method-template "\"* Describe \" (jde-javadoc-code
name) \" method here.\""
jde-gen-class-buffer-template '("(funcall jde-gen-boilerplate-function)
'n" "\"/**\" 'n" "\" * \""
"(file-name-nondirectory buffer-file-name)
'n" "\" *\"
'n" "\" *\" 'n"
"\" * Created: \" (current-time-string) 'n"
"\" *\" 'n"
"\" * @author \" (user-full-name) 'n"
"\" * @version\" 'n" "\" */\" 'n>" "'n>"
"\"public
class \""
"(file-name-sans-extension
(file-name-nondirectory
buffer-file-name))"
"\" \" (jde-gen-get-super-class) \" {\" 'n>
'n>"
"\"public \""
"(file-name-sans-extension
(file-name-nondirectory
buffer-file-name))" "\"() {\" 'n>" "'p 'n>" "\"}\" 'n>"
"'n>" "\"} // \"" "(file-name-sans-extension
(file-name-nondirectory buffer-file-name))" "'n>")
jde-javadoc-checker-level 'protected
jde-appletviewer-option-vm-args nil
jde-run-executable-args nil
jde-db-option-garbage-collection '(t t)
jde-javadoc-gen-stylesheetfile ""
jde-use-font-lock t
jde-compile-option-bootclasspath nil
jde-make-program "make"
jde-javadoc-gen-group nil
jde-javadoc-gen-link-offline nil
jde-entering-java-buffer-hook '(jde-reload-project-file
jde-which-method-update-on-entering-buffer)
jde-javadoc-gen-doc-title ""
jde-javadoc-gen-header ""
jde-run-option-vm-args
'("-Dtomcat.home=/home/berman/Projects/tomcat/jakarta-tomcat-3.2.1")
jde-javadoc-gen-window-title ""
jde-compile-option-directory ""
jde-imenu-create-index-function 'semantic-create-imenu-index
jde-gen-console-buffer-template '("(funcall
jde-gen-boilerplate-function) 'n" "\"/**\" 'n" "\" * \""
"(file-name-nondirectory
buffer-file-name) 'n" "\" *\"
'n" "\" *\" 'n"
"\" * Created: \"
(current-time-string) 'n" "\" *\"
'n" "\" * @author \" (user-full-name) 'n"
"\" * @version\" 'n" "\" */\" 'n>"
"'n>" "\"public
class \""
"(file-name-sans-extension
(file-name-nondirectory
buffer-file-name))" "\" {\" 'n> 'n>" "\"public \""
"(file-name-sans-extension
(file-name-nondirectory
buffer-file-name))" "\"() {\" 'n>" "'n>" "\"}\" 'n>"
"'n>" "\"public static void
main(String[] args) {\"
'n>" "'p 'n>" "\"}\" 'n> 'n>" "\"} // \""
"(file-name-sans-extension
(file-name-nondirectory
buffer-file-name))" "'n>")
jde-read-make-args nil
jde-javadoc-gen-noindex nil
jde-gen-mouse-listener-template '("'& (P \"Component name: \")"
"\".addMouseListener(new MouseAdapter() {\" 'n>"
"\"public void
mouseClicked(MouseEvent e) {}\" 'n>"
"\"public void mouseEntered(MouseEvent e) {}\" 'n>"
"\"public void
mouseExited(MouseEvent e) {}\" 'n>"
"\"public void mousePressed(MouseEvent e) {}\" 'n>"
"\"public void
mouseReleased(MouseEvent e) {}});\"
'n>")
jde-run-option-application-args '("-f
/home/berman/Projects/tomcat/jakarta-tomcat-3.2.1/conf/server.xml")
jde-bug-vm-executable '("java")
jde-db-set-initial-breakpoint t
jde-bug-debugger-command-timeout 10
jde-db-option-stack-size '((128 . "kilobytes") (400 . "kilobytes"))
jde-db-option-properties nil
jde-db-source-directories
'("/home/berman/Projects/tomcat/jakarta-tomcat-3.2.1/src/"
"/home/berman/Projects/Accessibility/servlet/WEB-INF/classes/")
jde-run-read-app-args nil
jde-gen-to-string-method-template '("'&" "\"public String toString()
{\" 'n>" "\"return super.toString();\" 'n>" "\"}\" 'n>")
jde-quote-classpath t
jde-bug-window-message nil
jde-build-use-make nil
jde-javadoc-author-tag-template "\"* @author <a href=\\\"mailto:\"
user-mail-address\n \"\\\">\" user-full-name \"</a>\""
jde-javadoc-describe-field-template "\"* Describe \"
(jde-javadoc-field-type modifiers)\n \" \" (jde-javadoc-code name) \"
here.\""
jde-javadoc-gen-link-URL nil
jde-compile-option-classpath nil
jde-bug-jdk-directory "/usr/local/ibm/IBMJava2-13"
jde-gen-boilerplate-function 'jde-gen-create-buffer-boilerplate
jde-gen-entity-bean-template '("(jde-import-insert-imports-into-buffer
(list \"javax.ejb.*\"\n\"java.rmi.RemoteException\"))"
"'> \"public void ejbActivate() throws
RemoteException
\"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n"
"\"}\"'>'n '>'n" "'> \"public void
ejbPassivate() throws
RemoteException \"" "(if jde-gen-k&r " "()" "'>'n)"
"\"{\"'>'n" "\"}\"'>'n '>'n" "'> \"public
void ejbLoad()
throws RemoteException \"" "(if jde-gen-k&r " "()"
"'>'n)" "\"{\"'>'n" "\"}\"'>'n '>'n" "'>
\"public void
ejbStore() throws RemoteException \""
"(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n"
"\"}\"'>'n
'>'n"
"'> \"public void ejbRemove() throws
RemoteException \""
"(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n"
"\"}\"'>'n '>'n" "'> \"public void
setEntityContext(EntityContext ctx) throws RemoteException \""
"(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n"
"\"}\"'>'n
'>'n"
"'> \"public void unsetEntityContext() throws
RemoteException \"" "(if jde-gen-k&r " "()" "'>'n)"
"\"{\"'>'n" "\"}\"'>'n '>'n'>")
jde-javadoc-describe-constructor-template "\"* Creates a new \"
(jde-javadoc-code name) \" instance.\""
jde-bug-server-shmem-name '(t . "JDEbug")
jde-db-startup-commands '("stop in Decode.processTransaction" "stop in
Decode.processEvent" "stop in org.apache.tomcat.startup.Tomcat.main"
"run")
jde-javadoc-gen-docletpath nil
jde-javadoc-gen-split-index nil
jde-compile-option-deprecation nil
jde-import-group-of-rules '(("^javax?\\."))
jde-which-method-mode t
jde-gen-k&r t
jde-javadoc-gen-bottom ""
jde-javadoc-gen-footer ""
jde-db-option-classpath nil
jde-gen-cflow-for '("(if (jde-parse-comment-or-quoted-p)" "'(l
\"for\")" "'(l '> \"for (\" (p \"for-clause: \" clause) \") \""
"(if
jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n'>'r'n" "\"} // end
of for (\" (s clause) \")\"'>'n'>)" ")")
jde-run-mode-hook nil
jde-db-option-verify '(nil t)
jde-compile-option-extdirs nil
jde-imenu-sort nil
jde-gen-get-set-var-template '("'n>" "(P \"Variable type: \" type) \"
\"" "(P \"Variable name: \" name) \";\" 'n> 'n>" "\"/**\" 'n>"
"\"* Get the value of \" (s name) \".\" 'n>"
"\"*
@return Value of \" (s name) \".\" 'n>" "\"*/\" 'n>"
"\"public \" (s type) \" get\"
(jde-gen-init-cap
(jde-gen-lookup-named 'name))"
"\"() {return \" (s name) \";}\" 'n> 'n>"
"\"/**\" 'n>"
"\"* Set the value of \" (s name) \".\" 'n>"
"\"* @param v Value to assign to \" (s name)
\".\" 'n>"
"\"*/\" 'n>"
"\"public void set\" (jde-gen-init-cap
(jde-gen-lookup-named 'name))"
"\"(\" (s type) \" v) {this.\" (s name) \" =
v;}\"
'n>")
jde-bug-saved-breakpoints nil
jde-compile-option-sourcepath nil
jde-gen-cflow-if '("(if (jde-parse-comment-or-quoted-p)" "'(l \"if\")"
"'(l '> \"if (\" (p \"if-clause: \" clause) \") \""
"(if
jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n'>'r'n" "\"} // end
of if (\" (s clause) \")\"'>'n'>)" ")")
jde-db-option-java-profile '(nil . "./java.prof")
jde-javadoc-gen-author t
jde-compile-option-depend-switch nil
jde-setnu-mode-enable nil
jde-run-applet-doc ""
jde-compile-option-vm-args nil
jde-javadoc-gen-overview ""
jde-javadoc-gen-notree nil
jde-run-option-garbage-collection '(t t)
jde-db-mode-hook nil
jde-javadoc-command-path "javadoc"
jde-db-option-heap-profile '(nil "./java.hprof" 5 20 "Allocation
objects")
jde-import-group-function 'jde-import-group-of
bsh-eval-timeout 20
jde-db-read-vm-args nil
jde-bug-debug nil
jde-javadoc-end-block-template nil
jde-javadoc-gen-packages nil
jde-gen-cflow-if-else '("(if (jde-parse-comment-or-quoted-p)" "'(l
\"ife\")" "'(l '> \"if (\" (p \"if-clause: \" clause) \") \""
"(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n'>'r'n" "\"} //
end of if (\" (s clause) \")\"'> n" "'> \"else \""
"(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n'>'r'n" "\"} //
end of if (\" (s clause) \")else\"'>'n'>)" ")")
jde-gen-cflow-while '("(if (jde-parse-comment-or-quoted-p)" "'(l
\"while\")" "'(l '> \"while (\" (p \"while-clause: \" clause) \") \""
"(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n'>'r'n" "\"} //
end of while (\" (s clause) \")\"'>'n'>)" ")")
jde-bug-server-socket '(t . "2112")
jde-imenu-include-modifiers nil
jde-appletviewer-option-encoding ""
jde-bug-breakpoint-cursor-colors '("cyan" . "brown")
jde-compile-option-target '("1.1")
jde-run-executable ""
jde-run-option-heap-size '((1 . "megabytes") (16 . "megabytes"))
jde-gen-cflow-switch '("(if (jde-parse-comment-or-quoted-p)" "'(l
\"switch\")"
"'(l '> \"switch (\" (p \"switch-condition: \" clause) \")
\"" "(if jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n'"
"\"case \" (p \"first value: \") \":\"'>'n'>'p'n"
"\"break;\"'>'n'>'p'n" "\"default:\"'>'n'>'p'n" "\"break;\"'>'n"
"\"} // end of switch (\" (s clause) \")\"'>'n'>)" ")")
jde-which-method-abbrev-symbol "~"
jde-db-option-vm-args '("-mx100m"
"-Dtomcat.home=/home/berman/Projects/tomcat/jakarta-tomcat-3.2.1")
jde-run-application-class "org.apache.tomcat.startup.Tomcat"
jde-javadoc-gen-doclet ""
jde-import-auto-sort nil
jde-run-option-verbose '(nil nil nil)
jde-project-file-name "prj.el"
jde-compile-option-debug '("all" (t nil nil))
jde-bug-jre-home ""
jde-import-sorted-groups nil
jde-run-applet-viewer ""
jde-javadoc-return-tag-template "\"* @return \" (jde-javadoc-a type)\n
\" \" (jde-javadoc-code type) \" value\""
jde-javadoc-gen-version t
jde-javadoc-gen-helpfile ""
jde-import-excluded-packages '("bsh.*")
jde-run-read-vm-args nil
jde-help-docsets nil
jde-gen-inner-class-template '("'& \"class \" (P \"Class name: \"
class)" "(P \"Superclass: \" super t)"
"(let ((parent (jde-gen-lookup-named
'super)))" "(if
(not (string= parent \"\"))"
"(concat \" extends \" parent))) \" {\" 'n>"
"\"public
\" (s class) \"() {\" 'n> \"}\" 'n> \"}\" 'n>")
jde-auto-parse-buffer-interval 180
jde-run-option-verify '(nil t)
jde-import-reverse-sort-group nil
jde-compile-option-optimize nil
jde-gen-cflow-case '("(if (jde-parse-comment-or-quoted-p)" "'(l
\"case\")" "'(l 'n \"case \" (p \"value: \") \":\"'>'n'>'p'n"
"\"break;\"'>'n'>'p)" ")")
jde-compile-option-depend t
jde-javadoc-describe-class-template "\"* Describe class \"
(jde-javadoc-code name) \" here.\""
jde-javadoc-gen-serialwarn nil
jde-gen-action-listener-template '("'& (P \"Component name: \")"
"\".addActionListener(new ActionListener() {\" 'n>"
"\"public void
actionPerformed(ActionEvent e) {\" 'n>"
"\"}});\" 'n>")
jde-auto-parse-enable t
jde-compile-option-command-line-args ""
jde-gen-buffer-templates '(("Class" . jde-gen-class) ("Console" .
jde-gen-console) ("Swing App" . jde-gen-jfc-app))
jde-project-context-switching-enabled-p t
jde-javadoc-gen-args nil
jde-run-option-stack-size '((128 . "kilobytes") (400 . "kilobytes"))
jde-run-option-properties nil
)
There was no *JDEBug* buffer
There is no CLI buffer
There is no locals buffer
There was no *Backtrace* buffer
The contents of the *Messages* buffer were
(New file)
Loading /home/berman/Projects/tomcat/jakarta-tomcat-3.2.1/src/org/prj.el
(source)...
Loading /home/berman/Projects/tomcat/jakarta-tomcat-3.2.1/src/org/prj.el
(source)...done
Global Font Lock mode enabled.
File mode specification error: (error "Lisp nesting exceeds
max-lisp-eval-depth")
Mark set
Loading shell...
Loading shell...done
Mark set [4 times]
Mark saved where search started
Mark set
Mark saved where search started
Mark set
Loading dired...
Loading dired...done
Reading directory
/home/berman/Projects/tomcat/jakarta-tomcat-3.2.1/logs/...
Reading directory
/home/berman/Projects/tomcat/jakarta-tomcat-3.2.1/logs/...done
Fontifying logs...
Fontifying logs... (regexps.......)
Reading directory
/home/berman/Projects/tomcat/jakarta-tomcat-3.2.1/logs/...done
Reading directory
/home/berman/Projects/tomcat/jakarta-tomcat-3.2.1/logs/...
Reading directory
/home/berman/Projects/tomcat/jakarta-tomcat-3.2.1/logs/...done
Reading directory
/home/berman/Projects/tomcat/jakarta-tomcat-3.2.1/logs/...
Reading directory
/home/berman/Projects/tomcat/jakarta-tomcat-3.2.1/logs/...done
Mark set
Reading directory
/home/berman/Projects/tomcat/jakarta-tomcat-3.2.1/logs/...
Reading directory
/home/berman/Projects/tomcat/jakarta-tomcat-3.2.1/logs/...done
Reading directory
/home/berman/Projects/tomcat/jakarta-tomcat-3.2.1/logs/...
Reading directory
/home/berman/Projects/tomcat/jakarta-tomcat-3.2.1/logs/...done
Mark set [4 times]
Mark saved where search started
Mark set [3 times]
Reading directory
/home/berman/Projects/tomcat/jakarta-tomcat-3.2.1/logs/...
Reading directory
/home/berman/Projects/tomcat/jakarta-tomcat-3.2.1/logs/...done
Mark set [3 times]
(New file)
Loading /home/berman/Projects/tomcat/jakarta-tomcat-3.2.1/src/org/prj.el
(source)...
Loading /home/berman/Projects/tomcat/jakarta-tomcat-3.2.1/src/org/prj.el
(source)...done
Global Font Lock mode enabled.
File mode specification error: (error "Lisp nesting exceeds
max-lisp-eval-depth")
Mark set [3 times]
Quit
Preparing problem report...
Loading sendmail...
Loading sendmail...done
Loading mailalias...
Loading mailalias...done
Formatting bug report buffer...
Formatting bug report buffer.........................
Mark set
End Insert *Messages* buffer
Process environment:
_=/usr/bin/emacs
INIT_VERSION=sysvinit-2.78
RUNLEVEL=3
PATH=.:/home/berman/bin:.:/home/berman/bin:.:/home/berman/bin:~/bin:.:/home/berman/bin:/usr/bin:/bin:/usr/X11R6/bin:/usr/local/bin:/opt/bin:/usr/X11R6/bin:/home/berman/bin:/usr/local/ibm/IBMJava2-13/bin/
TERM=xterm
HOME=/home/berman
HISTSIZE=10000
OSTYPE=linux-gnu
CVSROOT=/usr/local/cvsroot
HOSTTYPE=i386
PRINTER=lp0
USERNAME=
SHELL=/bin/bash
GDM_LANG=en_US
BOOT_IMAGE=l17
LOGNAME=berman
previous=N
SHLVL=4
NPX_PLUGIN_PATH=/home/berman/.netscape/plugins:/usr/local/netscape/plugins:/usr/local/te/PlugIn
DISPLAY=:0.0
JAVA_HOME=/usr/local/ibm/IBMJava2-13
TOMCAT_HOME=/home/berman/Projects/tomcat/jakarta-tomcat-3.2.1
LANG=en_US
BASH_ENV=/home/berman/.bashrc
OLDPWD=/home/berman
MAIL=/var/spool/mail/berman
MACHTYPE=i386-redhat-linux-gnu
LS_COLORS=no=00:fi=00:di=01;34:ln=01;36:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:ex=01;32:*.tar=01;31:*.tgz=01;31:*.arj=01;31:*.taz=01;31:*.lzh=01;31:*.zip=01;31:*.z=01;31:*.Z=01;31:*.gz=01;31:*.bz2=01;31:*.deb=01;31:*.rpm=01;31:*.jpg=01;35:*.png=01;35:*.gif=01;35:*.bmp=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.png=01;35:*.mpg=01;35:*.avi=01;35:*.fli=01;35:*.gl=01;35:*.dl=01;35:
USER=berman
FVWM_MODULEDIR=/usr/X11R6/lib/X11/fvwm2
KDEDIR=/usr
GDMSESSION=Default
runlevel=3
PS1=../${PWD#${PWD%/[^/]*/[^/]*}/}:
LESSOPEN=|/usr/bin/lesspipe.sh %s
QTDIR=/usr/lib/qt-2.2.4
AUTOBOOT=YES
TECHEXPLORER_HOME=/usr/local/TeXplorer
PREVLEVEL=N
HOSTDISPLAY=lyon:0.0
LD_LIBRARY_PATH=.:/usr/local/lib
MOZILLA_HOME=/usr/local/netscape
CONSOLE=/dev/console
HOSTNAME=lyon
WINDOWID=54525966
BOOT_FILE=/boot/vmlinuz-2.2.17-14
XAUTHORITY=/home/berman/.Xauthority
PWD=/home/berman/Projects/tomcat
The contents of the .emacs file was
;; Red Hat Linux default .emacs initialization file
(setq load-path (append
; (list (expand-file-name "/home/berman/emacs/jde") )
(list (expand-file-name
"/home/berman/emacs/html-helper") )
(list
(expand-file-name "/home/berman/emacs/vm") )
load-path))
(add-to-list 'load-path (expand-file-name "~/emacs/jde/lisp"))
(add-to-list 'load-path (expand-file-name "~/emacs/semantic"))
(add-to-list 'load-path (expand-file-name "~/emacs/speedbar"))
(add-to-list 'load-path (expand-file-name "~/emacs/elib"))
(add-to-list 'load-path (expand-file-name "~/emacs/eieio"))
;; Are we running XEmacs or Emacs?
(defvar running-xemacs (string-match "XEmacs\\|Lucid" emacs-version))
;; Set up the keyboard so the delete key on both the regular keyboard
;; and the keypad delete the character under the cursor and to the right
;; under X, instead of the default, backspace behavior.
(global-set-key [delete] 'delete-char)
(global-set-key [kp-delete] 'delete-char)
;; Turn on font-lock mode for Emacs
(cond ((not running-xemacs)
(global-font-lock-mode t)
))
;; Always end a file with a newline
(setq require-final-newline t)
;; Stop at the end of the file, not just add lines
(setq next-line-add-newlines nil)
;;o which gets the last dump. Useful in jdb
(fset 'gd
"\C-rdump\C-m\C-k\276\C-y")
; helps line up a declaration with previous.
(fset 'col
[?\M-f ?\M-f ?\C- ?\M-f ?\M-b ?\M-w ?\C-n ?\C-a ?\M-f ?\M-f ?\C-y
?\C- ?\M-f ?\M-b ?\C-w ?\C-n ?\C-a])
; clear last breakpoint in jde
;(fset 'clear
; [?c ?l ?e ?a ?r ? ?\C-x ?/ ?a up ?\C-e ?\M-b ?\M-b ?\C- ?\M-f
?\C-x ?r ?s ?b ?\M-b ?\M-b ?\M-b ?\C- ?\M-f ?\M-w ?\C-x ?r ?s ?d ?\C-x
?j ?a ?\C-x ?r ?y ?b ?\C-x ?r ?i ?b backspace ?\C-e ?: ?\C-x ?r ?i ?d
return])
(fset 'clear
[?c ?l ?e ?a ?r ? up ?\C-a ?\C-\M-f ?\C-\M-f ?\C-\M-f ?\C-\M-f ?\C-
?\C-\M-b ?\C-x ?\C-x ?\C-x ?r ?s ?g ?\C-\M-f ?\C-\M-f ?\C-\M-b ?\C-
?\C-\M-f ?\C-x ?r ?s ?h ?\C-n ?\C-x ?r ?i ?h ?\C-e ?: ?\C-x ?r ?i ?g
?\C-e return])
(setq auto-save-default 'yes)
(set-background-color "black")
(set-foreground-color "gold")
(set-cursor-color "red")
(setq diff-switches '("-bc"))
(setq vc-make-backup-files 't)
(require 'font-lock)
(autoload 'html-helper-mode "html-helper-mode" "Yay HTML" t)
(setq auto-mode-alist (cons '("\\.html$" . html-helper-mode)
auto-mode-alist))
(add-hook 'html-helper-load-hook '(lambda () (require 'html-font)))
(add-hook 'html-helper-mode-hook '(lambda () (font-lock-mode 1)))
(add-hook 'html-helper-mode-hook '(lambda ()
(html-helper-toggle-expert-menu 1)))
; AUTOLOAD
(autoload 'vm "vm" "Start VM on your primary inbox." t)
(autoload 'vm-other-frame "vm" "Like `vm' but starts in another frame."
t)
(autoload 'vm-visit-folder "vm" "Start VM on an arbitrary folder." t)
(autoload 'vm-visit-virtual-folder "vm" "Visit a VM virtual folder." t)
(autoload 'vm-mode "vm" "Run VM major mode on a buffer" t)
(autoload 'vm-mail "vm" "Send a mail message using VM." t)
(autoload 'vm-submit-bug-report "vm" "Send a bug report about VM." t)
;; taken from sgml-mode.el
(defun html-autoview-mode (&optional arg)
"Toggle automatic viewing via `html-viewer' upon saving buffer.
With positive prefix ARG always turns viewing on, with negative ARG
always off.
Can be used as a value for `html-mode-hook'."
(interactive "P")
(if (setq arg (if arg
(< (prefix-numeric-value arg) 0)
(and (boundp 'after-save-hook)
(memq 'browse-url-of-buffer after-save-hook))))
(setq after-save-hook (delq 'browse-url-of-buffer
after-save-hook))
(make-local-hook 'after-save-hook)
(add-hook 'after-save-hook 'browse-url-of-buffer nil t))
(message "Autoviewing turned %s."
(if arg "off" "on")))
(define-key menu-bar-tools-menu [ps-print-region]
'("Postscript Print Region" . ps-print-region))
(define-key menu-bar-tools-menu [ps-print-buffer]
'("Postscript Print Buffer" . ps-print-buffer))
(setq version-control t) ; backup file versions
(setq kept-old-versions 1) ; no old backups
(setq kept-new-versions 5) ; default backup count
(setq trim-versions-without-asking t) ; get rid of junk
(setq indent-tabs-mode nil) ; no tabs
(setq inhibit-startup-message t) ; no startup message
(setq enable-recursive-minibuffers nil) ;
(auto-save-mode nil ) ; inhibit auto-save
(set-default 'tab-width 2)
(set-default 'fill-column 88)
(set-default 'vc-checkin-switches '("-l"))
(setq tex-dvi-view-command "/usr/bin/xdvi -s 4 -geometry 1465x1700+900+0
")
(setq tex-dvi-view-command "~/bin/egv ")
(setq tex-dvi-print-command "/usr/bin/dvips -o !lpr ")
(setq dabbrev-case-replace ())
(setq case-fold-search ())
;;; added to fix 19.29 problem with F1
(let ((entry (assq 'f1 key-translation-map)))
(setq key-translation-map (delq entry key-translation-map)))
;;; vm Mail mode
(setq vm-toolbar-pixmap-directory (expand-file-name "~/emacs/etc"))
(autoload 'vm "vm" "Start VM on your primary inbox." t)
(autoload 'vm-other-frame "vm" "Like `vm' but starts in another frame."
t)
(autoload 'vm-visit-folder "vm" "Start VM on an arbitrary folder." t)
(autoload 'vm-visit-virtual-folder "vm" "Visit a VM virtual folder." t)
(autoload 'vm-mode "vm" "Run VM major mode on a buffer" t)
(autoload 'vm-mail "vm" "Send a mail message using VM." t)
(autoload 'vm-submit-bug-report "vm" "Send a bug report about VM." t)
;;; C and C++ source environment
;;; ispell for TeX
(autoload 'ispell-buffer "ispell" "Check spelling of buffer" t)
(autoload 'ispell-change-dictionary "ispell" "Change ispell dictionary"
t)
(autoload 'ispell-complete-word "ispell" "Complete word at or before
point" t)
(autoload 'ispell-region "ispell" "Check spelling of region" t)
(autoload 'ispell-word "ispell" "Check spelling of word at or before
point" t)
(global-set-key "\M-$" 'ispell-buffer)
(add-hook 'TeX-mode-hook
'(lambda ()
(setq paragraph-separate
"^[ \t]*\\($\\|[\f%]\\|\\\\.*[]}][ \t]*$\\)")))
(setq dired-listing-switches "-lta")
(setq list-directory-verbose-switches "-alt")
(setq auto-save-default nil)
(setq backup-by-copying nil)
(setq backup-by-copying-when-linked t)
(setq text-mode-hook 'turn-on-auto-fill)
;;
(setq inhibit-startup-message t)
;;
(setq list-matching-lins-default-context-lines 2)
(setq require-final-newline 0)
(setq display-time-day-and-date t)
(setq lpr-switches '("-Plp0"))
;;; Robert M. Fuhrer
(defun forward-to-word (arg)
"Move forward until encountering the beginning of a word.
With argument, do this that many times."
(interactive "p")
(or (re-search-forward (if (> arg 0) "\\W\\b" "\\b\\W") nil t arg)
(goto-char (if (> arg 0) (point-max) (point-min)))
)
)
(defun scroll-down-other-window ()
"Scrolls the buffer in the other window down."
(interactive)
(save-excursion
(other-window 1)
(scroll-down ())
(other-window 1)
)
)
(defun kill-other-buffer ()
"Kill the buffer in the other window."
(interactive)
(save-excursion
(other-window 1)
(kill-buffer (buffer-name))
(other-window 1)
)
)
(defun off-other-window-buffer ()
"Kill the buffer in the other window and goto single window."
(interactive)
(save-excursion
(other-window 1)
(kill-buffer (buffer-name))
(other-window 1)
)
(delete-other-windows)
)
(defun off-this-window-buffer ()
"Kill the buffer in this window and goto single window."
(interactive)
(other-window 1)
(off-other-window-buffer)
)
(put 'narrow-to-region 'disabled nil)
(setq gdb-mode-hook
'(lambda ()
(local-set-key "\M-u" 'gud-up)
; (local-set-key " " 'gud-tbreak)
(local-set-key "\M-d" 'gud-down)
(local-set-key "\M-c" 'gud-cont)
(local-set-key "\M-s" 'gud-step)
(local-set-key "\M-n" 'gud-next)
(local-set-key "\M-l" 'gud-refresh)
)
)
(setq comint-mode-hook
'(lambda ()
(local-set-key "\M-u" 'gud-up)
(local-set-key "\M-d" 'gud-down)
; (local-set-key " " 'gud-tbreak)
(local-set-key "\M-c" 'gud-cont)
(local-set-key "\M-s" 'gud-step)
(local-set-key "\M-n" 'gud-next)
(local-set-key "\M-l" 'gud-refresh)
)
)
;;; ===================================================================
;;; "other-buffer/window and key" customizations
;;; ===================================================================
(global-set-key [f1] 'compile)
(global-set-key [f2] 'undo)
(global-set-key [f3] 'kill-this-buffer)
(global-set-key [f4] 'bury-buffer)
(global-set-key [f5] 'next-error)
(define-key global-map [f8] 'compare-windows)
(define-key global-map [f9] 'call-last-kbd-macro)
(global-set-key [delete] 'delete-char)
(global-set-key [M-delete] 'backward-kill-word)
(define-key global-map [C-M-%] 'replace-string)
(define-key global-map [M-%] 'query-replace)
(global-set-key "g" 'goto-line)
(global-set-key "" 'undo)
(global-set-key "h" 'help-command)
(global-set-key "k" 'kill-this-buffer) ;C-x C-s
(define-key emacs-lisp-mode-map [delete] 'delete-char)
(global-set-key "4r" 'find-file-read-only-other-window)
(global-set-key "4u" 'scroll-up-other-window)
; bad key below here
(global-set-key "4v" 'scroll-down-other-window)
(global-set-key "4t" 'toggle-one-window)
(global-set-key "4k" 'kill-other-buffer)
(global-set-key "41" 'off-other-window-buffer)
(global-set-key "40" 'off-this-window-buffer)
(put 'eval-expression 'disabled nil)
(put 'downcase-region 'disabled nil)
;(require 'cc-mode)
;(setq c++-electric-colon ())
;(define-key c++-mode-map "{" 'c-electric-semi&comma)
; Folllowing from cc-mode preamble
;(fmakunbound 'c-mode)
; (makunbound 'c-mode-map)
; (fmakunbound 'c++-mode)
; (makunbound 'c++-mode-map)
; (makunbound 'c-style-alist)
;;(setq c++-mode-hook
;; '(lambda ()
;; (set-face-foreground 'font-lock-keyword-face "cyan")
;; (auto-fill-mode)
;; )
;; )
(autoload 'c++-mode "cc-mode" "C++ Editing Mode" t)
(autoload 'c-mode "cc-mode" "C Editing Mode" t)
(autoload 'objc-mode "cc-mode" "Objective-C Editing Mode" t)
(setq auto-mode-alist
(append '(("\\.C$" . c++-mode)
("\\.cc$" . c++-mode)
("\\.cpp$" . c++-mode)
("\\.js$" . c++-mode)
("\\.CPP$" . c++-mode)
("\\.hpp$" . c++-mode)
("\\.H$" . c++-mode)
("\\.c$" . c-mode)
("\\.p$" . perl-mode)
("\\.h$" . c++-mode)
("\\.i$" . c++-mode)
("\\.m$" . objc-mode)
("\\.tex$" . latex-mode)
) auto-mode-alist))
(add-hook 'fundamental-mode-hook
(function (lambda ()
(setq ndent-tabs-mode ()))))
(defun set-printer (printername)
"Set the lpr switches to send a print to a speicified printer."
(interactive "sPrinter name: ")
(setq lpr-switches (cons (concat "-P" printername) nil ))
)
;(load "jde")
(require 'jde)
(global-set-key "\C-c\C-v\C-c" 'jde-compile)
(custom-set-faces)
(custom-set-variables
'(jde-db-option-vm-args (quote ("-mx100m")))
'(jde-bug-jdk-directory "/usr/local/ibm/IBMJava2-13")
'(jde-run-option-vm-args (quote ("-mx100m")))
'(jde-db-debugger (quote ("Other" "/usr/local/ibm/IBMJava2-13/bin/jdb"
. "Executable")))
'(jde-bug-jpda-directory "/usr/local/ibm/IBMJava2-13")
'(jde-bug-vm-includes-jpda-p t)
'(jde-run-classic-mode-vm t))
; (list
; "Processes"
; ["Start Debugger" jde-bug-start-debugger
; (not (jde-dbs-debugger-running-p))]
;
; ["Launch Process" jde-bug-launch-process
; (jde-dbs-debugger-running-p)]
;
; ["Suspend Process" jde-bug-suspend-process
; (let ((process
(jde-dbs-get-target-process)))
; (and
; (jde-dbs-debugger-running-p)
; process
; (not (oref process suspendedp))))]
;
; ["Resume Process" jde-bug-resume-process
; (let ((process
(jde-dbs-get-target-process)))
; (and
; (jde-dbs-debugger-running-p)
; process
; (oref process suspendedp)))]
;
; ["Finish Process" jde-bug-finish-process
; (let ((process
(jde-dbs-get-target-process)))
; (and
; (jde-dbs-debugger-running-p)
; process
; (not (oref process attachedp))))]
;
; "-"
;
; (list
; "Attach Process"
; ["Via Shared Memory" jde-bug-attach-via-shared-memory
; (and
; (eq system-type 'windows-nt)
; (jde-dbs-debugger-running-p))]
;
; ["On Local Host" jde-bug-attach-local-host
; (jde-dbs-debugger-running-p)]
;
; ["On Remote Host" jde-bug-attach-remote-host
; (jde-dbs-debugger-running-p)]
; )
;
; (list
; "Listen on"
; ["Shared Memory" jde-bug-listen-shmem
; (and
; (eq system-type 'windows-nt)
; (jde-dbs-debugger-running-p))]
;
; ["Socket" jde-bug-listen-socket
; (jde-dbs-debugger-running-p)]
; )
;
; ["Detach Process" jde-bug-detach-process
; (let ((process
(jde-dbs-get-target-process)))
; (and
; (jde-dbs-debugger-running-p)
; process
; (oref process attachedp)))]
;
;
; "-"
;
; ["Set Target Process" jde-bug-set-target-process
; (> (jde-dbs-proc-set-get-size
; jde-dbs-the-process-registry)
; 0)]
;
; ["Show Processes" jde-bug-set-show-processes nil]
;
; ["Remove Dead Processes" jde-bug-remove-dead-processes
; (oref jde-dbs-the-process-morgue
proc-alist)]
;
;; )
=====end inserted .emacs file