;;; srecode/getset.el --- Package for inserting new get/set methods.
-;; Copyright (C) 2007, 2008, 2009 Free Software Foundation, Inc.
+;; Copyright (C) 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc.
;; Author: Eric M. Ludlam <eric@siege-engine.com>
(error "No templates for inserting get/set"))
;; Step 1: Try to derive the tag for the class we will use
+ (semantic-fetch-tags)
(let* ((class (or class-in (srecode-auto-choose-class (point))))
- (tagstart (semantic-tag-start class))
+ (tagstart (when class (semantic-tag-start class)))
(inclass (eq (semantic-current-tag-of-class 'type) class))
(field nil)
)
;; Local variables:
;; generated-autoload-file: "loaddefs.el"
-;; generated-autoload-feature: srecode/loaddefs
;; generated-autoload-load-name: "srecode/getset"
;; End:
-;; arch-tag: c2098b7a-df7f-4e8a-a9e3-2be8798a7554
;;; srecode/getset.el ends here