emacs 打开nxhtml时候的警告取消

 

 

emacs 打开nxhtml时候的警告取消

Table of Contents

1 问题

在用nxhtml打开html的时候会出现这样的警告

Warning: `font-lock-beginning-of-syntax-function' is an obsolete variable (as
of Emacs 23.3); use `syntax-begin-function' instead

2 解决方法

在配置文件中加入以下的语句,其中 emacs-major-version和emacs-minor-version随着具体的emacs版本自己设定即可。

    ;; Mumamo is making emacs 23.3 freak out:
(when (and (equal emacs-major-version 23)
           (equal emacs-minor-version 4))
  (eval-after-load "bytecomp"
    '(add-to-list 'byte-compile-not-obsolete-vars
                  'font-lock-beginning-of-syntax-function))
  ;; tramp-compat.el clobbers this variable!
  (eval-after-load "tramp-compat"
    '(add-to-list 'byte-compile-not-obsolete-vars
                  'font-lock-beginning-of-syntax-function)))

Author: <Administrator@chensheng>

Date: 2012-03-29 10:57:16

HTML generated by org-mode 6.33x in emacs 23

posted @ 2012-03-29 11:02  csophys  阅读(460)  评论(0编辑  收藏  举报