From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: TheFlyingDutchman Newsgroups: gmane.emacs.help Subject: Re: emacs cannot find cc-mode Date: Thu, 30 Oct 2008 01:55:25 -0700 (PDT) Organization: http://groups.google.com Message-ID: <7bf792b6-4116-4b43-83a3-a21e5210da16@g61g2000hsf.googlegroups.com> References: <08e005f5-9ea8-43d4-9281-936819882da9@l33g2000pri.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1225359706 12818 80.91.229.12 (30 Oct 2008 09:41:46 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 Oct 2008 09:41:46 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Oct 30 10:42:48 2008 connect(): Connection refused Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KvU32-0005t1-W4 for geh-help-gnu-emacs@m.gmane.org; Thu, 30 Oct 2008 10:42:37 +0100 Original-Received: from localhost ([127.0.0.1]:58215 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KvU1w-0001Xn-ET for geh-help-gnu-emacs@m.gmane.org; Thu, 30 Oct 2008 05:41:28 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!news-out.readnews.com!transit3.readnews.com!postnews.google.com!g61g2000hsf.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 61 Original-NNTP-Posting-Host: 192.91.147.35 Original-X-Trace: posting.google.com 1225356925 18219 127.0.0.1 (30 Oct 2008 08:55:25 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Thu, 30 Oct 2008 08:55:25 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: g61g2000hsf.googlegroups.com; posting-host=192.91.147.35; posting-account=9bWHAAoAAAAxSFC_2O_ssTETNW9NhMbW User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.3) Gecko/2008092417 Firefox/3.0.3,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:163912 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:59254 Archived-At: On Oct 28, 10:57=A0am, mtakeshi wrote: > Hi all. Im sorry if this is not the right place for this kind of > question, but i've ran out of options. Ive built emacs for opensolaris > and almost all is well, except that it cannot find most of the built- > in modes > i've added the emacs 'list' dir to the loadpath on startup and it > solved some of them, but it still cant load, for instance, cc-mode. > I know i can just download that mode and since its nowhere to be found > (at least not as a .el file), im thinking that there is something > wrong with my installation. Did you download the Emacs you built from the GNU site: http://ftp.gnu.org/pub/gnu/emacs or is it something that came with the OpenSolaris distribution? If it is something that came with OpenSolaris I would recommend downloading the version at GNU if you haven't already down so since it has cc- mode.el as I just downloaded emacs-22.3.tar.gz to my home directory and after running gunzip emacs-22.3.tar.gz tar -xvf emacs-22.3.tar cc-mode.el and cc-mode.elc are in: ~/emacs-22.3/lisp/progmodes/cc-mode.el ~/emacs-22.3./lisp/progmodes/cc-mode.elc I didn't run the entire install since I am on a shared work machine, but configure does create a Makefile in ~/emacs22-3/lisp that has an entry for "cc-mode.el". > finally, my question follows: where can i > set from where emacs lookup things that should be built-in? > There are one or two site-wide (every Emacs user) init files (who's names I can't recall) where I think you could add to the load-path variable. Per this documentation you can also change a c header file before building (but it should already point to the directories where "built-in" .el files like cc-mode were installed) and also set an ENVIRONMENT variable:. ---------------------------------------------------------------------------= --------------------------------------------- load-path The value of this variable is a list of directories to search when loading files with load. Each element is a string (which must be a directory name) or nil (which stands for the current working directory). The value of load-path is initialized from the environment variable EMACSLOADPATH, if that exists; otherwise its default value is specified in emacs/src/epaths.h when Emacs is built. Then the list is expanded by adding subdirectories of the directories in the list. The syntax of EMACSLOADPATH is the same as used for PATH; `:' (or `;', according to the operating system) separates directory names, and `.' is used for the current default directory. Here is an example of how to set your EMACSLOADPATH variable from a csh .login file: