Quellcode durchsuchen

Add intangible property for emacs 23

It seems that Emacs 23 does again need the intangible text property.
Carsten Dominik vor 16 Jahren
Ursprung
Commit
008969cd6f
2 geänderte Dateien mit 7 neuen und 1 gelöschten Zeilen
  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))