emacs-pretest-bug
[Top][All Lists]
Advanced

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

Latest cc-mode doesn't like eval-after-load c-set-style


From: Andrew M. Scott
Subject: Latest cc-mode doesn't like eval-after-load c-set-style
Date: Mon, 5 Dec 2005 10:48:13 -0700

I've had the following code snippet in my .emacs file for ages, but
only recently (since cc-mode 5.31?) has it produced errors like this one.

% emacs -q

Eval the following code snippet:
(eval-after-load "cc-mode"
    '(progn
      (c-set-style "gnu")
      ))

C-x C-f junk.c

*Messages* reports

(emacs -q)
For information about the GNU Project and its goals, type C-h C-p.
(progn (c-set-style "gnu"))
(New file)
Loading cc-mode...
File mode specification error: (error "Buffer junk.c is not a CC Mode buffer 
(c-set-style)")
Loading emacsbug...done
Loading mailalias...done
Loading help-mode...done


In GNU Emacs 22.0.50.1 (x86_64-unknown-linux-gnu, X toolkit)
 of 2005-12-05 on chlr5836
X server distributor `The XFree86 Project, Inc', version 11.0.40201000
configured using `configure '--prefix=/stor/garray/linux_2.6.5_x86-64' 
'--x-includes=/usr/intel/pkgs/X11/R6.7.0-64/include' 
'--x-libraries=/usr/intel/pkgs/X11/R6.7.0-64/lib' 'CC=gcc' 'CFLAGS=-O2 
-I/usr/intel/pkgs/X11/R6.7.0-64/include -L/usr/intel/pkgs/X11/R6.7.0-64/lib 
-I/usr/intel/pkgs/zlib/1.2.1-64/include -L/usr/intel/pkgs/zlib/1.2.1-64/lib  
-I/usr/intel/pkgs/ncurses/5.4/include -L/usr/intel/pkgs/ncurses/5.4/lib 
-I/usr/intel/pkgs/libungif/4.1.3/include -L/usr/intel/pkgs/libungif/4.1.3/lib 
-I/usr/intel/pkgs/libpng/1.0.16rc1-64/include 
-L/usr/intel/pkgs/libpng/1.0.16rc1-64/lib -I/usr/intel/pkgs/jpeg/6b-64/include 
-L/usr/intel/pkgs/jpeg/6b-64/lib' 'LDFLAGS=-L/usr/intel/pkgs/X11/R6.7.0-64/lib 
-L/usr/intel/pkgs/zlib/1.2.1-64/lib -L/usr/intel/pkgs/ncurses/5.4/lib 
-L/usr/intel/pkgs/libungif/4.1.3/lib -L/usr/intel/pkgs/libpng/1.0.16rc1-64/lib 
-L/usr/intel/pkgs/jpeg/6b-64/lib 
-Wl,-rpath=/usr/intel/pkgs/X11/R6.7.0-64/lib:/usr/intel/pkgs/zlib/1.2.1-64/lib:/usr/intel/pkgs/ncurses/5.!
 
4/lib:/usr/intel/pkgs/libungif/4.1.3/lib:/usr/intel/pkgs/libpng/1.0.16rc1-64/lib:/usr/intel/pkgs/jpeg/6b-64/lib''

Important settings:
  value of $LC_ALL: nil
  value of $LC_COLLATE: nil
  value of $LC_CTYPE: nil
  value of $LC_MESSAGES: nil
  value of $LC_MONETARY: nil
  value of $LC_NUMERIC: nil
  value of $LC_TIME: nil
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8
  default-enable-multibyte-characters: t

Major mode: Fundamental

Minor modes in effect:
  tooltip-mode: t
  auto-compression-mode: t
  tool-bar-mode: t
  mouse-wheel-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  unify-8859-on-encoding-mode: t
  utf-translate-cjk-mode: t
  line-number-mode: t

Recent messages:
(emacs -q)
For information about the GNU Project and its goals, type C-h C-p.
(progn (c-set-style "gnu"))
(New file)
Loading cc-mode...
File mode specification error: (error "Buffer junk.c is not a CC Mode buffer 
(c-set-style)")
Loading emacsbug...done




reply via email to

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