(semantic-mru-bookmark-mode): Doc fixes.
* cedet/semantic/db.el (semanticdb-cache-get): Use error instead
of assert.
+2009-12-14 Chong Yidong <cyd@stupidchicken.com>
+
+ * cedet/semantic/mru-bookmark.el (global-semantic-mru-bookmark-mode)
+ (semantic-mru-bookmark-mode): Doc fixes.
+
+ * cedet/semantic/db.el (semanticdb-cache-get): Use error instead
+ of assert.
+
2009-12-13 Glenn Morris <rgm@gnu.org>
* mail/emacsbug.el (message-sort-headers): Define for compiler.
"Get a cache object on TABLE of class DESIRED-CLASS.
This method will create one if none exists with no init arguments
other than :table."
- (assert (child-of-class-p desired-class 'semanticdb-abstract-cache))
+ (unless (child-of-class-p desired-class 'semanticdb-abstract-cache)
+ (error "Invalid SemanticDB cache"))
(let ((cache (oref table cache))
(obj nil))
(while (and (not obj) cache)
"Get a cache object on DB of class DESIRED-CLASS.
This method will create one if none exists with no init arguments
other than :table."
- (assert (child-of-class-p desired-class 'semanticdb-abstract-db-cache))
+ (unless (child-of-class-p desired-class 'semanticdb-abstract-cache)
+ (error "Invalid SemanticDB cache"))
(let ((cache (oref db cache))
(obj nil))
(while (and (not obj) cache)
;; Tracking minor mode.
(defcustom global-semantic-mru-bookmark-mode nil
- "*If non-nil enable global use of variable `semantic-mru-bookmark-mode'.
-When this mode is enabled, changes made to a buffer are highlighted
-until the buffer is reparsed."
+ "If non-nil, enable `semantic-mru-bookmark-mode' globally.
+When this mode is enabled, Emacs keeps track of which tags have
+been edited, and you can re-visit them with \\[semantic-mrub-switch-tags]."
:group 'semantic
:group 'semantic-modes
:type 'boolean
(defun semantic-mru-bookmark-mode (&optional arg)
"Minor mode for tracking tag-based bookmarks automatically.
-Tag based bookmarks a tracked based on editing and viewing habits
-and can then be navigated via the MRU bookmark keymap.
+When this mode is enabled, Emacs keeps track of which tags have
+been edited, and you can re-visit them with \\[semantic-mrub-switch-tags].
\\{semantic-mru-bookmark-mode-map}