help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

c-mode-addons


From: axa
Subject: c-mode-addons
Date: Mon, 26 Apr 2004 01:12:46 +0200 (CEST)

On Mon, 26 Apr 2004 axa@sendmail.ru wrote:

I installed c-mode-addons, but have a litle problems with it, and would
like to ask you to help me with it.
The version of c-mode-addon is 0.1 and version of emacs on my machine is 21.3.

I created "c_synopsis_list" with provided bash script in package. Then in
"c-mode-addons.el" I've changed line:
       (synopsis-file "~/elisp/c-mode-addons/c_synopsis_list"))
as suggested, to point to the full file name of "c_synopsis_list". Finally
I've added to my ~/.emacs file:
   (add-to-list 'load-path "~/c-mode-addons-0.1/")
again to point to directory where "c-mode-addons.el" resides (which is the
same place as for "c_synopsis_list"), and at the end, the following lines:
   (load "c-mode-addons")

   (define-key c-mode-map "\M-s" 'c-synopsis-at-point)
   (define-key c++-mode-map "\M-s" 'c-synopsis-at-point)

   (define-key c-mode-map "\C-ce" 'c-eval-enum)
   (define-key c++-mode-map "\C-ce" 'c-eval-enum)

   (define-key c-mode-map "(" 'c-electric-parenthesis-open)
   (define-key c++-mode-map "(" 'c-electric-parenthesis-open)

But when I add any of the last 6 lines (those defining c/c++-mode-map) I
get error when starting emacs:
---start---
(emacs .emacs)
Loading disp-table...done
Loading font-lock...
Loading regexp-opt...done
Loading font-lock...done
Loading c-mode-addons (source)...done


An error has occurred while loading `/home/axa/.emacs':

Symbol's value as variable is void: c-mode-map

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
---end---
And when I call emacs again with `--debug-init' options, I get:
---start---
Debugger entered--Lisp error: (void-variable c-mode-map)
  (define-key c-mode-map "(" (quote c-electric-parenthesis-open))
  eval-buffer(#<buffer  *load*> nil "~/.emacs" nil t)
  load-with-code-conversion("/home/axa/.emacs" "~/.emacs" t t)
  load("~/.emacs" t t)
  #[nil "^H\205\227^@   <C6>=\203^Q^@<C7>^H<C8>Q\2025^@
<C9>=\203'^@<CA><C7><CB><CC>#\203#^@<CD>\2025^@<CE>\2025^@   <CF>=\2
031^@<D0>\2025^@<C7>^H<D1>Q^Z<D2>^S<D3>\n<D2>\211#$
  command-line()
  normal-top-level()
---end---

Does anyone know how to correct this problem?

Thanks.

Best regards, axa
---
Real Users find the one combination of bizarre input values that shuts
down the system for days.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]