From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ian Zimmerman Newsgroups: gmane.emacs.help Subject: Re: difficulty entering balance mode Date: Sat, 25 Jul 2015 13:43:12 -0700 Message-ID: <20150725203441.4653.04B3C598@ahiker.mooo.com> References: <87380dnyw3.fsf@engels.histomat.net> <87a8ul2fc3.fsf@nl106-137-147.student.uu.se> <20150725185325.GE23817@engels.historicalmaterialism.info> Reply-To: help-gnu-emacs@gnu.org NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1437857027 8423 80.91.229.3 (25 Jul 2015 20:43:47 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 25 Jul 2015 20:43:47 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jul 25 22:43:33 2015 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZJ6I8-0005eq-AD for geh-help-gnu-emacs@m.gmane.org; Sat, 25 Jul 2015 22:43:32 +0200 Original-Received: from localhost ([::1]:48899 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZJ6I7-0006F1-IF for geh-help-gnu-emacs@m.gmane.org; Sat, 25 Jul 2015 16:43:31 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54169) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZJ6Hy-0006Ep-1k for help-gnu-emacs@gnu.org; Sat, 25 Jul 2015 16:43:22 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZJ6Hx-0005EU-8e for help-gnu-emacs@gnu.org; Sat, 25 Jul 2015 16:43:21 -0400 Original-Received: from disorder-1-pt.tunnel.tserv3.fmt2.ipv6.he.net ([2001:470:1f04:51a::2]:47613 helo=acedia.primate.net) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZJ6Hw-0005ED-Vh for help-gnu-emacs@gnu.org; Sat, 25 Jul 2015 16:43:21 -0400 Original-Received: from acedia.primate.net (localhost [127.0.0.1]) by acedia.primate.net (8.14.9/8.14.9/Debian-2) with ESMTP id t6PKhCHr024072 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Sat, 25 Jul 2015 13:43:12 -0700 Original-Received: (from itz@localhost) by acedia.primate.net (8.14.9/8.14.9/Submit) id t6PKhClQ024067 for help-gnu-emacs@gnu.org; Sat, 25 Jul 2015 13:43:12 -0700 X-Authentication-Warning: acedia.primate.net: itz set sender to itz@buug.org using -f Original-Received: from itz by ahiker.mooo.com with local (Exim 4.80) (envelope-from ) id 1ZJ6Ho-0001EN-DE for help-gnu-emacs@gnu.org; Sat, 25 Jul 2015 13:43:12 -0700 Content-Disposition: inline In-Reply-To: <20150725185325.GE23817@engels.historicalmaterialism.info> User-Agent: Mutt/1.5.21 (2010-09-15) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:470:1f04:51a::2 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:105996 Archived-At: 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 enter balance mode. I get this error: > > file mode specification error: (file-error) "Cannot open load file "no > such file or directory" "balance". > > This is indeed no such file "balance". Rather there is .balance.bal. 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. When it loads a module, emacs looks for one of those files in directories which are in the lisp variable load-path. Your problem may be that somehow the directory containing balance.el isn't in load-path when your first try. 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. Then again, it is very strange that it works the 2nd time. Hmmm. Perhaps a recursive load dependency problem? Unfortunately I don't know what balance mode is (it's not on my system) so I can't try to repro in detail. -- Please *no* private copies of mailing list or newsgroup messages. Rule 420: All persons more than eight miles high to leave the court.