--- Begin Message ---
Subject: |
23.0.60; (require 'cc-langs) causes an error |
Date: |
Mon, 29 Dec 2008 09:35:44 -0800 |
If you eval the following code:
(require 'cc-mode)
(require 'cc-langs)
The following error is triggered:
`c-lang-defconst' must be used in a file
This seems to be a bug. It appears that either (c-get-current-file) is
buggy, or ‘load-in-progress isn’t being set correctly when (require)
is called.
In GNU Emacs 23.0.60.1 (i386-apple-darwin9.6.0, NS apple-appkit-949.43)
of 2008-12-22 on neutron.local
Windowing system distributor `Apple', version
97.112.112.108.101.45.97.112.112.107.105.116.45.57.52.57.46.52.51
configured using `configure '--with-ns''
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: nil
value of $XMODIFIERS: nil
locale-coding-system: nil
default-enable-multibyte-characters: t
Major mode: Grep
Minor modes in effect:
diff-auto-refine-mode: t
erc-track-mode: t
erc-track-minor-mode: t
erc-spelling-mode: t
erc-ring-mode: t
erc-pcomplete-mode: t
erc-netsplit-mode: t
erc-match-mode: t
erc-button-mode: t
erc-fill-mode: t
erc-autojoin-mode: t
erc-irccontrols-mode: t
erc-noncommands-mode: t
erc-readonly-mode: t
erc-scrolltobottom-mode: t
twit-mode: t
yas/minor-mode: t
shell-dirtrack-mode: t
ime-bindings: t
show-paren-mode: t
recentf-mode: t
iswitchb-mode: t
auto-insert-mode: t
tooltip-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
global-auto-composition-mode: t
auto-composition-mode: t
auto-encryption-mode: t
auto-compression-mode: t
size-indication-mode: t
column-number-mode: t
line-number-mode: t
transient-mark-mode: t
abbrev-mode: t
Recent input:
1 M-` C-x b s h e l <return> c <backspace> M-> c d
SPC ~ . . e m <tab> <backspace> <backspace> <backspace>
<backspace> / . e m <tab> <return> s v n u <return>
M-` M-` M-` C-v C-s c - d e f i n e - s <backspace>
M-< C-s d e f i n e - l a n g - c o n C-n C-p M-< C-s
c c - l a n g s C-s C-n C-p M-< C-v C-n C-n C-n C-n
C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-n C-x
C-f C-g <down-mouse-1> <mouse-movement> <mouse-1> M-x
g r e p <return> M-" C-y C-e <return> c c C-_ M-x M-p
<return> M-p SPC * e l <backspace> <backspace> <backspace>
c c * e l . g z C-a z C-e <return> C-s c o m m e n
t - <backspace> SPC o u t SPC r e g C-n C-o C-o C-_
C-_ C-p C-p C-p C-a C-p M-< C-s m u s t SPC b e SPC
u s e d SPC i n SPC C-n C-p M-x M-p <return> M-" m
u s t SPC b e SPC u s e d SPC i n SPC a SPC f i l e
C-e SPC C-a z C-e c c * e l . g z <return> C-x ` C-p
C-p C-p C-p M-m C-p C-p C-p M-m C-n C-n C-n C-n C-n
C-n C-s c - g e t - c u r r e n t - f i l e C-s C-s
C-s C-s C-s C-p M-< C-g C-s c - l a n g - d e f c o
n s t C-s C-n C-p <down-mouse-1> <mouse-1> <menu-bar>
<help-menu> <send-emacs-bug-report>
Recent messages:
Mark saved where search started
Undo! [2 times]
Mark set
Mark saved where search started
Grep finished with no matches found
uncompressing cc-defs.el.gz...done
Mark saved where search started
Mark set
Quit
Mark saved where search started
--- End Message ---
--- Begin Message ---
Subject: |
Re: Bug#1729 |
Date: |
Wed, 23 Dec 2009 23:44:40 -0500 |
User-agent: |
Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) |
This works in the current CVS trunk, perhaps due to the
load-in-progress fixes from July.
--- End Message ---