all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: TheFlyingDutchman <zzbbaadd@aol.com>
To: help-gnu-emacs@gnu.org
Subject: Re: emacs cannot find cc-mode
Date: Thu, 30 Oct 2008 01:55:25 -0700 (PDT)	[thread overview]
Message-ID: <7bf792b6-4116-4b43-83a3-a21e5210da16@g61g2000hsf.googlegroups.com> (raw)
In-Reply-To: 08e005f5-9ea8-43d4-9281-936819882da9@l33g2000pri.googlegroups.com

On Oct 28, 10:57 am, mtakeshi <takesh...@gmail.com> 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:



      reply	other threads:[~2008-10-30  8:55 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-28 17:57 emacs cannot find cc-mode mtakeshi
2008-10-30  8:55 ` TheFlyingDutchman [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7bf792b6-4116-4b43-83a3-a21e5210da16@g61g2000hsf.googlegroups.com \
    --to=zzbbaadd@aol.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.