2

I used the package installer to install sr-speedbar, so I can have the speedbar and editor in a single frame. When I try M-x sr-speedbar-open, it opens a second window (with same file), beeps and says Wrong type argument: stringp, nil in the minibuffer.

If I set debug-on-error to t, I see this:

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  set-window-buffer(#<window 148 on study.cljs> nil)
  sr-speedbar-open()
  sr-speedbar-toggle()
  funcall-interactively(sr-speedbar-toggle)
  call-interactively(sr-speedbar-toggle record nil)
  command-execute(sr-speedbar-toggle record)
  ...

Emacs version: GNU Emacs 26.1, macOS
sr-speedbar version: 20140914.2339

Any ideas?

4
  • You might need to give a step-by-step recipe (keystroke by keystroke), starting from emacs -Q (no init file). But maybe you'll get lucky and someone will recognize the problem and provide a solution.
    – Drew
    Commented Apr 4, 2019 at 21:53
  • Well, this won't solve your problem, however, if you don't have any special reason to use sr-speedbar, try neotree. github.com/jaypei/emacs-neotree
    – ntalbs
    Commented Apr 5, 2019 at 17:38
  • Looks promising. Does it do symbols within a file? I just wrote an elisp function to let me group symbols (in speedbar) using comments (emacs.stackexchange.com/questions/48136/…)
    – Rob N
    Commented Apr 5, 2019 at 21:01
  • I had the same problem and fixed by removing the line ``(setq speedbar-use-images nil)'' in my init.el and restarting emacs. I hope this helps.
    – Boson Bear
    Commented May 12, 2020 at 12:38

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.