* Java support in 21.3
@ 2005-01-10 19:02 Jim Perrin
2005-01-10 22:07 ` James Davidson
2005-01-11 20:11 ` Kevin Rodgers
0 siblings, 2 replies; 3+ messages in thread
From: Jim Perrin @ 2005-01-10 19:02 UTC (permalink / raw)
Please forgive me if I ask a question that has been answered previously
(even many times before)...
I am trying to upgrade to 21.3, but my .emacs file from 20.3 is not
working. When it loads, it gives me an error:
////////
An error has occurred while loading `c:/_emacs':
Symbol's value as variable is void: senator-minor-mode
To ensure normal operation, you should investigate the cause
of the error in your initialization file and remove it. Start
Emacs with the `--debug-init' option to view a complete error
backtrace
///////
The file works fine for my old version. I try to find a new version of
the .emacs file, but I am having a hard time understanding it. The root
of the problem is that Emacs has to look as close as possible on windows
as it already looks on the unix systems we have here. So, not
understanding what alot of the options mean, how do I change my current
.emacs file to work with 21.3? Below is a copy of my current file:
;; Options Menu Settings
;; =====================
(setq font-lock-maximum-decoration 3)
(global-font-lock-mode)
(global-set-key "\C-c\C-l" 'goto-line)
(global-set-key "\C-c\C-r" 'copy-region-as-kill)
(set-default-font "-*-Courier New-normal-r-*-*-16-120-96-96-c-*-iso8859-1")
(set-frame-height (selected-frame) 30)
(set-frame-height (selected-frame) 80)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;Make emacs recognize .cl files as common lisp and set mode
(setq auto-mode-alist
(append (list '("\\.h$" . c++-mode)
'("\\.sml$" . sml-mode)
'("\\.tex$" . latex-mode)
'("\\.html$" . html-helper-mode))
auto-mode-alist))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;parenthesis highlighting stuff
(defun stig-it nil
"load stig paren"
(interactive)
(load-library "stig-1.22"))
(load-library "stig-1.22")
(cond (window-system
(require 'stig-paren)
(global-set-key (quote [67108904])
(quote stig-paren-toggle-dingaling-mode)) ;;;
Ctrl-(
(global-set-key (quote [67108905])
(quote stig-paren-toggle-sexp-mode)) ;;;
Ctrl-)
(global-set-key (quote [4194352]) (quote stig-it)) ;;; ALT-0
(setq paren-dingaling-mode t)
(setq paren-sexp-mode nil)
(setq paren-ding-unmatched t))
(t (setq blink-matching-paren t)))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(display-time)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;mode stuff
(setq default-major-mode 'text-mode)
(add-hook 'text-mode-hook 'turn-on-auto-fill)
(add-hook 'java-mode-hook 'my-java-hook)
(defun my-lisp-hook ()
;; customizations for Lisp mode
(cond (window-system (font-lock-mode t)))
(turn-on-auto-fill))
(defun my-java-hook ()
;; customizations for Java mode
; (cond (window-system (font-lock-mode t)))
(turn-on-auto-fill)
(setq comp-string-java nil))
(defun my-c-mode-common-hook ()
;; my customizations for all of c-mode, c++-mode, objc-mode, java-mode
(c-toggle-hungry-state t)
(c-set-offset 'substatement-open 0)
(c-set-offset 'access-label 0)
;;(c-set-offset 'topmost-intro '+)
(c-set-offset 'label 2)
(setq-default c-basic-offset 3)
(define-key c++-mode-map "\C-cc" 'c++-ub-compile-link)
(setq comp-string-c nil)
;; other customizations can go here
)
(add-hook 'c-mode-common-hook 'my-c-mode-common-hook)
(add-hook 'c-mode-common-hook 'turn-on-auto-fill)
(setq-default auto-fill-mode 1)
(put 'eval-expression 'disabled nil)
(cond (window-system
;(setq font-lock-background-mode 'dark)
(copy-face 'default 'font-lock-comment-face)
(set-face-foreground 'font-lock-comment-face "MediumBlue")
(copy-face 'bold 'font-lock-function-name-face)
;(set-face-foreground 'font-lock-function-name-face "LightSkyBlue")
(set-face-foreground 'font-lock-function-name-face "BlueViolet")
(copy-face 'default 'font-lock-string-face)
;(set-face-foreground 'font-lock-string-face "DarkTurquoise")
(set-face-foreground 'font-lock-string-face "DarkGreen")
(copy-face 'bold 'font-lock-keyword-face)
(set-face-foreground 'font-lock-keyword-face "Salmon")
(set-background-color "White")
;(set-background-color "Black")
;(set-foreground-color "Thistle")
(set-foreground-color "Black")
;(set-foreground-color "White")
(set-cursor-color "Red")))
(setq-default column-number-mode t)
;(quietly-read-abbrev-file)
(setq load-path
(nconc
'(
"~/emacs-20.7/site-lisp/elib-1.0"
"~/emacs-20.7/site-lisp/semantic-1.3.2"
"~/emacs-20.7/site-lisp/speedbar-0.13a"
"~/emacs-20.7/site-lisp/eieio-0.15"
"~/emacs-20.7/site-lisp/jde-2.2.6/lisp"
)
load-path))
(set-frame-height (selected-frame) 38)
(set-frame-width (selected-frame) 80)
(require 'jde)
(custom-set-variables
'(jde-help-docsets (quote (("javadoc" "c:/jdk1.3/docs/api" nil))))
'(jde-run-applet-viewer "appletviewer")
'(jde-compile-option-debug (quote ("all" (t nil nil))))
'(jde-db-read-vm-args nil)
'(jde-run-applet-doc "")
'(jde-compile-option-sourcepath (quote ("./" "../" "../..")))
'(jde-compile-option-deprecation t)
'(jde-bug-jdk-directory "c:/jdk1.3/")
'(jde-quote-classpath nil)
'(jde-db-source-directories (quote ("." "..")))
'(jde-appletviewer-option-vm-args (quote ("-classpath"
"c:\\work\\115\\Classlibs")))
'(jde-jdk-doc-url "C:\\jdk1.3\\docs\\api\\overview-summary.html")
'(jde-db-debugger (quote ("JDEbug" "jdb" . "Executable")))
'(jde-gen-window-listener-template (quote ("(end-of-line) '& (P
\"Window name: \")" "\".addWindowListener(new WindowAdapter() \"" "(if
jde-gen-k&r " "()" "'>'n)" "\"{\"'>'n" "'>'n \"public void
windowClosing(WindowEvent e) \"" "(if jde-gen-k&r " "()" "'>'n)"
"\"{\"'>'n" "'>'n \"System.exit(0);\" '>'n \"}\"" "'>'n \"});\" '>'n'>")))
'(jde-global-classpath (quote ("c:\\work\\115\\Classlibs" ".." ".")))
'(jde-enable-abbrev-mode t)
'(jde-bug-vm-includes-jpda-p t)
'(jde-run-classic-mode-vm nil))
(custom-set-faces)
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Java support in 21.3
2005-01-10 19:02 Java support in 21.3 Jim Perrin
@ 2005-01-10 22:07 ` James Davidson
2005-01-11 20:11 ` Kevin Rodgers
1 sibling, 0 replies; 3+ messages in thread
From: James Davidson @ 2005-01-10 22:07 UTC (permalink / raw)
On 1/10/05 11:02 AM, Jim Perrin wrote:
> Please forgive me if I ask a question that has been answered previously
> (even many times before)...
>
> I am trying to upgrade to 21.3, but my .emacs file from 20.3 is not
> working. When it loads, it gives me an error:
>
> ////////
> An error has occurred while loading `c:/_emacs':
>
> Symbol's value as variable is void: senator-minor-mode
>
> To ensure normal operation, you should investigate the cause
> of the error in your initialization file and remove it. Start
> Emacs with the `--debug-init' option to view a complete error
> backtrace
> ///////
>
> The file works fine for my old version. I try to find a new version of
> the .emacs file, but I am having a hard time understanding it. The root
> of the problem is that Emacs has to look as close as possible on windows
> as it already looks on the unix systems we have here. So, not
> understanding what alot of the options mean, how do I change my current
> .emacs file to work with 21.3? Below is a copy of my current file:
........
>
> (setq load-path
> (nconc
> '(
> "~/emacs-20.7/site-lisp/elib-1.0"
> "~/emacs-20.7/site-lisp/semantic-1.3.2"
> "~/emacs-20.7/site-lisp/speedbar-0.13a"
> "~/emacs-20.7/site-lisp/eieio-0.15"
> "~/emacs-20.7/site-lisp/jde-2.2.6/lisp"
> )
> load-path))
Here's an issue: You're using quite an old version of the JDE. Even if
it works with 21.3 (I assume it does), you don't seem to have all the
supporting files you need.
I can't provide specific information, because I'm using the latest JDE
release (2.3.5). I'm using a bundle called CEDET (Collection of Emacs
Development Environment Tools), which includes senator as part of
semantic. You could consider upgrading to 2.3.5.
If you want to stick with your current version, you need to find out
where senator-minor-mode is defined, and make sure that file is included
in your load path.
-Jim
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Java support in 21.3
2005-01-10 19:02 Java support in 21.3 Jim Perrin
2005-01-10 22:07 ` James Davidson
@ 2005-01-11 20:11 ` Kevin Rodgers
1 sibling, 0 replies; 3+ messages in thread
From: Kevin Rodgers @ 2005-01-11 20:11 UTC (permalink / raw)
Jim Perrin wrote:
> Please forgive me if I ask a question that has been answered previously
> (even many times before)...
>
> I am trying to upgrade to 21.3, but my .emacs file from 20.3 is not
> working. When it loads, it gives me an error:
>
> ////////
> An error has occurred while loading `c:/_emacs':
>
> Symbol's value as variable is void: senator-minor-mode
>
> To ensure normal operation, you should investigate the cause
> of the error in your initialization file and remove it. Start
> Emacs with the `--debug-init' option to view a complete error
> backtrace
> ///////
>
> The file works fine for my old version. I try to find a new version of
> the .emacs file, but I am having a hard time understanding it. The root
> of the problem is that Emacs has to look as close as possible on windows
> as it already looks on the unix systems we have here. So, not
> understanding what alot of the options mean, how do I change my current
> .emacs file to work with 21.3? Below is a copy of my current file:
...
> (setq load-path
> (nconc
> '(
> "~/emacs-20.7/site-lisp/elib-1.0"
> "~/emacs-20.7/site-lisp/semantic-1.3.2"
> "~/emacs-20.7/site-lisp/speedbar-0.13a"
> "~/emacs-20.7/site-lisp/eieio-0.15"
> "~/emacs-20.7/site-lisp/jde-2.2.6/lisp"
> )
> load-path))
Well, that might be a problem when running 21.3. I would copy the
~/emacs-20.7 directory tree to ~/emacs-21.3, recompile all the .elc
files, and change the above to use the correct version:
(setq load-path
(nconc (mapcar (lambda (subdir)
(format "~/emacs-%d.%d/%s"
emacs-major-version
emacs-minor-version
subdir))
'("elib-1.0"
"semantic-1.3.2"
"speedbar-0.13a"
"eieio-0.15"
"jde-2.2.6/lisp"))
load-path))
--
Kevin Rodgers
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-01-11 20:11 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-01-10 19:02 Java support in 21.3 Jim Perrin
2005-01-10 22:07 ` James Davidson
2005-01-11 20:11 ` Kevin Rodgers
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.