Mercurial > emacs
comparison lisp/cedet/semantic/idle.el @ 104463:e4788b39543d
lisp/cedet/semantic/idle.el: Add local vars for autoloading.
(global-semantic-idle-scheduler-mode)
(semantic-idle-scheduler-mode): Autoload.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Sat, 05 Sep 2009 23:25:26 +0000 |
parents | e4842bf0f303 |
children | 6ccad1511df1 |
comparison
equal
deleted
inserted
replaced
104462:de6e9d927035 | 104463:e4788b39543d |
---|---|
126 ;;; MINOR MODE | 126 ;;; MINOR MODE |
127 ;; | 127 ;; |
128 ;; The minor mode portion of this code just sets up the minor mode | 128 ;; The minor mode portion of this code just sets up the minor mode |
129 ;; which does the initial scheduling of the idle timers. | 129 ;; which does the initial scheduling of the idle timers. |
130 ;; | 130 ;; |
131 ;;;###autoload | |
131 (defcustom global-semantic-idle-scheduler-mode nil | 132 (defcustom global-semantic-idle-scheduler-mode nil |
132 "*If non-nil, enable global use of idle-scheduler mode." | 133 "*If non-nil, enable global use of idle-scheduler mode." |
133 :group 'semantic | 134 :group 'semantic |
134 :group 'semantic-modes | 135 :group 'semantic-modes |
135 :type 'boolean | 136 :type 'boolean |
136 :require 'semantic/idle | 137 :require 'semantic/idle |
137 :initialize 'custom-initialize-default | 138 :initialize 'custom-initialize-default |
138 :set (lambda (sym val) | 139 :set (lambda (sym val) |
139 (global-semantic-idle-scheduler-mode (if val 1 -1)))) | 140 (global-semantic-idle-scheduler-mode (if val 1 -1)))) |
140 | 141 |
142 ;;;###autoload | |
141 (defun global-semantic-idle-scheduler-mode (&optional arg) | 143 (defun global-semantic-idle-scheduler-mode (&optional arg) |
142 "Toggle global use of option `semantic-idle-scheduler-mode'. | 144 "Toggle global use of option `semantic-idle-scheduler-mode'. |
143 The idle scheduler with automatically reparse buffers in idle time, | 145 The idle scheduler with automatically reparse buffers in idle time, |
144 and then schedule other jobs setup with `semantic-idle-scheduler-add'. | 146 and then schedule other jobs setup with `semantic-idle-scheduler-add'. |
145 If ARG is positive, enable, if it is negative, disable. | 147 If ARG is positive, enable, if it is negative, disable. |
191 (error "Buffer %s was not set up idle time scheduling" | 193 (error "Buffer %s was not set up idle time scheduling" |
192 (buffer-name))) | 194 (buffer-name))) |
193 (semantic-idle-scheduler-setup-timers))) | 195 (semantic-idle-scheduler-setup-timers))) |
194 semantic-idle-scheduler-mode) | 196 semantic-idle-scheduler-mode) |
195 | 197 |
198 ;;;###autoload | |
196 (defun semantic-idle-scheduler-mode (&optional arg) | 199 (defun semantic-idle-scheduler-mode (&optional arg) |
197 "Minor mode to auto parse buffer following a change. | 200 "Minor mode to auto parse buffer following a change. |
198 When this mode is off, a buffer is only rescanned for tokens when | 201 When this mode is off, a buffer is only rescanned for tokens when |
199 some command requests the list of available tokens. When idle-scheduler | 202 some command requests the list of available tokens. When idle-scheduler |
200 is enabled, Emacs periodically checks to see if the buffer is out of | 203 is enabled, Emacs periodically checks to see if the buffer is out of |
971 ;; Add the ability to override sometime. | 974 ;; Add the ability to override sometime. |
972 (semantic-idle-completion-list-default)) | 975 (semantic-idle-completion-list-default)) |
973 | 976 |
974 (provide 'semantic/idle) | 977 (provide 'semantic/idle) |
975 | 978 |
979 ;; Local variables: | |
980 ;; generated-autoload-file: "loaddefs.el" | |
981 ;; generated-autoload-feature: semantic/loaddefs | |
982 ;; generated-autoload-load-name: "semantic/idle" | |
983 ;; End: | |
984 | |
976 ;;; semantic-idle.el ends here | 985 ;;; semantic-idle.el ends here |