Subject: Re: bug#30168: 25.3.50; segfault when opening scratch buffer (GUI), other times

From: Noam Postavsky <[email-masked]>
Date: Fri, 19 Jan 2018 11:28:21 -0500

tag 30168 unreproducible moreinfo
quit

On Fri, Jan 19, 2018 at 1:05 AM, Tina Russell
<[email-masked]> wrote:
> I did some more mucking in my config and it seems I no longer have this
> problem… I’m not even sure what it was. I’ve attached my init.el, from right
> after I noticed the problem was gone, in case you’re interested in figuring
> out what the critical difference was. (Personally, I’m just glad not to have
> this crash anymore!)

Diff attached. Assuming ergoemacs-package is just a trivial wrapper
around use-package, having :disabled does the same as commenting it
out, so that part should have no effect. The only thing left likely to
have any effect would be this part:

- '(custom-enabled-themes (quote (org-beautify-theme manoj-dark)))
+ '(custom-enabled-themes (quote (manoj-dark)))

Perhaps org-beautify-theme adds some problematic fonts?
--- crashing-init.el	2018-01-19 09:48:16.291047100 -0500
+++ not-crashing-init.el	2018-01-19 09:48:25.204198300 -0500
@@ -6,9 +6,7 @@
  ;; 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.
- '(ansi-color-names-vector
-   ["#212526" "#ff4b4b" "#b4fa70" "#fce94f" "#729fcf" "#e090d7" "#8cc4ff" "#eeeeec"])
- '(custom-enabled-themes (quote (org-beautify-theme manoj-dark)))
+ '(custom-enabled-themes (quote (manoj-dark)))
  '(custom-safe-themes
    (quote
     ("8aebf25556399b58091e533e455dd50a6a9cba958cc4ebb0aab175863c25b9a4" "dcf7154867ba67b250fe2c5cdc15a7d170acd9cbe6707cc36d9dd1462282224d" "05fd42bef42991c45ecb17ecad1ff38c10e8faac51efea44f0782bdaebaf4211" default)))
@@ -64,7 +62,6 @@
    (quote
     (yasnippet extend-dnd volatile-highlights tabbar-ruler solarized-theme rainbow-mode magit linum-off keyfreq info+ flx-ido smex ido-vertical-mode ido-ubiquitous golden-ratio flycheck fill-column-indicator evil-numbers ess-smart-underscore electric-operator polymode ess dired+ auto-highlight-symbol anzu ergoemacs-status org-plus-contrib org-edna gnorb bbdb turing-machine org-sticky-header org-bookmark-heading org-bullets hyperbole hacker-typer all-the-icons all-the-icons-gnus all-the-icons-ivy dired-icon pc-bufsw helm auto-complete sx dashboard uimage xah-elisp-mode rainbow-delimiters async org-download yaoddmuse paradox use-package unbound ergoemacs-mode org-journal package-build shut-up epl git commander f dash s cask skeletor slime smartparens nov ahungry-theme twittering-mode hy-mode emms)))
  '(paradox-github-token t)
- '(red "#ffffff")
  '(save-place t nil (saveplace))
  '(send-mail-function (quote mailclient-send-it))
  '(show-paren-mode t)
@@ -712,37 +709,36 @@
   (inferior-lisp-program "sbcl")
   (slime-contribs '(slime-fancy)))
 
-(ergoemacs-package smartparens
-    :ensure t
-    :defer t
-    :disabled
-    (dolist (hook '(prog-mode-hook))
-      (add-hook hook 'smartparens-mode))
-
-    ;; enable smartparens-mode in `eval-expression'
-    (defun ergoemacs-conditionally-enable-smartparens-mode ()
-      "Enable `smartparens-mode' during `eval-expression'."
-      (if (eq this-command 'eval-expression)
-          (smartparens-mode)))
-    (add-hook 'minibuffer-setup-hook 'ergoemacs-conditionally-enable-smartparens-mode)
-
-    (require 'smartparens-config)
-    (setq sp-show-pair-delay 0
-          sp-show-pair-from-inside t ; fix paren highlighting in normal mode
-          sp-cancel-autoskip-on-backward-movement nil)
-    (define-key emacs-lisp-mode-map (kbd ")") 'sp-up-sexp)
-
-    (defun emacsmate-smartparens-emacs-mode-hook ()
-      "Change `sp-navigate-close-if-unbalanced' to be non-nil in emacs-buffers"
-      (set (make-local-variable 'sp-navigate-close-if-unbalanced) t))
+;; (ergoemacs-package smartparens
+;;     :ensure t
+;;     :defer t
+;;     (dolist (hook '(prog-mode-hook))
+;;       (add-hook hook 'smartparens-mode))
+
+;;     ;; enable smartparens-mode in `eval-expression'
+;;     (defun ergoemacs-conditionally-enable-smartparens-mode ()
+;;       "Enable `smartparens-mode' during `eval-expression'."
+;;       (if (eq this-command 'eval-expression)
+;;           (smartparens-mode)))
+;;     (add-hook 'minibuffer-setup-hook 'ergoemacs-conditionally-enable-smartparens-mode)
+
+;;     (require 'smartparens-config)
+;;     (setq sp-show-pair-delay 0
+;;           sp-show-pair-from-inside t ; fix paren highlighting in normal mode
+;;           sp-cancel-autoskip-on-backward-movement nil)
+;;     (define-key emacs-lisp-mode-map (kbd ")") 'sp-up-sexp)
+
+;;     (defun emacsmate-smartparens-emacs-mode-hook ()
+;;       "Change `sp-navigate-close-if-unbalanced' to be non-nil in emacs-buffers"
+;;       (set (make-local-variable 'sp-navigate-close-if-unbalanced) t))
     
-    (add-hook 'emacs-lisp-mode-hook
-              'emacsmate-smartparens-emacs-mode-hook)
-    (show-smartparens-global-mode +1)
+;;     (add-hook 'emacs-lisp-mode-hook
+;;               'emacsmate-smartparens-emacs-mode-hook)
+;;     (show-smartparens-global-mode +1)
     
-    ;; don't create a pair with single quote in minibuffer
-    (sp-local-pair 'minibuffer-inactive-mode "'" nil :actions nil)
-    (smartparens-global-mode 1))
+;;     ;; don't create a pair with single quote in minibuffer
+;;     (sp-local-pair 'minibuffer-inactive-mode "'" nil :actions nil)
+;;     (smartparens-global-mode 1))
 
 (ergoemacs-package smart-mode-line
     :ensure nil