• 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

  • 相关阅读:
    java源码--ArrayList
    java源码--AbstractList
    java中public protected friendly private作用域
    设置springmvc全局异常
    Java
    Java
    Java
    Java
    Java
    Java
  • 原文地址:https://www.cnblogs.com/csophys/p/2422965.html
Copyright © 2020-2023  润新知