[slime-devel] Re: cannot start slime

Steven E. Harris seharris at raytheon.com
Tue Apr 27 18:47:42 UTC 2004


Lawrence Mitchell <wence at gmx.li> writes:

> Can you try this version of slime-events-buffer?

The hs-special-modes-alist requires a different set of values than
what you proposed. Here's a corrected version:

(defun slime-events-buffer ()
  (or (get-buffer "*slime-events*")
      (let ((buffer (get-buffer-create "*slime-events*"))
            ;; `hs-grok-mode-type' overrides the setting of
            ;; `hs-block-start-regexp' using this variable.  Bind it
            ;; accordingly -- Lawrence 2004/04/27
            (hs-special-modes-alist '((fundamental-mode "^(" nil))))
        (with-current-buffer buffer
          ;; Will most likely get overridden by
          ;; `hs-special-modes-alist', but better safe than sorry
          ;; -- Lawrence 2004/04/27
          (set (make-local-variable 'hs-block-start-regexp) "^(")
          (set (make-local-variable 'comment-start) ";")
          (set (make-local-variable 'comment-end) "")
          (hs-minor-mode))
        buffer)))


Starting up a fresh XEmacs instance with this definition allowed slime
to start up properly on the first and every subsequent try.

-- 
Steven E. Harris        :: seharris at raytheon.com
Raytheon                :: http://www.raytheon.com





More information about the slime-devel mailing list