I'm with Emacs 23.0.92 for Windows now and it's error. Because I've set it up to load in ~/.emacs, I'm advised to start with --debug-init and here is the backtrace:
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-mode-menu ((t cons ["Comment Out Region" comment-region ...] (cons ["Uncomment Region" ... ...] ...))))
require(cc-langs)
eval-buffer(#<buffer *load*<2>> nil "e:/Ogi/Software/php-mode-1.5.0/php-mode.el" nil t) ; Reading at buffer position 4158
load-with-code-conversion("e:/Ogi/Software/php-mode-1.5.0/php-mode.el" "e:/Ogi/Software/php-mode-1.5.0/php-mode.el" nil nil)
load("php-mode")
eval-buffer(#<buffer *load*> nil "c:/Documents and Settings/Asus/Application Data/.emacs" nil t) ; Reading at buffer position 79
load-with-code-conversion("c:/Documents and Settings/Asus/Application Data/.emacs" "c:/Documents and Settings/Asus/Application Data/.emacs" t t)
load("~/.emacs" t t)
#[nil "..." [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()
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm with Emacs 23.0.92 for Windows now and it's error. Because I've set it up to load in ~/.emacs, I'm advised to start with --debug-init and here is the backtrace:
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-mode-menu ((t cons ["Comment Out Region" comment-region ...] (cons ["Uncomment Region" ... ...] ...))))
require(cc-langs)
eval-buffer(#<buffer *load*<2>> nil "e:/Ogi/Software/php-mode-1.5.0/php-mode.el" nil t) ; Reading at buffer position 4158
load-with-code-conversion("e:/Ogi/Software/php-mode-1.5.0/php-mode.el" "e:/Ogi/Software/php-mode-1.5.0/php-mode.el" nil nil)
load("php-mode")
eval-buffer(#<buffer *load*> nil "c:/Documents and Settings/Asus/Application Data/.emacs" nil t) ; Reading at buffer position 79
load-with-code-conversion("c:/Documents and Settings/Asus/Application Data/.emacs" "c:/Documents and Settings/Asus/Application Data/.emacs" t t)
load("~/.emacs" t t)
#[nil "..." [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()
All this happens when php-mode is loaded in ~/.emacs. When it's loaded manually (M-x load-library php-mode), there is no such error message.