Comments on: fixing emacs “cannot open load file” errors http://desk.stinkpot.org:8080/tricks/index.php/2007/01/fixing-emacs-cannot-open-load-file-errors/ tricks! Thu, 02 Feb 2012 20:46:58 +0000 hourly 1 http://wordpress.org/?v=3.1.1 By: punya http://desk.stinkpot.org:8080/tricks/index.php/2007/01/fixing-emacs-cannot-open-load-file-errors/comment-page-1/#comment-23035 punya Wed, 12 Oct 2011 13:35:53 +0000 http://stinkpot.afraid.org:8080/tricks/index.php/2007/01/fixing-emacs-cannot-open-load-file-errors/#comment-23035 Thanks for the valuable information. It helped me to set matlab mode. Thanks for the valuable information.
It helped me to set matlab mode.

]]>
By: Tom http://desk.stinkpot.org:8080/tricks/index.php/2007/01/fixing-emacs-cannot-open-load-file-errors/comment-page-1/#comment-12447 Tom Sun, 28 Nov 2010 17:44:41 +0000 http://stinkpot.afraid.org:8080/tricks/index.php/2007/01/fixing-emacs-cannot-open-load-file-errors/#comment-12447 Thanks for the tip, I thought (require 'program) was all I needed. Thanks for the tip, I thought (require ‘program) was all I needed.

]]>
By: Rob Stewart http://desk.stinkpot.org:8080/tricks/index.php/2007/01/fixing-emacs-cannot-open-load-file-errors/comment-page-1/#comment-6081 Rob Stewart Thu, 23 Aug 2007 14:09:39 +0000 http://stinkpot.afraid.org:8080/tricks/index.php/2007/01/fixing-emacs-cannot-open-load-file-errors/#comment-6081 Here's a shell script I use: #!/bin/bash usage() { echo >&2 "$0 [-d directory [directory ...]] file.el [file.el ...] where is added to the load-path during compilation." [ $# -eq 0 ] || echo >&2 " $@" exit 1 } while [ $# -gt 0 ]; do case $1 in --help|-h|-'?') usage;; -d) [ $# -gt 1 ] || usage "Missing directory argument for -d" DIRECTORIES="$DIRECTORIES $2"; shift ;; *) break;; esac shift done for directory in $DIRECTORIES; do LOAD_PATH="$LOAD_PATH --directory=$directory" done for file in "$@"; do cd $(dirname $file) emacs -batch -no-init-file $LOAD_PATH -f batch-byte-compile $file done Here’s a shell script I use:

#!/bin/bash

usage()
{
echo >&2 “$0 [-d directory [directory ...]] file.el [file.el ...]

where is added to the load-path during compilation.”
[ $# -eq 0 ] || echo >&2 ”
$@”
exit 1
}

while [ $# -gt 0 ]; do
case $1 in
–help|-h|-’?') usage;;
-d)
[ $# -gt 1 ] || usage “Missing directory argument for -d”
DIRECTORIES=”$DIRECTORIES $2″; shift
;;
*) break;;
esac
shift
done

for directory in $DIRECTORIES; do
LOAD_PATH=”$LOAD_PATH –directory=$directory”
done

for file in “$@”; do
cd $(dirname $file)
emacs -batch -no-init-file $LOAD_PATH -f batch-byte-compile $file
done

]]>
By: Krishnan http://desk.stinkpot.org:8080/tricks/index.php/2007/01/fixing-emacs-cannot-open-load-file-errors/comment-page-1/#comment-4232 Krishnan Mon, 02 Jul 2007 17:24:11 +0000 http://stinkpot.afraid.org:8080/tricks/index.php/2007/01/fixing-emacs-cannot-open-load-file-errors/#comment-4232 Great! It worked for me for setting up the matlab mode. Great! It worked for me for setting up the matlab mode.

]]>
By: Isabelle http://desk.stinkpot.org:8080/tricks/index.php/2007/01/fixing-emacs-cannot-open-load-file-errors/comment-page-1/#comment-2682 Isabelle Fri, 20 Apr 2007 10:59:19 +0000 http://stinkpot.afraid.org:8080/tricks/index.php/2007/01/fixing-emacs-cannot-open-load-file-errors/#comment-2682 Thanks for the tip .. I was using wrong syntax for my path (C:\Users\...) Thanks for the tip .. I was using wrong syntax for my path (C:\Users\…)

]]>