all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* HELP with cc-mode and emacs
@ 2007-06-11 20:14 Chris
  2007-06-12 15:52 ` Alan Mackenzie
  2007-06-12 15:55 ` Alan Mackenzie
  0 siblings, 2 replies; 8+ messages in thread
From: Chris @ 2007-06-11 20:14 UTC (permalink / raw
  To: help-gnu-emacs

Hi all
   I downloaded the latest version of cc-mode (5.31.3) from http://cc-
mode.sourceforge.net/.  Stuck the files in a sub-dir and compiled per 
the instructions 

 "emacs  -batch -no-site-file -q -f batch-byte-compile cc-*.el"

Got the following errors:


Loading /usr/libexec/emacs/21.3/x86_64-redhat-linux/fns-21.3.1.el 
(source)...
Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-align.elc
Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-awk.elc
Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-bytecomp.elc
Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-cmds.elc
Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-compat.elc
While compiling the end of the data in file /net/wally/home/cfoster/.cc-
mode-5.31.3/cc-defs.el:
  ** The function `delete-duplicates' might not be defined at runtime.
  ** The function `font-lock-compile-keywords' is not known to be 
defined.
Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-defs.elc
Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-engine.elc
Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-fix.elc
Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-fonts.elc
While compiling the end of the data in file /net/wally/home/cfoster/.cc-
mode-5.31.3/cc-guess.el:
  ** The following functions are not known to be defined:
    make-progress-reporter, progress-reporter-update,
    progress-reporter-done
Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-guess.elc
Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-langs.elc
Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-lobotomy.elc
Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-menus.elc
Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-mode.elc
Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-styles.elc
Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-subword.elc
Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-vars.elc
Done


So, of course it blows up during the load of the .emacs.el file with the 
following error:

(emacs .emacs.el)
Loading disp-table...done
Loading tool-bar...done
Loading image...done
Loading tooltip...done
Loading /usr/share/emacs/site-lisp/site-start.d/iiimecf-init.el 
(source)...done
Loading /usr/share/emacs/site-lisp/site-start.d/lang-coding-systems-
init.el (source)...
Loading encoded-kb...done
Loading /usr/share/emacs/site-lisp/site-start.d/lang-coding-systems-
init.el (source)...done
Loading /usr/share/emacs/site-lisp/site-start.d/php-mode-init.el 
(source)...done
Loading /usr/share/emacs/site-lisp/site-start.d/po-mode-init.el 
(source)...done
Loading /usr/share/emacs/site-lisp/site-start.d/psgml-init.el 
(source)...done
Loading /usr/share/emacs/site-lisp/site-start.d/python-mode-init.el 
(source)...done
Loading /usr/share/emacs/site-lisp/site-start.d/rpm-spec-mode-init.el 
(source)...done
Loading /usr/share/emacs/site-lisp/site-start.d/ruby-mode-init.el 
(source)...done


An error has occurred while loading `/net/wally/home/cfoster/.emacs.el':

End of file during parsing: "/net/wally/home/cfoster/.emacs.el"

To ensure normal operation, you should investigate the cause
of the error in your initialization file and remove it.  Start
Emacs with the `--debug-init' option to view a complete error
backtrace


Any help is greatly appreciated.  Thanks in advance!!

     Chris Foster 

-- 
Posted via a free Usenet account from http://www.teranews.com

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

* Re: HELP with cc-mode and emacs
       [not found] <mailman.2018.1181658574.32220.help-gnu-emacs@gnu.org>
@ 2007-06-12 14:25 ` Chris
  2007-06-12 22:40   ` Alan Mackenzie
       [not found]   ` <mailman.2062.1181682916.32220.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 8+ messages in thread
From: Chris @ 2007-06-12 14:25 UTC (permalink / raw
  To: help-gnu-emacs


I did have a syntax error in .emacs.el file.
2 double quotes in path name where there should have been only one.

Now, when I attempt to load a file with the .cpp (or .c) extension, I get 
the following error in the Message Buffer

File mode specification error: (void-function cc-mode)

and it does not 'colorize'




Thank You So Much! for the help 

Chris Foster 



-- 
Posted via a free Usenet account from http://www.teranews.com

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

* Re: HELP with cc-mode and emacs
  2007-06-11 20:14 HELP with cc-mode and emacs Chris
@ 2007-06-12 15:52 ` Alan Mackenzie
  2007-06-12 15:55 ` Alan Mackenzie
  1 sibling, 0 replies; 8+ messages in thread
From: Alan Mackenzie @ 2007-06-12 15:52 UTC (permalink / raw
  To: gnu-emacs-help

> Hi all
>    I downloaded the latest version of cc-mode (5.31.3) from http://cc-
> mode.sourceforge.net/.  Stuck the files in a sub-dir and compiled per 
> the instructions 

> "emacs  -batch -no-site-file -q -f batch-byte-compile cc-*.el"

> Got the following errors:

> Loading /usr/libexec/emacs/21.3/x86_64-redhat-linux/fns-21.3.1.el 
> (source)...
> Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-align.elc
> Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-awk.elc
> Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-bytecomp.elc
> Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-cmds.elc
> Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-compat.elc
> While compiling the end of the data in file /net/wally/home/cfoster/.cc- mode-5.31.3/cc-defs.el:
>       ** The function `delete-duplicates' might not be defined at runtime.
>       ** The function `font-lock-compile-keywords' is not known to be 
>       defined.
> Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-defs.elc
> Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-engine.elc
> Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-fix.elc
> Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-fonts.elc
> While compiling the end of the data in file /net/wally/home/cfoster/.cc- mode-5.31.3/cc-guess.el:
>   ** The following functions are not known to be defined:
>       make-progress-reporter, progress-reporter-update,
>       progress-reporter-done
> Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-guess.elc
> Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-langs.elc
> Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-lobotomy.elc
> Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-menus.elc
> Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-mode.elc
> Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-styles.elc
> Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-subword.elc
> Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-vars.elc
> Done

They messages aren't errors, they're just informational messages.  Some
of them are XEmacs functions (CC Mode is intended to work with both GNU
Emacs and XEmacs), the other one (delete-duplicates) is a "CL" function.
(In the "Common Lisp" extension of Emacs Lisp).  It looks like your CC
Mode has been properly compiled.  :-)

(Incidentally, it is usually helpful to state what Emacs you're building
on (M-x emacs-version), although here it seems clear you're using GNU
Emacs 21.3)

> So, of course ....

???  :-)

> ... it blows up during the load of the .emacs.el file with the
> following error:

> (emacs .emacs.el)
> Loading disp-table...done
> Loading tool-bar...done
> Loading image...done
> Loading tooltip...done
> Loading /usr/share/emacs/site-lisp/site-start.d/iiimecf-init.el 
> (source)...done

[ quite a few more of the same snipped. ]

> Loading /usr/share/emacs/site-lisp/site-start.d/ruby-mode-init.el 
> (source)...done


> An error has occurred while loading `/net/wally/home/cfoster/.emacs.el':

> End of file during parsing: "/net/wally/home/cfoster/.emacs.el"

That looks like you've got too few ")"s in your .emacs.el.  Presumably
you've just edited this file to put your .cc-mode-5.3.1.1 directory into
load-path.  Check that your last change to .emacs.el was syntactically
correct.  You can do this with "emacs -q" followed by loading your
.emacs.el with C-x C-f and looking at it.  Alternatively .....

> To ensure normal operation, you should investigate the cause
> of the error in your initialization file and remove it.  Start
> Emacs with the `--debug-init' option to view a complete error
> backtrace

..... you can use "emacs --debug-init", like the error messages says.
This should give you something to go by, or at least something you can
post here if it doesn't seem to make any sense.

> Any help is greatly appreciated.  Thanks in advance!!

We'll have you up and running in no time.  :-)

> Chris Foster 

-- 
Alan Mackenzie (Ittersbach, Germany).

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

* Re: HELP with cc-mode and emacs
  2007-06-11 20:14 HELP with cc-mode and emacs Chris
  2007-06-12 15:52 ` Alan Mackenzie
@ 2007-06-12 15:55 ` Alan Mackenzie
  1 sibling, 0 replies; 8+ messages in thread
From: Alan Mackenzie @ 2007-06-12 15:55 UTC (permalink / raw
  To: help-gnu-emacs

> Hi all
>    I downloaded the latest version of cc-mode (5.31.3) from http://cc-
> mode.sourceforge.net/.  Stuck the files in a sub-dir and compiled per 
> the instructions 

> "emacs  -batch -no-site-file -q -f batch-byte-compile cc-*.el"

> Got the following errors:

> Loading /usr/libexec/emacs/21.3/x86_64-redhat-linux/fns-21.3.1.el 
> (source)...
> Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-align.elc
> Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-awk.elc
> Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-bytecomp.elc
> Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-cmds.elc
> Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-compat.elc
> While compiling the end of the data in file /net/wally/home/cfoster/.cc- mode-5.31.3/cc-defs.el:
>       ** The function `delete-duplicates' might not be defined at runtime.
>       ** The function `font-lock-compile-keywords' is not known to be 
>       defined.
> Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-defs.elc
> Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-engine.elc
> Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-fix.elc
> Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-fonts.elc
> While compiling the end of the data in file /net/wally/home/cfoster/.cc- mode-5.31.3/cc-guess.el:
>   ** The following functions are not known to be defined:
>       make-progress-reporter, progress-reporter-update,
>       progress-reporter-done
> Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-guess.elc
> Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-langs.elc
> Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-lobotomy.elc
> Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-menus.elc
> Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-mode.elc
> Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-styles.elc
> Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-subword.elc
> Wrote /net/wally/home/cfoster/.cc-mode-5.31.3/cc-vars.elc
> Done

These messages aren't errors, they're just informational messages.  Some
of them are XEmacs functions (CC Mode is intended to work with both GNU
Emacs and XEmacs), the other one (delete-duplicates) is a "CL" function.
(In the "Common Lisp" extension of Emacs Lisp).  It looks like your CC
Mode has been properly compiled.  :-)

(Incidentally, it is usually helpful to state what Emacs you're building
on (M-x emacs-version), although here it seems clear you're using GNU
Emacs 21.3)

> So, of course ....

???  :-)

> ... it blows up during the load of the .emacs.el file with the
> following error:

> (emacs .emacs.el)
> Loading disp-table...done
> Loading tool-bar...done
> Loading image...done
> Loading tooltip...done
> Loading /usr/share/emacs/site-lisp/site-start.d/iiimecf-init.el 
> (source)...done

[ quite a few more of the same snipped. ]

> Loading /usr/share/emacs/site-lisp/site-start.d/ruby-mode-init.el 
> (source)...done


> An error has occurred while loading `/net/wally/home/cfoster/.emacs.el':

> End of file during parsing: "/net/wally/home/cfoster/.emacs.el"

That looks like you've got too few ")"s in your .emacs.el.  Presumably
you've just edited this file to put your .cc-mode-5.3.1.1 directory into
load-path.  Check that your last change to .emacs.el was syntactically
correct.  You can do this with "emacs -q" followed by loading your
.emacs.el with C-x C-f and looking at it.  Alternatively .....

> To ensure normal operation, you should investigate the cause
> of the error in your initialization file and remove it.  Start
> Emacs with the `--debug-init' option to view a complete error
> backtrace

..... you can use "emacs --debug-init", like the error messages says.
This should give you something to go by, or at least something you can
post here if it doesn't seem to make any sense.

> Any help is greatly appreciated.  Thanks in advance!!

We'll have you up and running in no time.  :-)

> Chris Foster 

-- 
Alan Mackenzie (Ittersbach, Germany).

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

* Re: HELP with cc-mode and emacs
  2007-06-12 14:25 ` Chris
@ 2007-06-12 22:40   ` Alan Mackenzie
       [not found]   ` <mailman.2062.1181682916.32220.help-gnu-emacs@gnu.org>
  1 sibling, 0 replies; 8+ messages in thread
From: Alan Mackenzie @ 2007-06-12 22:40 UTC (permalink / raw
  To: help-gnu-emacs

Hallo again, Chris!

On Tue, Jun 12, 2007 at 02:25:33PM +0000, Chris wrote:

> I did have a syntax error in .emacs.el file.
> 2 double quotes in path name where there should have been only one.

Glad you got that fixed.

> Now, when I attempt to load a file with the .cpp (or .c) extension, I
> get the following error in the Message Buffer

> File mode specification error: (void-function cc-mode)

Again, I'm having to guess what you've done.  What I think you've done is
to add some entries to auto-mode-alist, something like this:

    ("\\.c\\'" . cc-mode)

(in your .emacs.el, of course).  There isn't, in fact, a function called
cc-mode.  There's c-mode, c++-mode, java-mode, objc-mode, idl-mode,
pike-mode and awk-mode.  It even tells you this in the Fine Manual which
came with the distribution (on page "Introduction" :-).  If you haven't
got the tool to generate the info file (i.e. makeinfo), there's an
online version of the manual at
<http://cc-mode.sf.net/html-manual/index.html>.  But I urge you to get
and use makeinfo, and install cc-mode.info in your Emacs; just as soon as
you've thrown off any residual frustration, rage and confusion.  ;-)

The auto-mode-alist as it already was should have had the necessary
entries.  So if you remove your additions to it, it will _hopefully_
work.

Again, I might be wrong about auto-mode-alist.  When you ask for help
with a problem like this, it's always best to write down everything
you've changed - for example:

    "After compiling CC Mode, I extended auto-mode-alist like this, so
    that loading my C files would get the new mode:

        (push '("\\.c\\'" . cc-mode) auto-mode-alist)."

Then we can see much more easily what's gone wrong.  Surprisingly often,
when you do this, you'll get a "Eureka moment" before you even fire the
email off.
 
> and it does not 'colorize'

No.  It will do though, when it finds the mode.  The Emacs jargon for
this is "Font Locking", by the way.  No, it doesn't make sense.  ;-)

> Thank You So Much! for the help 

No problem!  Hope you get it sorted out this time.
 
> Chris Foster 

All the best!

-- 
Alan Mackenzie (Ittersbach, Germany)

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

* Re: HELP with cc-mode and emacs
       [not found]   ` <mailman.2062.1181682916.32220.help-gnu-emacs@gnu.org>
@ 2007-06-13 13:31     ` Chris
  2007-06-13 16:03       ` Peter Dyballa
  2007-06-13 18:06       ` Alan Mackenzie
  0 siblings, 2 replies; 8+ messages in thread
From: Chris @ 2007-06-13 13:31 UTC (permalink / raw
  To: help-gnu-emacs

Frustration Continues !!!


I started from scratch

byte compiled the .el files in version 5.31.3 from inside emacs using 
the command :

 M-0 M-x byte-recompile-directory RET

Recieced the following messages:


Compiling file /net/wally/home/cfoster/.cc-mode-5.31.3/cc-align.el at 
Wed Jun 13 08:16:35 2007
Compiling file /net/wally/home/cfoster/.cc-mode-5.31.3/cc-awk.el at Wed 
Jun 13 08:16:35 2007
Compiling file /net/wally/home/cfoster/.cc-mode-5.31.3/cc-bytecomp.el at 
Wed Jun 13 08:16:35 2007
Compiling file /net/wally/home/cfoster/.cc-mode-5.31.3/cc-cmds.el at Wed 
Jun 13 08:16:35 2007
Compiling file /net/wally/home/cfoster/.cc-mode-5.31.3/cc-compat.el at 
Wed Jun 13 08:16:36 2007
Compiling file /net/wally/home/cfoster/.cc-mode-5.31.3/cc-defs.el at Wed 
Jun 13 08:16:36 2007
  ** The function `delete-duplicates' might not be defined at runtime.
  ** The function `font-lock-compile-keywords' is not known to be 
defined.

Compiling file /net/wally/home/cfoster/.cc-mode-5.31.3/cc-engine.el at 
Wed Jun 13 08:16:36 2007
Compiling file /net/wally/home/cfoster/.cc-mode-5.31.3/cc-fix.el at Wed 
Jun 13 08:16:37 2007
Compiling file /net/wally/home/cfoster/.cc-mode-5.31.3/cc-fonts.el at 
Wed Jun 13 08:16:37 2007
Compiling file /net/wally/home/cfoster/.cc-mode-5.31.3/cc-guess.el at 
Wed Jun 13 08:16:37 2007
  ** The following functions are not known to be defined:
    make-progress-reporter, progress-reporter-update,
    progress-reporter-done

Compiling file /net/wally/home/cfoster/.cc-mode-5.31.3/cc-langs.el at 
Wed Jun 13 08:16:37 2007
Compiling file /net/wally/home/cfoster/.cc-mode-5.31.3/cc-lobotomy.el at 
Wed Jun 13 08:16:37 2007
Compiling file /net/wally/home/cfoster/.cc-mode-5.31.3/cc-menus.el at 
Wed Jun 13 08:16:37 2007
Compiling file /net/wally/home/cfoster/.cc-mode-5.31.3/cc-mode.el at Wed 
Jun 13 08:16:37 2007
Compiling file /net/wally/home/cfoster/.cc-mode-5.31.3/cc-styles.el at 
Wed Jun 13 08:16:38 2007
Compiling file /net/wally/home/cfoster/.cc-mode-5.31.3/cc-subword.el at 
Wed Jun 13 08:16:38 2007
Compiling file /net/wally/home/cfoster/.cc-mode-5.31.3/cc-vars.el at Wed 
Jun 13 08:16:38 2007





Here is a portion of my .emacs.el:



;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; C++ Mode
(autoload 'awk-mode "/net/wally/home/cfoster/.cc-mode-5.31.3/cc-mode" 
nil t)

(add-hook 'awk-mode-hook '(lambda () (font-lock-mode 1)))

(setq auto-mode-alist (cons  '("\\.cpp\\'" . awk-mode) auto-mode-alist))
(setq auto-mode-alist (cons  '("\\.c\\'" . awk-mode) auto-mode-alist))
(setq auto-mode-alist (cons  '("\\.h\\'" . awk-mode) auto-mode-alist))







Any ideas?    Thanks Again

         Chris Foster 


-- 
Posted via a free Usenet account from http://www.teranews.com

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

* Re: HELP with cc-mode and emacs
  2007-06-13 13:31     ` Chris
@ 2007-06-13 16:03       ` Peter Dyballa
  2007-06-13 18:06       ` Alan Mackenzie
  1 sibling, 0 replies; 8+ messages in thread
From: Peter Dyballa @ 2007-06-13 16:03 UTC (permalink / raw
  To: Chris; +Cc: help-gnu-emacs


Am 13.06.2007 um 15:31 schrieb Chris:

>   ** The function `delete-duplicates' might not be defined at runtime.
>   ** The function `font-lock-compile-keywords' is not known to be
> defined.
>
>   ** The following functions are not known to be defined:
>     make-progress-reporter, progress-reporter-update,
>     progress-reporter-done


These messages do not mean much, in any case they do *not* mean errors.

"Might not be defined at runtime" expresses that in the byte- 
compiling environment this function was loaded from some external  
source or it was not found in the dumped image; look into loadup.el!  
"The following functions are not known to be defined" describes a  
similiar situation.

--
Greetings

   Pete

"What do you think of Western Civilisation?"
"I think it would be a good idea!"
                          -- Mohandas Karamchand Gandhi

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

* Re: HELP with cc-mode and emacs
  2007-06-13 13:31     ` Chris
  2007-06-13 16:03       ` Peter Dyballa
@ 2007-06-13 18:06       ` Alan Mackenzie
  1 sibling, 0 replies; 8+ messages in thread
From: Alan Mackenzie @ 2007-06-13 18:06 UTC (permalink / raw
  To: help-gnu-emacs

Hello again, Chris!

On Wed, Jun 13, 2007 at 01:31:56PM +0000, Chris wrote:
> Frustration Continues !!!

Not good!

> I started from scratch
 
> byte compiled the .el files in version 5.31.3 from inside emacs using 
> the command :

>  M-0 M-x byte-recompile-directory RET
 
OK.  I think you'd compiled CC Mode OK the first time, but recompiling
won't have done any harm.
 
> Recieved the following messages:

[ snipped ]

They look like the expected messages.  

> 
> Here is a portion of my .emacs.el:

> ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
> ;; C++ Mode
> (autoload 'awk-mode "/net/wally/home/cfoster/.cc-mode-5.31.3/cc-mode" 
> nil t)

That looks fine.

> (add-hook 'awk-mode-hook '(lambda () (font-lock-mode 1)))

This looks to be not false, but probably not quite what you want.  It
will enable font-lock only for AWK files.  To enable Font Lock for all
of the CC Mode modes, use this:

    (add-hook 'cc-mode-common-hook 'turn-on-font-lock)

> (setq auto-mode-alist (cons  '("\\.cpp\\'" . awk-mode) auto-mode-alist))
> (setq auto-mode-alist (cons  '("\\.c\\'" . awk-mode) auto-mode-alist))
> (setq auto-mode-alist (cons  '("\\.h\\'" . awk-mode) auto-mode-alist))

These are definitely wrong.  You want to edit .cpp files with c++-mode,
not awk-mode.  The seven modes (c-mode, c++-mode, java-mode, objc-mode,
idl-mode, pike-mode, awk-mode) are variants on a single theme, but
aren't identical.

You should just remove these three lines; those settings were already in
Emacs-21.3.

> Any ideas?    Thanks Again
 
Er...  Um...  How is your system, set up as you've just described, not
working right at the moment?  This is quite helpful information.  ;-)
 
>          Chris Foster 

-- 
Alan Mackenzie (Ittersbach, Germany).

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

end of thread, other threads:[~2007-06-13 18:06 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-06-11 20:14 HELP with cc-mode and emacs Chris
2007-06-12 15:52 ` Alan Mackenzie
2007-06-12 15:55 ` Alan Mackenzie
     [not found] <mailman.2018.1181658574.32220.help-gnu-emacs@gnu.org>
2007-06-12 14:25 ` Chris
2007-06-12 22:40   ` Alan Mackenzie
     [not found]   ` <mailman.2062.1181682916.32220.help-gnu-emacs@gnu.org>
2007-06-13 13:31     ` Chris
2007-06-13 16:03       ` Peter Dyballa
2007-06-13 18:06       ` Alan Mackenzie

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.