branch: externals/debbugs
commit 49237ca43a8c93f6b8f301d391373dfc60c9785b
Author: Lars Magne Ingebrigtsen <[email protected]>
Commit: Lars Magne Ingebrigtsen <[email protected]>
(debbugs-emacs): Init the saved bugs on call, not on load.
---
ChangeLog | 1 +
debbugs-gnu.el | 13 ++++++-------
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index e28b61c..5f64d2f 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
* debbugs-gnu.el (debbugs-toggle-sort): Sort the tagged bugs at
the end.
+ (debbugs-emacs): Init the saved bugs on call, not on load.
2011-07-05 Michael Albinus <[email protected]>
diff --git a/debbugs-gnu.el b/debbugs-gnu.el
index 407b05d..1aa4c53 100644
--- a/debbugs-gnu.el
+++ b/debbugs-gnu.el
@@ -66,13 +66,6 @@
(expand-file-name (locate-user-emacs-file "debbugs"))
"File name of a persistency store for debbugs variables")
-;; Initialize variables.
-(when (file-exists-p debbugs-persistency-file)
- (ignore-errors
- (with-temp-buffer
- (insert-file-contents debbugs-persistency-file)
- (eval (read (current-buffer))))))
-
(defun debbugs-dump-persistency-file ()
"Function to store debbugs variables persistently."
(ignore-errors
@@ -104,6 +97,12 @@
(completing-read "Severity: "
'("important" "normal" "minor" "wishlist")
nil t "normal")))
+ ;; Initialize variables.
+ (when (and (file-exists-p debbugs-persistency-file)
+ (not debbugs-local-tags))
+ (with-temp-buffer
+ (insert-file-contents debbugs-persistency-file)
+ (eval (read (current-buffer)))))
(unless (consp severities)
(setq severities (list severities)))