Twitter iPhone pliant OnePlus 11 PS5 Disney+ Orange Livebox Windows 11

emacs 23.1

1 réponse
Avatar
Guillaume Connan
Bonjour,

j'ai test=C3=A9 l'installation de emacs 23.1 ce matin et y a un truc qui
bloque... En tanpant emacs --debug-init j'obtiens :

8<------8<------8<------8<------8<------8<------8<------8<------8<------
Debugger entered--Lisp error: (error "`c-lang-defconst' must be used in
a file")
signal(error ("`c-lang-defconst' must be used in a file"))
error("`c-lang-defconst' must be used in a file")
c-define-lang-constant(c-block-decls-with-vars (((c++-mode) quote
("class" "struct" "union" "enum" "typedef")) ((c-mode) quote ("struct"
"union" "enum" "typedef")) ((objc-mode) quote ("union" "enum"
"typedef")) (t))) (progn (c-define-lang-constant (quote
c-block-decls-with-vars) (quote ...))) (eval-and-compile
(c-define-lang-constant (quote c-block-decls-with-vars) (quote ...)))
(c-lang-defconst c-block-decls-with-vars "Keywords introducing
declarations that can contain a block which\nmight be followed by
variable declarations, e.g. like \"foo\" in\n\"class Foo { ... }
foo;\". So if there is a block in a declaration\nlike that, it ends
with the following ';' and not right away.\n\nThe keywords on list are
assumed to also be present on one of the\n`*-decl-kwds' lists." t nil
objc (quote ("union" "enum" "typedef")) c (quote ("struct" "union"
"enum" "typedef")) c++ (quote ("class" "struct" "union" "enum"
"typedef"))) (progn (c-lang-defconst c-block-decls-with-vars "Keywords
introducing declarations that can contain a block which\nmight be
followed by variable declarations, e.g. like \"foo\" in\n\"class Foo
{ ... } foo;\". So if there is a block in a declaration\nlike that,
it ends with the following ';' and not right away.\n\nThe keywords on
list are assumed to also be present on one of the\n`*-decl-kwds'
lists." t nil objc (quote ...) c (quote ...) c++ (quote ...))) (if
(fboundp (quote c-lang-defconst)) (progn (c-lang-defconst
c-block-decls-with-vars "Keywords introducing declarations that can
contain a block which\nmight be followed by variable declarations,
e.g. like \"foo\" in\n\"class Foo { ... } foo;\". So if there is a
block in a declaration\nlike that, it ends with the following ';' and
not right away.\n\nThe keywords on list are assumed to also be present
on one of the\n`*-decl-kwds' lists." t nil objc ... c ... c++ ...)))
(when (fboundp (quote c-lang-defconst)) (c-lang-defconst
c-block-decls-with-vars "Keywords introducing declarations that can
contain a block which\nmight be followed by variable declarations,
e.g. like \"foo\" in\n\"class Foo { ... } foo;\". So if there is a
block in a declaration\nlike that, it ends with the following ';' and
not right away.\n\nThe keywords on list are assumed to also be present
on one of the\n`*-decl-kwds' lists." t nil objc (quote ...) c
(quote ...) c++ (quote ...))) eval-buffer(#<buffer *load*> nil
"/home/moi/emacs/asy-mode.el" nil t) ; Reading at buffer position
14957 load-with-code-conversion("/home/moi/emacs/asy-mode.el"
"/home/moi/emacs/asy-mode.el" nil t) require(asy-mode)
byte-code("=C6=C0=C7\"=88=C6=C0=C8\"=88=C6=C0=C9\"=88=C6=C0=CA\"=88=C6=C0=
=CB\"=88=C6=C0=CC\"=88=C6=C0=CD\"=88=C6=C0=CE\"=88=C6=C0=CF\"=88=C6=C0=CD\"=
=88=C6=C0=CF\"=88=C6=C0=D0\"=88=C6=C0=D1\"=88=C6=C0=D2\"=88=D3=D4!=88=D5=D6=
=D7\"=88=D8=D9!B=D3=DA!=88=D3=DB!=88=DC=DD!=88=DE=DF=E0=E1=89$=88=D3=E2!=
=88=E3=E1=89=E1=E4=98=83=86=D3=E5!=88@=84=86=E6
!=88=E1A=E8=E9!=88=E8=EA!=88=EBB=E8=EB!=88=D3=EC!=88=ED=EEM=88=EFC=F0=ED#=
=88=F1DBD=F2DBD=F3DBD=D3=F4!=83=D3=F5=E1!=88=E1=89EF=F6G=E1H=F7=E1!=88=DE=
=F8=F9=E1#=88=E7=E1!=88=E1A=E3I=FA=E1!=88=FBJ=FCK=FD=FEM=88=FF=81M!=88=C3=
=E1!=88=81N=E1!=88=E7=E1!=88=81OL=81P=81Q=E1\"=88=81P=81R=81S\"=88=81P=81T=
=81U\"=88=81P=81V=E1\"=88=81P=81W=E1\"=88=81P=81X=81Y\"=88=81Z
[=81\\=81]\"=87" [load-path use-dialog-box
scroll-preserve-screen-position column-number-mode line-number-mode
system-type add-to-list "/home/moi/emacs/" "/home/moi/emacs.d/"
"/usr/local/share/emacs/22.1/" "/usr/local/share/emacs/22.1/lisp"
"/home/moi/emacs/emacs/site-lisp" "/usr/local/share/emacs/22.1/lisp/"
"/usr/share/emacs22/site-lisp/" "/home/moi/emacs/mupacs-3.2.3/"
"/usr/share/emacs/22.1/lisp/" "/usr/share/emacs/"
"/usr/share/emacs/site-lisp/" "/usr/share/emacs22/" require iso-cvt
add-hook TeX-mode-hook (lambda nil (iso-cvt-define-menu))
expand-file-name "~/gnus-5.10.10/lisp" gnus-load zone load-file
"~/emacs/std_comment.el" autoload trivial-cite "tc" t asy-mode nil
"gnu/linux" server server-start global-font-lock-mode load
"pyrex-mode" "python-mode" "sage" ipython py-shell-fullscreen
[134217848 112 121 45 115 104 101 108 108 return 24 49] define-key "i"
("\\.pyx\\'" . pyrex-mode) ...] 6) load("~/.emacs" t t)
#[nil "=85=B4
#=3D=83=C7=C8Q=827
#=3D=833=CA=C7=CB=CC#=83#=CD=827=CA=C7=CB=CE#=83/=CF=827=CD=827=C7=D0Q=
=D1=D2\n=D1=89#=88=0B=D1=3D=83_=D3=D4=D5=C7=D6Q!\"=D2\f=D1=89#=88=0B=D1=3D=
=83^\n)=0B=83=A4=D7=0B!=D8=9A=83=A4=D9=0B!=89=DAP\"=DB\"!=83=80\"=82=8B=DB!=
=83=8A=82=8B=CB=89=83=A3=DC=0B\"=83=A1=DD=DE=0B#=88=DF=E0!=88*#?=85=B3=CB$=
=D2=E1=D1=89#))=87"
#[init-file-user system-type user-init-file-1 user-init-file otherfile
#source ms-dos "~" "/_emacs" windows-nt directory-files nil
#"^\\.emacs\\(\\.elc?\\)?$" "~/.emacs" "^_emacs\\(\\.elc?\\)?$"
#"~/_emacs" "/.emacs" t load expand-file-name "init"
#file-name-as-directory "/.emacs.d" file-name-extension "elc"
#file-name-sans-extension ".el" file-exists-p file-newer-than-file-p
#message "Warning: %s is newer than %s" sit-for 1 "default" alt
#inhibit-default-init inhibit-startup-screen] 7]()
command-line() normal-top-level()





8<------8<------8<------8<------8<------8<------8<------8<------8<------

D'o=C3=B9 sort ce c-lang machin ?

--=20
Guillaume Connan

1 réponse

Avatar
Sébastien Kirche
Le 24 août 2009 à 12:17, Guillaume Connan vraute :

Bonjour,

j'ai testé l'installation de emacs 23.1 ce matin et y a un truc qui
bloque... En tanpant emacs --debug-init j'obtiens :

8<------8<------8<------8<------8<------8<------8<------8<------8<------
Debugger entered--Lisp error: (error "`c-lang-defconst' must be used
in a file")
[...]
8<------8<------8<------8<------8<------8<------8<------8<------8<------

D'où sort ce c-lang machin ?



Aucune idée.

Tu as vérifié si ce c-lang-defconst n'était pas dans ton .emacs, ou dans
les options sauvegardées via configure ?

Autre piste : si tu as des modules précompilés (.elc) il faut
certainement les supprimer et les recompiler.
--
Sébastien Kirche