aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--x-symbol/lisp/x-symbol-emacs.el6
1 files changed, 4 insertions, 2 deletions
diff --git a/x-symbol/lisp/x-symbol-emacs.el b/x-symbol/lisp/x-symbol-emacs.el
index 1966328e..56382256 100644
--- a/x-symbol/lisp/x-symbol-emacs.el
+++ b/x-symbol/lisp/x-symbol-emacs.el
@@ -73,8 +73,10 @@ test."
(locate-library "syntax")))
;; with the following line, "reveal invisible around point" won't work:
-(setq x-symbol-emacs-has-font-lock-with-props 'invisible)
-;; da: above seems no longer true with, e.g., Emacs 22.1.1.
+(setq x-symbol-emacs-has-font-lock-with-props
+ (if (boundp 'font-lock-extra-managed-props)
+ 'invisible))
+;; da: above seems no longer true with, e.g., works in Emacs 22.1.1.
;; So enable this by default now since it results in better
;; display, no space between text and sub/superscripts.