Re: difficulty entering balance mode
On Sat, Jul 25, 2015 at 01:43:12PM -0700, Ian Zimmerman wrote:
> On 2015-07-25 14:53 -0400, Haines Brown wrote:
>
> > I've reduced things to elementals. That is, I do $ emacs -q -l
> > .emacs-test. This .emacs-test file has in it only these lines:
> >
> > (autoload 'balance-mode "balance")
> > (setq auto-mode-alist
> > (append '(("\\.bal\\'" . balance-mode)) auto-mode-alist))
> >
> > When I do M-x f to find .balance.bal, now it opens on first try, but
> > emacs does not enter balance mode. I get this error:
> >
> > file mode specification error: (file-error) "Cannot open load file "no
> > such file or directory" "balance".
> Emacs cannot find the lisp module for some reason. The real file name
> would be "balance.el" or "balance.elc". Since I don't know what OS
> you're on, I can't advise how to look for it.
OS here is Linux Debian Wheezy.
The balance file must have a .bal extension. I assume that user's home
directory is in emacs' path because it finds the .emacs file
there. Indeed for years I have used a .balance.bal file in user's home
directory without any problem. The permissions on the old balance.bal
file and the current one are the same.
> When it loads a module, emacs looks for one of those files in
> directories which are in the lisp variable load-path.
> But in this test scenario the reason is probably simply that load-path
> isn't set as it is when you eval your normal init code.
My basic .emacs configuration file defines a number of paths, but the
closest to a definition of user's home directory is
(add-to-list 'load-path "/home/haines/.emacs.d/elisp/")
Adding this line to my test configuration does not help. Placing a copy
of balance.bal into ~/.emacs.d/elisp/ did not help.
Reply to: