summaryrefslogtreecommitdiff
path: root/lisp/cedet/semantic/fw.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2015-04-13 10:39:25 -0400
committerStefan Monnier <monnier@iro.umontreal.ca>2015-04-13 10:39:25 -0400
commit2a72ae286db1a4cfc4a915c15c82c613012e7434 (patch)
treea0bfc7fb68b12bab0eeb2476efe1bd64c3a4384b /lisp/cedet/semantic/fw.el
parentf6bdbdf1f58d8fda61bc901b852d25fdf1a1f9da (diff)
downloademacs-2a72ae286db1a4cfc4a915c15c82c613012e7434.tar.gz
* cedet/semantic/fw.el: Use declare.
* cedet/semantic/fw.el (semantic-exit-on-input) (semanticdb-without-unloaded-file-searches): Use declare. (semantic-fw-add-edebug-spec): Remove.
Diffstat (limited to 'lisp/cedet/semantic/fw.el')
-rw-r--r--lisp/cedet/semantic/fw.el16
1 files changed, 5 insertions, 11 deletions
diff --git a/lisp/cedet/semantic/fw.el b/lisp/cedet/semantic/fw.el
index e36f3598c0f..0e81b2c0ba5 100644
--- a/lisp/cedet/semantic/fw.el
+++ b/lisp/cedet/semantic/fw.el
@@ -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)
;; ;;; 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))
-;;; 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)