all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* function error at start up.
@ 2009-07-26  6:31 sam jesse
  2009-07-26 17:04 ` Drew Adams
  0 siblings, 1 reply; 6+ messages in thread
From: sam jesse @ 2009-07-26  6:31 UTC (permalink / raw)
  To: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 1106 bytes --]

in my .emacs file I put

******************************************
;; Directory to put various el files.
(add-to-list 'load-path "~/.emacs.d/includes")

;; Loading ascii-table
(require 'ascii-table)

;; Loading collection of generic modes
(require 'generic-x)

;; If you have own color scheme and don't like to
;; use emacs default I recommend to use
;; this package:
;; http:/www.emacswiki.org/cgi-bin/wiki.pl?ColorTheme
(add-to-list 'load-path ("~/.emacs.d/plugins/color-theme-6.6.0"))
(require 'color-theme)
(setq color-theme-is-global t)
(color-theme-initialize)
;; This is my favorite color theme.
(color-theme-deep-blue)
*******************************************

when I restart emacs I get
("C:\\Documents and Settings\\emp1\\My Documents\\emacs-22.3\\bin\\emacs
.exe")
Loading encoded-kb...done
Loading cl-macs...done


An error has occurred while loading `c:/Documents and
Settings/emp1/Application Data/.emacs':

Invalid function: ~/.emacs.d/plugins/color-theme-6.6.0
...

but I have a valid path to
C:\Documents and Settings\emp1\Application Data\.emacs
.d\plugins\color-theme-6.6.0


Thanks

[-- Attachment #2: Type: text/html, Size: 1662 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: function error at start up.
  2009-07-26  6:31 function error at start up sam jesse
@ 2009-07-26 17:04 ` Drew Adams
  2009-07-26 17:15   ` sam jesse
  0 siblings, 1 reply; 6+ messages in thread
From: Drew Adams @ 2009-07-26 17:04 UTC (permalink / raw)
  To: 'sam jesse', help-gnu-emacs

> (add-to-list 'load-path ("~/.emacs.d/plugins/color-theme-6.6.0"))
> Invalid function: ~/.emacs.d/plugins/color-theme-6.6.0

You need to quote both args to `add-to-list':

(add-to-list 'load-path '("~/.emacs.d/plugins/color-theme-6.6.0"))
                        ^
                      quote

Without the quote, (foo) is interpreted as a call of function `foo' - in this
case, a call of ~/.emacs.d/plugins/color-theme-6.6.0 (which is not a valid
function).






^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: function error at start up.
  2009-07-26 17:04 ` Drew Adams
@ 2009-07-26 17:15   ` sam jesse
  2009-07-26 17:52     ` Drew Adams
  0 siblings, 1 reply; 6+ messages in thread
From: sam jesse @ 2009-07-26 17:15 UTC (permalink / raw)
  To: Drew Adams; +Cc: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 647 bytes --]

when I do as you suggested. I get

File error: Cannot open load file, color-theme


On Mon, Jul 27, 2009 at 3:04 AM, Drew Adams <drew.adams@oracle.com> wrote:

> > (add-to-list 'load-path ("~/.emacs.d/plugins/color-theme-6.6.0"))
> > Invalid function: ~/.emacs.d/plugins/color-theme-6.6.0
>
> You need to quote both args to `add-to-list':
>
> (add-to-list 'load-path '("~/.emacs.d/plugins/color-theme-6.6.0"))
>                         ^
>                      quote
>
> Without the quote, (foo) is interpreted as a call of function `foo' - in
> this
> case, a call of ~/.emacs.d/plugins/color-theme-6.6.0 (which is not a valid
> function).
>
>
>

[-- Attachment #2: Type: text/html, Size: 1075 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* RE: function error at start up.
  2009-07-26 17:15   ` sam jesse
@ 2009-07-26 17:52     ` Drew Adams
  2009-07-26 21:30       ` sam jesse
  0 siblings, 1 reply; 6+ messages in thread
From: Drew Adams @ 2009-07-26 17:52 UTC (permalink / raw)
  To: 'sam jesse'; +Cc: help-gnu-emacs

>>> (add-to-list 'load-path ("~/.emacs.d/plugins/color-theme-6.6.0"))
>>> Invalid function: ~/.emacs.d/plugins/color-theme-6.6.0
>>
>> You need to quote both args to `add-to-list':
>> (add-to-list 'load-path '("~/.emacs.d/plugins/color-theme-6.6.0"))
>
> when I do as you suggested. I get
> File error: Cannot open load file, color-theme

Oh, right; sorry about that. The second arg to `add-to-list' here needs to be a
directory name, not a list of directory names:

(add-to-list 'load-path "~/.emacs.d/plugins/color-theme-6.6.0")

You are adding the element "~/.emacs.d/plugins/color-theme-6.6.0" to the value
of variable `load-path'.
		







^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: function error at start up.
  2009-07-26 17:52     ` Drew Adams
@ 2009-07-26 21:30       ` sam jesse
  2009-07-26 21:40         ` Lennart Borgman
  0 siblings, 1 reply; 6+ messages in thread
From: sam jesse @ 2009-07-26 21:30 UTC (permalink / raw)
  To: Drew Adams; +Cc: help-gnu-emacs

[-- Attachment #1: Type: text/plain, Size: 949 bytes --]

Thank you. that fixed it.

Can I install Cedet and the ECB "code browser window" in my Windows XP box
where I currently have emacs installed?
I have GNU Emacs 22.3.1 (i386-mingw-nt5.1.2600).



On Mon, Jul 27, 2009 at 3:52 AM, Drew Adams <drew.adams@oracle.com> wrote:

> >>> (add-to-list 'load-path ("~/.emacs.d/plugins/color-theme-6.6.0"))
> >>> Invalid function: ~/.emacs.d/plugins/color-theme-6.6.0
> >>
> >> You need to quote both args to `add-to-list':
> >> (add-to-list 'load-path '("~/.emacs.d/plugins/color-theme-6.6.0"))
> >
> > when I do as you suggested. I get
> > File error: Cannot open load file, color-theme
>
> Oh, right; sorry about that. The second arg to `add-to-list' here needs to
> be a
> directory name, not a list of directory names:
>
> (add-to-list 'load-path "~/.emacs.d/plugins/color-theme-6.6.0")
>
> You are adding the element "~/.emacs.d/plugins/color-theme-6.6.0" to the
> value
> of variable `load-path'.
>
>
>
>
>

[-- Attachment #2: Type: text/html, Size: 1477 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: function error at start up.
  2009-07-26 21:30       ` sam jesse
@ 2009-07-26 21:40         ` Lennart Borgman
  0 siblings, 0 replies; 6+ messages in thread
From: Lennart Borgman @ 2009-07-26 21:40 UTC (permalink / raw)
  To: sam jesse; +Cc: help-gnu-emacs

You could try. There are entries in the nXhtml menu (if you install
nXhtml) that lets you install CEDET and ECB from the devel sources
(which is probably what you currently want).


On Sun, Jul 26, 2009 at 11:30 PM, sam jesse<revrvr@gmail.com> wrote:
> Thank you. that fixed it.
>
> Can I install Cedet and the ECB "code browser window" in my Windows XP box
> where I currently have emacs installed?
> I have GNU Emacs 22.3.1 (i386-mingw-nt5.1.2600).
>
>
>
> On Mon, Jul 27, 2009 at 3:52 AM, Drew Adams <drew.adams@oracle.com> wrote:
>>
>> >>> (add-to-list 'load-path ("~/.emacs.d/plugins/color-theme-6.6.0"))
>> >>> Invalid function: ~/.emacs.d/plugins/color-theme-6.6.0
>> >>
>> >> You need to quote both args to `add-to-list':
>> >> (add-to-list 'load-path '("~/.emacs.d/plugins/color-theme-6.6.0"))
>> >
>> > when I do as you suggested. I get
>> > File error: Cannot open load file, color-theme
>>
>> Oh, right; sorry about that. The second arg to `add-to-list' here needs to
>> be a
>> directory name, not a list of directory names:
>>
>> (add-to-list 'load-path "~/.emacs.d/plugins/color-theme-6.6.0")
>>
>> You are adding the element "~/.emacs.d/plugins/color-theme-6.6.0" to the
>> value
>> of variable `load-path'.
>>
>>
>>
>>
>
>




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2009-07-26 21:40 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-26  6:31 function error at start up sam jesse
2009-07-26 17:04 ` Drew Adams
2009-07-26 17:15   ` sam jesse
2009-07-26 17:52     ` Drew Adams
2009-07-26 21:30       ` sam jesse
2009-07-26 21:40         ` Lennart Borgman

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.