Permalink
Browse files

only load sourcemarker db from file if it does not already exists as …

…symbol
  • Loading branch information...
1 parent 2ef586b commit 31a33fe13e3aacf301047825e82759c9cb15bf99 @rakete committed Sep 14, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 mk-project-sourcemarker.el
@@ -72,8 +72,10 @@
(defun mk-sourcemarker-load-project-db ()
(interactive)
(mk-proj-assert-proj)
- (mk-sourcemarker-with-project-db
- (continue-load-db)))
+ (unless (intern-soft (mk-proj-get-config-val 'sourcemarker-db-symbol))
+ (mk-sourcemarker-with-project-db
+ (message "loading project db: %s" continue-db-symbol)
+ (continue-load-db))))
(defun mk-sourcemarker-write-project-db ()
(interactive)

0 comments on commit 31a33fe

Please sign in to comment.