punassuming / ranger.el

Bringing the goodness of ranger to dired!
699 stars 52 forks source link

Symbol’s value as variable is void: block when opening file #142

Closed emmettu closed 7 years ago

emmettu commented 7 years ago
Symbol’s value as variable is void: block

This occurs in emacs 25 when trying to open a file, seems almost the same as #140 but with a different package that isn't auto-loaded in 25: cl-macs.

Adding (require 'cl-macs) fixes the problem.

bridgesense commented 7 years ago

(require 'cl-lib)

emmettu commented 7 years ago

cl-lib doesn't define the block macro. cl-block is defined in cl-macs.el, and block which is an alias for cl-block is defined in cl.el. For whatever reason neither of these get loaded automatically in emacs 25, so

(require 'cl)

or

(require 'cl-macs)

is needed as far as I can tell.

bridgesense commented 7 years ago

Odd, I tried both of those and neither of them worked for me, but cl-lib suppressed the error. I'm on the brew build of emacs-mac.

emmettu commented 7 years ago

What version of emacs is that? I only get the error in emacs 25.

bridgesense commented 7 years ago

25.2.1

emmettu commented 7 years ago

Weird. I reinstalled ranger and don't get the error anymore. Maybe something was up with my config. Thanks by the way :+1: