branch: externals/phps-mode
commit a24fb653777f7004fda82b3a2656406ab6cab012
Author: Christian Johansson <[email protected]>
Commit: Christian Johansson <[email protected]>
Fix for environment were threads support is lacking
---
phps-mode-lex-analyzer.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/phps-mode-lex-analyzer.el b/phps-mode-lex-analyzer.el
index 65ec472a84..71927a075a 100644
--- a/phps-mode-lex-analyzer.el
+++ b/phps-mode-lex-analyzer.el
@@ -258,7 +258,8 @@ ALLOW-CACHE-READ and ALLOW-CACHE-WRITE."
start
end
(list 'font-lock-face token-syntax-color))))))
- (thread-yield))
+ (when (fboundp 'thread-yield)
+ (thread-yield)))
(let ((current-time (current-time)))
(setq