zoukankan      html  css  js  c++  java
  • 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

  • 相关阅读:
    springboot跨域解决
    python实现LRUCache
    oracle整库统计库表数据量--存储过程
    oracle整库统计库表各个字段数据最大长度--存储过程
    mysql数据库初始化脚本分组批量执行
    maven profile 的作用
    配置中包含maven属性,在idea中本地启动无法正常获取配置
    个人随笔
    Java接口interface field及method
    如何将.net core项目部署到IIS上?
  • 原文地址:https://www.cnblogs.com/csophys/p/2422965.html
Copyright © 2011-2022 走看看