SourceForge has been redesigned. Learn more.
Close

#66 Warning in Emacs 23.0.90 (error in 23.0.92)

php-mode-1.5.0
open
nobody
None
5
2009-04-02
2009-02-11
No

The following message is shown when php-mode 1.5.0 is loaded in Emacs 23.0.90 (for Windows):

c-define-lang-constant: `c-lang-defconst' must be used in a file

php-mode seems to work fine though.

Discussion

  • Ognyan Kulev

    Ognyan Kulev - 2009-04-02

    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()

     
  • Ognyan Kulev

    Ognyan Kulev - 2009-04-02
    • summary: Warning in Emacs 23.0.90 --> Warning in Emacs 23.0.90 (error in 23.0.92)
     
  • Ognyan Kulev

    Ognyan Kulev - 2009-04-08

    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.

     

Log in to post a comment.