 
 (defun mymake-load-config ()
   "Returns an alist with configuration + current directory as 'dir'"
-  (let* ((buffer-dir (if (endp (buffer-file-name))
+  (let* ((buffer-dir (if (eq nil (buffer-file-name))
 			 default-directory
 		       (parent-directory (buffer-file-name))))
 	 (dir (mymake-find-config buffer-dir)))
-    (if (endp dir)
+    (if (eq nil dir)
 	;; No config file, we probably want to add the buffer file name as well.
 	(list
 	 (cons 'dir buffer-dir)
 	 (cons 'cmdline
-	       (if (or mymake-no-default-input (endp (buffer-file-name)))
+	       (if (or mymake-no-default-input (eq nil (buffer-file-name)))
 		   ""
 		 (concat "--default-input " (file-name-nondirectory (buffer-file-name))))))
       (cons

	 (args (mymake-args-str prepend replace (mymake-assoc 'cmdline config))))
    (compile (concat
	      mymake-command " "
	      (if (endp force)
		  args
		(concat "-f " args))) t)))


    (if (file-exists-p file)
	(file-name-as-directory dir)
      (let ((parent (parent-directory dir)))
	(if (eq nil parent)
	    'nil
	  (mymake-find-config parent))))))

