]> git.eshelyaron.com Git - emacs.git/commitdiff
* cedet/semantic/fw.el: Use declare.
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 13 Apr 2015 14:39:25 +0000 (10:39 -0400)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 13 Apr 2015 14:39:25 +0000 (10:39 -0400)
* cedet/semantic/fw.el (semantic-exit-on-input)
(semanticdb-without-unloaded-file-searches): Use declare.
(semantic-fw-add-edebug-spec): Remove.

lisp/cedet/semantic/complete.el
lisp/cedet/semantic/db.el
lisp/cedet/semantic/fw.el
lisp/cedet/semantic/idle.el

index 267e292647aae95391b8a89ac6f4510279f84036..1e121906a041605339caa1ea9adf01aeabfb0ab5 100644 (file)
@@ -2217,6 +2217,7 @@ use `semantic-complete-analyze-inline' to complete."
   ;; input.
   (when (save-window-excursion
          (save-excursion
+            ;; FIXME: Use `while-no-input'?
            (and (not (semantic-exit-on-input 'csi
                        (semantic-fetch-tags)
                        (semantic-throw-on-input 'csi)
index 1dba9b1570146b51ecaaceb256c02dead3002c1a..7380bddd2bbf062a6351960c7f37d1bca3874e0c 100644 (file)
@@ -723,6 +723,7 @@ form."
   "Save all semantic tag databases from idle time.
 Exit the save between databases if there is user input."
   (semantic-safe "Auto-DB Save: %S"
+    ;; FIXME: Use `while-no-input'?
     (semantic-exit-on-input 'semanticdb-idle-save
       (mapc (lambda (db)
              (semantic-throw-on-input 'semanticdb-idle-save)
index e36f3598c0f11cd7853b26b2104525d06028df25..0e81b2c0ba5677aa2ce3e12238dd17bdbe07a8ed 100644 (file)
@@ -374,7 +374,7 @@ If FORMS includes a call to `semantic-throw-on-input', then
 if a user presses any key during execution, this form macro
 will exit with the value passed to `semantic-throw-on-input'.
 If FORMS completes, then the return value is the same as `progn'."
-  (declare (indent 1))
+  (declare (indent 1) (debug def-body))
   `(let ((semantic-current-input-throw-symbol ,symbol)
          (semantic--on-input-start-marker (point-marker)))
      (catch ,symbol
@@ -388,10 +388,10 @@ calling this one."
   `(when (and semantic-current-input-throw-symbol
               (or (input-pending-p)
                   (with-current-buffer
-                      ;; Timers might run during accept-process-output.
-                      ;; If they redisplay, point must be where the user
-                      ;; expects. (Bug#15045)
                       (marker-buffer semantic--on-input-start-marker)
+                    ;; Timers might run during accept-process-output.
+                    ;; If they redisplay, point must be where the user
+                    ;; expects. (Bug#15045)
                     (save-excursion
                       (goto-char semantic--on-input-start-marker)
                       (accept-process-output)))))
@@ -448,12 +448,12 @@ into `mode-local-init-hook'." file filename)
 ;;
 (defmacro semanticdb-without-unloaded-file-searches (forms)
   "Execute FORMS with `unloaded' removed from the current throttle."
+  (declare (indent 1))
   `(let ((semanticdb-find-default-throttle
          (if (featurep 'semantic/db-find)
              (remq 'unloaded semanticdb-find-default-throttle)
            nil)))
      ,forms))
-(put 'semanticdb-without-unloaded-file-searches 'lisp-indent-function 1)
 
 \f
 ;; ;;; Editor goodies ;-)
@@ -520,12 +520,6 @@ into `mode-local-init-hook'." file filename)
 ;;   (font-lock-add-keywords 'emacs-lisp-mode
 ;;                           semantic-fw-font-lock-keywords))
 \f
-;;; Interfacing with edebug
-;;
-(defun semantic-fw-add-edebug-spec ()
-  (def-edebug-spec semantic-exit-on-input 'def-body))
-
-(add-hook 'edebug-setup-hook 'semantic-fw-add-edebug-spec)
 
 (provide 'semantic/fw)
 
index 790315381c132568f7568864f86d0453e712a3b1..225caa599fb55d23fc1e113a3abbc7ea1e775826 100644 (file)
@@ -216,6 +216,7 @@ current buffer.")
 And also manages services that depend on tag values."
   (when semantic-idle-scheduler-verbose-flag
     (message "IDLE: Core handler..."))
+  ;; FIXME: Use `while-no-input'?
   (semantic-exit-on-input 'idle-timer
     (let* ((inhibit-quit nil)
            (buffers (delq (current-buffer)