On Wednesday, March 1, 2017 at 5:30:06 AM UTC+8, David K. Storrs wrote: > I'm sending this to the list because I suspect I'm not the only one who will > ever have this issue and the next person should now be able to google for it. > > GNU Emacs 24.5.1 > Darwin MacBook-Pro.lan 15.5.0 Darwin Kernel Version 15.5.0: Tue Apr 19 > 18:36:36 PDT 2016; root:xnu-3248.50.21~8/RELEASE_X86_64 x86_64 > > I've been using racket-mode for a while now and enjoying it. I'm not sure > what changed, but suddenly it is causing my .emacs to not load. These are > the first two lines in my .emacs: > > (add-to-list 'load-path "~/.emacs.d/elpa/racket-mode-20161101.1859/") > (require 'racket-mode) > > > I don't recall how I installed racket-mode -- whether it was elpa, directly > download, etc. > > > > > When Emacs starts it throws up an error buffer saying: > ------- > Warning (initialization): An error occurred while loading > `/Users/dstorrs/.emacs': > > File error: Cannot open load file, No such file or directory, s > > To ensure normal operation, you should investigate and remove the > cause of the error in your initialization file. Start Emacs with > the `--debug-init' option to view a complete error backtrace. > ------- > > I've commented out everything else in the .emacs file so I know it's racket > mode that is causing the issue. The error happens on the require line. I've > attached the full output of the debug-init dump. > > > I never shut Emacs down, so it's possible that I had this issue sometime long > ago, resolved it for the current session, and then didn't see it again until > today I decided that I would procrastinate by debugging this. > > > > Removing the (add-to-list 'load-path > "~/.emacs.d/elpa/racket-mode-20161101.1859/") line and moving (require > 'racket-mode) to the end of the .emacs file means that I still get the > initialization error, but all of my customization has already been processed > and everything including racket-mode is working fine. > > > I have no idea what is up with this. > > Any thoughts on how to fix it?
racket-mode depends on a library named "s", it looks like this library is missing on your machine. See https://github.com/magnars/s.el, or install it via the emacs package manager. Best Regards, Alex. -- You received this message because you are subscribed to the Google Groups "Racket Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to racket-users+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.