浏览代码

Add intangible property for emacs 23

It seems that Emacs 23 does again need the intangible text property.
Carsten Dominik 16 年之前
父节点
当前提交
008969cd6f
共有 2 个文件被更改,包括 7 次插入1 次删除
  1. 5 0
      lisp/ChangeLog
  2. 2 1
      lisp/org-macs.el

+ 5 - 0
lisp/ChangeLog

@@ -1,3 +1,8 @@
+2009-04-13  Carsten Dominik  <carsten.dominik@gmail.com>
+
+	* org-macs.el (org-maybe-intangible): Add intangible property
+	again to invisible text.
+
 2009-04-12  Carsten Dominik  <carsten.dominik@gmail.com>
 
 	* org-exp.el (org-default-export-plist): Handle undefined

+ 2 - 1
lisp/org-macs.el

@@ -85,7 +85,8 @@ In Emacs 22, this is not necessary.  The intangible text property has
 led to problems with flyspell.  These problems are fixed in flyspell.el,
 but we still avoid setting the property in Emacs 22 and later.
 We use a macro so that the test can happen at compilation time."
-  (if (< emacs-major-version 22)
+;  (if (< emacs-major-version 22)
+  (if (not (= emacs-major-version 22))
       `(append '(intangible t) ,props)
     props))