• 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

  • 相关阅读:
    李开复给学习计算机的学生的7点建议(转)
    linux 命令
    易中天的十句话
    11个笑话让你领悟人生
    心情不好的时候看看
    高校青年老师挣扎在辞职边缘 微薄工资继续啃老
    【33.00%】【vijos P1002】过河
    【33.33%】【codeforces 681D】Gifts by the List
    【19.05%】【codeforces 680D】Bear and Tower of Cubes
    【12.78%】【codeforces 677D】Vanya and Treasure
  • 原文地址:https://www.cnblogs.com/csophys/p/2422965.html
Copyright © 2020-2023  润新知