+2013-10-20 Johan Bockgård <bojohan@gnu.org>
+
+ * semantic/db-mode.el (global-semanticdb-minor-mode): Remove hooks
+ correctly.
+ (semanticdb-toggle-global-mode): Pass `toggle' to minor mode
+ function.
+
2013-09-28 Leo Liu <sdl.web@gmail.com>
* semantic/texi.el (semantic-analyze-possible-completions): Use
(add-hook (cadr elt) (car elt)))
;; Disable
(dolist (elt semanticdb-hooks)
- (add-hook (cadr elt) (car elt)))))
+ (remove-hook (cadr elt) (car elt)))))
(defvaralias 'semanticdb-mode-hook 'global-semanticdb-minor-mode-hook)
(defvaralias 'semanticdb-global-mode 'global-semanticdb-minor-mode)
;; Save databases before disabling semanticdb.
(semanticdb-save-all-db))
;; Toggle semanticdb minor mode.
- (global-semanticdb-minor-mode))
+ (global-semanticdb-minor-mode 'toggle))
;;; Hook Functions:
;;