Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handle non-existent files #23

Closed
jezcope opened this issue May 16, 2015 · 2 comments
Closed

Handle non-existent files #23

jezcope opened this issue May 16, 2015 · 2 comments

Comments

@jezcope
Copy link

jezcope commented May 16, 2015

I have a couple of places in my init where I use the optional second argument of load to ensure no error gets raised if the file doesn't exist. So I have a line:

(load "el-get-local.el" t)

Where the t ensures that it will silently fail if el-get-local.el doesn't exist. Unfortunately, esup gives me the following error if the file isn't there:

Debugger entered--Lisp error: (wrong-type-argument stringp nil)
  expand-file-name(nil)
  find-file-noselect(nil)
  esup-child-profile-file("/home/jez/.dotfiles/emacs.d/el-get-local.el" 1)
  esup-child-profile-sexp(445 503 0)
  esup-child-profile-buffer(#<buffer init.el> 0)
  esup-child-profile-file("/home/jez/.emacs.d/init.el" 0)
  esup-child-run("/home/jez/.emacs.d/init.el" "52507")
  eval((esup-child-run "/home/jez/.emacs.d/init.el" "52507"))
  command-line-1(("-L" "/home/jez/.dotfiles/emacs.d/el-get/esup/" "-l" "esup-child" "--eval=(esup-child-run \"/home/jez/.emacs.d/init.el\" \"52507\")"))
  command-line()
  normal-top-level()

My full configuration is available at https://github.com/jezcope/dotfiles/tree/master/emacs.d if it helps.

Edit: *esup-log* here https://gist.github.com/7a3015df9f948ba9ed3b

@jschaf
Copy link
Owner

jschaf commented May 18, 2015

Nice catch, should be pretty straight forward to fix

@jschaf jschaf closed this as completed in dac9669 May 19, 2015
@jschaf
Copy link
Owner

jschaf commented May 19, 2015

Lemme know if that worked for you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants