Commit 43ad632e authored by Johan Bockgård's avatar Johan Bockgård
Browse files

* lisp/cedet/semantic/db-mode.el (global-semanticdb-minor-mode): Remove hooks

correctly.
(semanticdb-toggle-global-mode): Pass `toggle' to minor mode function.
parent 5f161884
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
......
......@@ -66,7 +66,7 @@ database, which can be saved for future Emacs sessions."
(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)
......@@ -82,7 +82,7 @@ Update the environment of Semantic enabled buffers accordingly."
;; Save databases before disabling semanticdb.
(semanticdb-save-all-db))
;; Toggle semanticdb minor mode.
(global-semanticdb-minor-mode))
(global-semanticdb-minor-mode 'toggle))
;;; Hook Functions:
;;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment