Mercurial > emacs
comparison lisp/cedet/semantic/idle.el @ 104429:cc1b5aa56f20
cedet/semantic/idle.el: Remove autoloads.
author | Chong Yidong <cyd@stupidchicken.com> |
---|---|
date | Sat, 29 Aug 2009 22:28:15 +0000 |
parents | b1ac14799f78 |
children | 2bf481006ba4 |
comparison
equal
deleted
inserted
replaced
104428:d4ea185ac242 | 104429:cc1b5aa56f20 |
---|---|
117 :require 'semantic/idle | 117 :require 'semantic/idle |
118 :initialize 'custom-initialize-default | 118 :initialize 'custom-initialize-default |
119 :set (lambda (sym val) | 119 :set (lambda (sym val) |
120 (global-semantic-idle-scheduler-mode (if val 1 -1)))) | 120 (global-semantic-idle-scheduler-mode (if val 1 -1)))) |
121 | 121 |
122 ;;;###autoload | |
123 (defun global-semantic-idle-scheduler-mode (&optional arg) | 122 (defun global-semantic-idle-scheduler-mode (&optional arg) |
124 "Toggle global use of option `semantic-idle-scheduler-mode'. | 123 "Toggle global use of option `semantic-idle-scheduler-mode'. |
125 The idle scheduler with automatically reparse buffers in idle time, | 124 The idle scheduler with automatically reparse buffers in idle time, |
126 and then schedule other jobs setup with `semantic-idle-scheduler-add'. | 125 and then schedule other jobs setup with `semantic-idle-scheduler-add'. |
127 If ARG is positive, enable, if it is negative, disable. | 126 If ARG is positive, enable, if it is negative, disable. |
134 (defcustom semantic-idle-scheduler-mode-hook nil | 133 (defcustom semantic-idle-scheduler-mode-hook nil |
135 "*Hook run at the end of function `semantic-idle-scheduler-mode'." | 134 "*Hook run at the end of function `semantic-idle-scheduler-mode'." |
136 :group 'semantic | 135 :group 'semantic |
137 :type 'hook) | 136 :type 'hook) |
138 | 137 |
139 ;;;###autoload | |
140 (defvar semantic-idle-scheduler-mode nil | 138 (defvar semantic-idle-scheduler-mode nil |
141 "Non-nil if idle-scheduler minor mode is enabled. | 139 "Non-nil if idle-scheduler minor mode is enabled. |
142 Use the command `semantic-idle-scheduler-mode' to change this variable.") | 140 Use the command `semantic-idle-scheduler-mode' to change this variable.") |
143 (make-variable-buffer-local 'semantic-idle-scheduler-mode) | 141 (make-variable-buffer-local 'semantic-idle-scheduler-mode) |
144 | 142 |
173 (error "Buffer %s was not set up idle time scheduling" | 171 (error "Buffer %s was not set up idle time scheduling" |
174 (buffer-name))) | 172 (buffer-name))) |
175 (semantic-idle-scheduler-setup-timers))) | 173 (semantic-idle-scheduler-setup-timers))) |
176 semantic-idle-scheduler-mode) | 174 semantic-idle-scheduler-mode) |
177 | 175 |
178 ;;;###autoload | |
179 (defun semantic-idle-scheduler-mode (&optional arg) | 176 (defun semantic-idle-scheduler-mode (&optional arg) |
180 "Minor mode to auto parse buffer following a change. | 177 "Minor mode to auto parse buffer following a change. |
181 When this mode is off, a buffer is only rescanned for tokens when | 178 When this mode is off, a buffer is only rescanned for tokens when |
182 some command requests the list of available tokens. When idle-scheduler | 179 some command requests the list of available tokens. When idle-scheduler |
183 is enabled, Emacs periodically checks to see if the buffer is out of | 180 is enabled, Emacs periodically checks to see if the buffer is out of |
223 These functions will be called in the current buffer after that | 220 These functions will be called in the current buffer after that |
224 buffer has had its tags made up to date. These functions | 221 buffer has had its tags made up to date. These functions |
225 will not be called if there are errors parsing the | 222 will not be called if there are errors parsing the |
226 current buffer.") | 223 current buffer.") |
227 | 224 |
228 ;;;###autoload | |
229 (defun semantic-idle-scheduler-add (function) | 225 (defun semantic-idle-scheduler-add (function) |
230 "Schedule FUNCTION to occur during idle time." | 226 "Schedule FUNCTION to occur during idle time." |
231 (add-to-list 'semantic-idle-scheduler-queue function)) | 227 (add-to-list 'semantic-idle-scheduler-queue function)) |
232 | 228 |
233 ;;;###autoload | |
234 (defun semantic-idle-scheduler-remove (function) | 229 (defun semantic-idle-scheduler-remove (function) |
235 "Unschedule FUNCTION to occur during idle time." | 230 "Unschedule FUNCTION to occur during idle time." |
236 (setq semantic-idle-scheduler-queue | 231 (setq semantic-idle-scheduler-queue |
237 (delete function semantic-idle-scheduler-queue))) | 232 (delete function semantic-idle-scheduler-queue))) |
238 | 233 |
657 ;; Disable the mode mode | 652 ;; Disable the mode mode |
658 (semantic-idle-scheduler-remove #',func) | 653 (semantic-idle-scheduler-remove #',func) |
659 ) | 654 ) |
660 ,mode) | 655 ,mode) |
661 | 656 |
662 ;;;###autoload | |
663 (defun ,mode (&optional arg) | 657 (defun ,mode (&optional arg) |
664 ,(concat doc " | 658 ,(concat doc " |
665 This is a minor mode which performs actions during idle time. | 659 This is a minor mode which performs actions during idle time. |
666 With prefix argument ARG, turn on if positive, otherwise off. The | 660 With prefix argument ARG, turn on if positive, otherwise off. The |
667 minor mode can be turned on only if semantic feature is available and | 661 minor mode can be turned on only if semantic feature is available and |