From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Jim Perrin Newsgroups: gmane.emacs.help Subject: Java support in 21.3 Date: Mon, 10 Jan 2005 14:02:27 -0500 Organization: The University at Buffalo Message-ID: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1105384417 23319 80.91.229.6 (10 Jan 2005 19:13:37 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 10 Jan 2005 19:13:37 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Jan 10 20:13:24 2005 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1Co4yh-0001Ou-00 for ; Mon, 10 Jan 2005 20:13:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Co5AB-0007db-NT for geh-help-gnu-emacs@m.gmane.org; Mon, 10 Jan 2005 14:25:15 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!logbridge.uoregon.edu!artemis.acsu.buffalo.edu!acsu.buffalo.edu!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 179 Original-NNTP-Posting-Host: sdm315.sdm.buffalo.edu Original-X-Trace: prometheus.acsu.buffalo.edu 1105384223 23665 128.205.157.96 (10 Jan 2005 19:10:23 GMT) Original-X-Complaints-To: abuse@buffalo.edu Original-NNTP-Posting-Date: Mon, 10 Jan 2005 19:10:23 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax) X-Accept-Language: en-us, en Original-Xref: shelby.stanford.edu gnu.emacs.help:127776 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:23246 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:23246 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)