Function: semantic-idle-scheduler-enabled-p
semantic-idle-scheduler-enabled-p is a byte-compiled function defined
in idle.el.gz.
Signature
(semantic-idle-scheduler-enabled-p)
Documentation
Return non-nil if idle-scheduler is enabled for this buffer.
idle-scheduler is disabled when debugging or if the buffer size
exceeds the semantic-idle-scheduler-max-buffer-size threshold.
Source Code
;; Defined in /usr/src/emacs/lisp/cedet/semantic/idle.el.gz
(defsubst semantic-idle-scheduler-enabled-p ()
"Return non-nil if idle-scheduler is enabled for this buffer.
idle-scheduler is disabled when debugging or if the buffer size
exceeds the `semantic-idle-scheduler-max-buffer-size' threshold."
(let* ((remote-file? (when (stringp buffer-file-name) (file-remote-p buffer-file-name))))
(and semantic-idle-scheduler-mode
(not (and (boundp 'semantic-debug-enabled)
semantic-debug-enabled))
(not semantic-lex-debug)
;; local file should exist on disk
;; remote file should have active connection
(or (and (null remote-file?) (stringp buffer-file-name)
(file-exists-p buffer-file-name))
(and remote-file? (file-remote-p buffer-file-name nil t)))
(or (<= semantic-idle-scheduler-max-buffer-size 0)
(< (buffer-size) semantic-idle-scheduler-max-buffer-size)))))