home *** CD-ROM | disk | FTP | other *** search
- I'm trying to set up a bunch of things in my site-init.el, and when I try to
- build lucid, I get a bus error - core dumped. Can anyone point me to any
- instructions on how to troubleshoot this? What can be in my site-init.el,
- and what can't? I'm including what I put in my site-init.el below, just in
- case that might help. Sorry for the long message, but I've got a lot of
- stuff in there that we want for our defaults...
-
- ---------------------- Begin site-init.el ----------------------
- ;;; initial mode
- (setq default-major-mode 'text-mode)
- (setq initial-major-mode 'text-mode)
- (setq text-mode-hook '(lambda () (auto-fill-mode 1)))
- (setq default-fill-column 76)
- (setq blink-matching-paren-distance 10000)
- (setq backup-by-copying-when-mismatch t)
-
- (x-set-screen-icon-pixmap (selected-screen)
- "/demo/gnu-emacs/current/etc/lemacs.icon")
-
- ;;; Initialize some window stuff
- (setq x-mode-pointer-shape "X_cursor")
- (setq x-pointer-shape "top_left_arrow")
-
- (setq-default indent-tabs-mode nil)
-
- (setq-default case-fold-search t)
-
- (defconst search-slow-speed 2400
- "*Highest terminal speed at which to use \"slow\" style incremental search.
- This is the style where a one-line window is created to show the line
- that the search has reached.")
-
- ;;; c mode
- (setq c-argdecl-indent 3)
- (setq c-brace-imaginary-offset 0)
- (setq c-brace-offset 0)
- (setq c-continued-statement-offset 3)
- (setq c-indent-level 3)
- (setq c-label-offset -1)
- (setq c-tab-always-indent t)
- (setq c-auto-newline t)
-
- ;;; we want to use regions
- (put 'narrow-to-region 'disabled nil)
-
- ;;; some extensions are not correctly lined up for autoloading
- (setq auto-mode-alist (nconc '(("\\.nroff$" . nroff-mode)) auto-mode-alist))
-
- ;;; show just the lines that will be left after #ifdef M-x hide-ifdef-mode.
- (autoload 'hide-ifdef-mode "hideif" nil t)
-
- ;;; Last shell command used to do a compilation; default for next compilation.
- (setq compile-command "make")
-
- ;;; automatically come up with display-time executed
- (display-time)
-
- ;;; define where to find news and other miscellaneous gnus stuff
- (setq nntp-server-name "mack")
- (setq gnus-nntp-server "mack")
- (setq gnus-use-generic-from t)
- (setq gnus-local-organization "ROLM - A Siemens Company")
- (autoload 'gnus "gnus" "Read network news." t)
- (autoload 'gnus-post-news "gnuspost" "Post a news." t)
-
- (setq gnus-ignored-headers
- "^Path:\\|^Posting-Version:\\|^Article-I.D.:\\|^Expires:\\|^Date-Received:\\|^References:\\|^Control:\\|^Xref:\\|^Lines:\\|^Posted:\\|^Relay-Version:\\|^Message-ID:\\|^Nf-ID:\\|^Nf-From:\\|^Approved:\\|^Sender:\\|^Nntp-Posting-Host:")
-
- ;;; automatically allow both space and tab to perform full completion
- (define-key minibuffer-local-must-match-map " " 'minibuffer-complete)
- (define-key minibuffer-local-completion-map " " 'minibuffer-complete)
-
- ;; Taken directly from $EMACS/lisp/energize/energize-menus.el,
- ;; but modified a little bit for my personal taste.
- (defun setup-sparc-function-keys ()
- (if (not (eq window-system 'x))
- nil
- (define-key global-map [f1] 'help-for-help)
- (define-key global-map [f11] 'keyboard-quit) ;;Stop
- (define-key global-map '(meta f11) 'keyboard-quit) ;;M-Stop
- (define-key global-map [f12] 'repeat-complex-command) ;;Again
- (define-key global-map [f13] 'edit-options) ;;Props
- (define-key global-map [f14] 'undo) ;;Undo
- (define-key global-map [f16] 'x-copy-primary-selection) ;;Copy
- (define-key global-map [f18] 'x-yank-clipboard-selection) ;;Paste
- (define-key global-map [f19] 'isearch-forward) ;;Find
- (define-key global-map [f20] 'x-kill-primary-selection) ;;Cut
- (define-key global-map [f22] 'print-buffer) ;;PrSc
- (define-key global-map [f24] "=") ;;(=)
- (define-key global-map [f25] "/") ;;(/)
- (define-key global-map [f26] "*") ;;(*)
- (define-key global-map [f27] 'beginning-of-line) ;;Home
- (define-key global-map 'up 'previous-line) ;;Up arrow
- (define-key global-map [f29] 'scroll-down) ;;PgUp
- (define-key global-map 'left 'backward-char) ;;left arrow
- (define-key global-map [f31] 'recenter) ;;middle
- (define-key global-map 'right 'forward-char) ;;right arrow
- (define-key global-map [r13] 'end-of-line) ;;End
- (define-key global-map 'down 'next-line) ;;down arrow
- (define-key global-map [f35] 'scroll-up) ;;PgDn
- (define-key global-map '(shift left) 'backward-word) ;;S-Left
- (define-key global-map '(shift right) 'forward-word) ;;S-Right
- (define-key global-map '(shift up) 'backward-paragraph) ;;S-Up arrow
- (define-key global-map '(control left) 'backward-sentence) ;;C-Left
- (define-key global-map '(control right) 'forward-sentence) ;;C-Right
- (define-key global-map '(shift down) 'forward-paragraph) ;;S-down arrow
- (define-key global-map 'insert 'overwrite-mode) ;;Insert
- (define-key global-map '(control f27) 'beginning-of-buffer) ;;C-Home
- (define-key global-map '(control r13) 'end-of-buffer) ;;C-End
- (define-key global-map '(shift f19) 'isearch-backward) ;;S-Find
- (define-key global-map '(shift f16) ()) ;;S-Copy
- (define-key global-map '(shift f18) 'yank-rectangle) ;;S-Paste
- (define-key global-map '(shift f20) 'kill-rectangle) ;;S-Cut
- (define-key global-map 'button2 'mouse-track-adjust) ;;mid mouse
-
- (define-key global-map 'button3 'mouse-find-file)
-
- (defun extract-file-name-around-point ()
- (save-excursion
- (skip-chars-backward "!#-%*-9=?-{}~")
- (let ((start (point)))
- (skip-chars-forward "!#-%*-9=?-{}~")
- (let* ((filename (buffer-substring start (point)))
- (last-char (aref filename (- (length filename) 1))))
- (if (memq last-char '(?* ?@ ?. ?,))
- (substring filename 0 -1)
- filename)))))
-
- (defun mouse-find-file () (interactive)
- (mouse-set-point last-command-event)
- (let ((filename (extract-file-name-around-point)))
- (if (file-exists-p filename)
- (switch-to-buffer (find-file-noselect filename))
- (error "Cannot find file \"%s\"" filename))))
-
- (define-key minibuffer-local-map [f11] 'abort-recursive-edit) ;;Stop
- (define-key isearch-mode-map [f19] 'isearch-repeat-forward) ;;Find
- (define-key isearch-mode-map '(shift f19) 'isearch-repeat-backward) ;;Find
-
- ))
-
- (add-hook 'window-setup-hook 'setup-sparc-function-keys)
- (setup-sparc-function-keys)
-
- (setq home-dir (getenv "HOME"))
-
- (global-set-key 'backspace 'backward-delete-char-untabify)
- (global-set-key '(shift backspace) 'delete-char)
- (global-set-key 'delete 'delete-char)
-
- ; Map esc-BS to be backward-delete-word, since I expect that backward-delete-
- ; char(-untabify), which is bound to BS now, to equate to backward-kill-word
- ; mapping to esc-BS.
-
- (define-key esc-map 'backspace 'backward-kill-word)
- (define-key esc-map 'delete 'kill-word)
-
- ; The following commands are needed so that changes to the global map to
- ; redefine DEL don't get overridden locally.
-
- ; Now reset the backspace to do what DEL used to do
-
- (define-key lisp-interaction-mode-map 'backspace 'backward-delete-char-untabify)
- (define-key emacs-lisp-mode-map 'backspace 'backward-delete-char-untabify)
- (define-key c-mode-map 'backspace 'backward-delete-char-untabify)
- (define-key isearch-mode-map 'backspace 'isearch-delete-char)
-
- (define-key lisp-interaction-mode-map 'delete 'delete-char)
- (define-key emacs-lisp-mode-map 'delete 'delete-char)
- (define-key c-mode-map 'delete 'delete-char)
- (setq search-delete-char ?\b)
-
- ; define mail prefix
- (setq mail-yank-prefix ">")
-
- ; Set tab stops every 3 columns
- (setq-default tab-stop-list
- '(3 6 9 12 15 18 21 24 27 30 33 36 39 42 45 48 51 54 57 60 63 66 69 72
- 75 78 81 84 87 90))
-
- (setq-default tab-width 8)
-
- (defconst phonemail-menubar
- ;; this menubar modified from default-menubar in menubar.el
-
- '(("File "
- ["Open File..." find-file t]
- ["Open File Read Only..." find-file-read-only t]
- ["Open Alternate File..." find-alternate-file t]
- ["Open Directory..." dired t]
- "-----"
- ["Save Buffer" save-buffer t]
- ["Save Buffer As..." write-file t]
- "-----"
- ["Revert Buffer" revert-buffer t]
- ["Insert File..." insert-file t]
- ["Insert Buffer..." insert-buffer t]
- ["Print Buffer" lpr-buffer t]
- "-----"
- ["Kill Buffer..." kill-buffer t]
- ["Terminate Process..." server-edit t]
- ["Change Active Buffer..." switch-to-buffer t]
- ["Split Buffer" split-window-vertically t]
- ["One Buffer" delete-other-windows t]
- "-----"
- ["New Screen" x-new-screen t]
- ["Delete Screen" delete-screen t]
- "-----"
- ["Close Emacs" iconify-emacs t]
- ["Exit Emacs" save-buffers-kill-emacs t]
- )
-
- ("Location "
- ["Page Up" scroll-down t]
- ["Page Down" scroll-up t]
- ["Top Of Buffer" beginning-of-buffer t]
- ["End Of Buffer" end-of-buffer t]
- ["Cursor to Center" recenter t]
- ["Goto Line" goto-line t]
- ["Save Current Position..." point-to-register t]
- ["Goto Saved Position..." register-to-point t]
- ["Scroll Left" scroll-left t]
- ["Scroll Right" scroll-right t]
- ["Scroll Other Window" scroll-other-window t]
- )
-
- ("Edit "
- ["Undo" advertised-undo t]
- ["Cut" x-kill-primary-selection t]
- ["Copy" x-copy-primary-selection t]
- ["Paste" x-yank-clipboard-selection t]
- ["Clear" x-delete-primary-selection t]
- ["Toggle Insert" overwrite-mode t]
-
- ("Columns... "
- ["Cut Rectangle" kill-rectangle t]
- ["Insert Rectangle" yank-rectangle t]
- ["Create Rectangle" open-rectangle t]
- ["Blank Rectangle" clear-rectangle t]
- )
-
- ("Fill... "
- ["Fill Paragraph" fill-paragraph t]
- ["Fill Region" fill-region t]
- ["Set Fill Column" set-fill-column t]
- ["Set Fill Prefix" set-fill-prefix t]
- )
-
- ("Spell Check... "
- ["Word" ispell-word t]
- ["Region" ispell-region t]
- ["Buffer" ispell-buffer t]
- )
-
- ("Picture Mode... "
- ["Start Picture Mode" picture-mode t]
- ["End Picture Mode" picture-mode-exit t]
- )
- )
-
- ("Find "
- ["Incr. Search Fwd" isearch-forward t]
- ["Incr. Search Fwd Regexp" isearch-forward-regexp t]
- ["Incr. Search Back" isearch-backward t]
- ["Incr. Search Back Regexp" isearch-backward-regexp t]
- ["Repeat Search Fwd" isearch-repeat-forward t]
- ["Repeat Search Back" isearch-repeat-backward t]
- ["Global Replace String" replace-string t]
- ["Query Replace String" query-replace t]
- ["Global Replace RegExp" replace-regexp t]
- ["Query Replace RegExp" query-replace-regexp t]
- )
-
- ("Buffers" "")
-
- nil ; the partition: menus after this are flushright
-
- (" Goodies "
- ["Compare Windows" compare-windows t]
- ("News... "
- ["Gnus" gnus t]
- ["Rnews" rnews t]
- )
- )
-
- ("Help "
- ["Info" info t]
- ["Describe Mode" describe-mode t]
- ["Command Apropos..." command-apropos t]
- ["List Keybindings" describe-bindings t]
- ["Describe Key..." describe-key t]
- ["Describe Function..." describe-function t]
- ["Describe Variable..." describe-variable t]
- "-----"
- ["Unix Manual..." manual-entry t]
- ["Emacs Tutorial" help-with-tutorial t]
- ["Emacs News" view-emacs-news t]
- )
- )
- )
-
- (set-menubar phonemail-menubar)
-
- (load-library "ispell")
-
- (load-library "server")
-
- (load-library "dos-mode")
-
- (load-library "blink-paren")
-
- (load-library "pending-del")
-
- (require 'dired)
-
- (load-library "dired-lucid")
-
- (add-hook 'dired-load-hook
- (function
- (lambda ()
- (require 'dired-lucid)
- (require 'ange-ftp)))) ; After mouse hacks...
-
- (require 'crypt++)
-
- (autoload 'tar-mode "tar-mode")
-
- ----------------------- End site-init.el ----------------------
-
-