Not so simple now. I cleaned out the cache and config files using ubuntu tweak. I then reinstalled emacs23 and well both emacs23 and calibre now crashes *intermittently* as oppose to immediately. So far after either crashes once--restarts X, after I log in either will cause a X restart. If I do a reboot, not simply log back it, I seem to have the two working, "with my fingers crossed"
I have similar behaviour with emacs, emacs -Q, emacs -fn "fixed", and emacs "Monospace-12" I also sometimes use two monitors with nvidia. the two programs seem to both work and at times crash with one or two monitors attached. arim@ulappy01:~$ sudo apt-cache policy emacs emacs: Installed: 23.3+1-1ubuntu4 Candidate: 23.3+1-1ubuntu4 Version table: *** 23.3+1-1ubuntu4 0 500 http://ca.archive.ubuntu.com/ubuntu/ oneiric/main amd64 Packages 100 /var/lib/dpkg/status .emacs file follows: (add-to-list 'load-path "~/.emacsloadpath/") (set-face-attribute 'default nil :height 80) (set-background-color "Black") (set-foreground-color "White") (set-cursor-color "purple") ;(set-default-font "fixed") ; use alias emacs='emacs -fn "fixed"' ;(setq font-lock-verbose nil) ;(setq lazy-lock-continuity-time 0.3) (set-frame-height (selected-frame) 48) (set-frame-width (selected-frame) 102) ;(dynamic-completion-mode) ;(defun karim-c-indent () ; (show-paren-mode) ; (setq c-basic-offset 3) ; (setq indent-tabs-mode nil) ; (c-set-offset 'substatement-open 0) ; (c-set-offset 'case-label 3) ; (c-set-offset 'statement-case-open 0)) ;(add-hook 'c-mode-common-hook 'karim-c-indent) ;; C ;(add-hook 'c-mode-hook ; (lambda () (c-set-style "karim-c-indent"))) ;; ;; ;; This section sets constants used by c-mode for formating ;; ;; (defun k-c++-indent-setup () (setq c-basic-offset 4) (setq indent-tabs-mode nil)) (add-hook 'c-mode-hook 'k-c++-indent-setup) ;;; C ;(add-hook 'c-mode-hook ;(lambda () (c-set-style "k&r"))) ;;; ESS (add-hook 'ess-mode-hook (lambda () (ess-set-style 'C++) ;; Because ;; DEF GNU BSD K&R C++ ;; ess-indent-level 2 2 8 5 4 ;; ess-continued-statement-offset 2 2 8 5 4 ;; ess-brace-offset 0 0 -8 -5 -4 ;; ess-arg-function-offset 2 4 0 0 0 ;; ess-expression-offset 4 2 8 5 4 ;; ess-else-offset 0 0 0 0 0 ;; ess-close-brace-offset 0 0 0 0 0 (add-hook 'local-write-file-hooks (lambda () (ess-nuke-trailing-whitespace))))) (setq ess-nuke-trailing-whitespace-p 'ask) ;; or even ;; (setq ess-nuke-trailing-whitespace-p t) ;;; Perl (add-hook 'perl-mode-hook (lambda () (setq perl-indent-level 4))) (global-set-key "%" 'match-paren) (defun match-paren (arg) "Go to the matching parenthesis if on parenthesis otherwise insert %." (interactive "p") (cond ((looking-at "\\s\(") (forward-list 1) (backward-char 1)) ((looking-at "\\s\)") (forward-char 1) (backward-list 1)) (t (self-insert-command (or arg 1))))) (setq c-basic-offset 4) ;;;(setq f90-basic-offset 4) (custom-set-variables ;; custom-set-variables was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(case-fold-search t) '(current-language-environment "UTF-8") '(default-input-method "rfc1345") '(global-font-lock-mode t nil (font-lock)) '(inhibit-startup-screen t) '(mouse-wheel-mode t nil (mwheel)) '(show-paren-mode t nil (paren))) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. ) (setq-default indent-tabs-mode nil) ;; Macaulay 2 start ;;(load "~/.emacs-Macaulay2" t) ;; Macaulay 2 end ;;acutex flyspell (setq ispell-program-name "/usr/bin/aspell") (require 'tex-site) (setq TeX-auto-save t) (setq TeX-parse-self t) (setq-default TeX-master nil) ;;(add-hook 'LaTeX-mode-hook 'turn-on-reftex) ; with AUCTeX LaTeX mode ;;(add-hook 'latex-mode-hook 'turn-on-reftex) (add-hook 'TeX-mode-hook 'turn-on-reftex) (add-hook 'TeX-mode-hook (lambda() (flyspell-mode 1))) (autoload 'cdlatex-mode "cdlatex" "CDLaTeX Mode" t) (autoload 'turn-on-cdlatex "cdlatex" "CDLaTeX Mode" nil) ;;ignore msg that is causing flyspell error (setq flyspell-issue-welcome-flag nil) ; -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/917394 Title: xserver restarts when I start emacs To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/emacs23/+bug/917394/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs