From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: axa Newsgroups: gmane.emacs.help Subject: c-mode-addons Date: Mon, 26 Apr 2004 01:12:46 +0200 (CEST) Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: sea.gmane.org 1082934989 31887 80.91.224.253 (25 Apr 2004 23:16:29 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 25 Apr 2004 23:16:29 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Apr 26 01:16:19 2004 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1BHsrC-0000KN-00 for ; Mon, 26 Apr 2004 01:16:19 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BHspK-00075B-IF for geh-help-gnu-emacs@m.gmane.org; Sun, 25 Apr 2004 19:14:22 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.30) id 1BHsoh-0006s6-MV for help-gnu-emacs@gnu.org; Sun, 25 Apr 2004 19:13:43 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.30) id 1BHsoA-0006OG-9X for help-gnu-emacs@gnu.org; Sun, 25 Apr 2004 19:13:41 -0400 Original-Received: from [212.111.94.2] (helo=stargate1.agtel.net) by monty-python.gnu.org with esmtp (Exim 4.30) id 1BHsnl-0005ub-Je for help-gnu-emacs@gnu.org; Sun, 25 Apr 2004 19:12:45 -0400 Original-Received: from [212.200.132.105] (account axa@sendmail.ru [212.200.132.105] verified) by stargate1.agtel.net (CommuniGate Pro SMTP 4.0b8) with ESMTP id 19833794 for help-gnu-emacs@gnu.org; Mon, 26 Apr 2004 03:12:43 +0400 Original-Received: from axa by darkstar.example.net with esmtp (masqmail 0.2.20) id 1BHsnm-0QY-00 for ; Mon, 26 Apr 2004 01:12:46 +0200 X-X-Sender: axa@darkstar.example.net Original-To: help-gnu-emacs@gnu.org In-Reply-To: X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.4 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:17993 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:17993 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(# nil "~/.emacs" nil t) load-with-code-conversion("/home/axa/.emacs" "~/.emacs" t t) load("~/.emacs" t t) #[nil "^H\205\227^@ =\203^Q^@^HQ\2025^@ =\203'^@#\203#^@\2025^@\2025^@ =\2 031^@\2025^@^HQ^Z^S\n\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.