Permalink
Browse files

Rename symbol references from `yas/*` to `yas-*` in bundled snippets

  • Loading branch information...
1 parent e12a8bf commit 96638af80eb3cbeaee80046b0a324d94053d27b9 @joaotavora committed Jul 19, 2012
@@ -1,41 +1,41 @@
-(defun yas/objc-docset-query (query)
+(defun yas-objc-docset-query (query)
)
-(defvar yas/objc-method-names (make-vector 1023 0))
-(defvar yas/objc-class-names (make-vector 1023 0))
+(defvar yas-objc-method-names (make-vector 1023 0))
+(defvar yas-objc-class-names (make-vector 1023 0))
-(defvar yas/objc-languages (list))
-(defvar yas/objc-defkinds (list))
+(defvar yas-objc-languages (list))
+(defvar yas-objc-defkinds (list))
-(defun yas/objc-extract-super-list ()
+(defun yas-objc-extract-super-list ()
(interactive)
- (setq yas/objc-method-names (make-vector 1023 0)
- yas/objc-class-names (make-vector 1023 0)
- yas/objc-languages (list)
- yas/objc-defkinds (list))
+ (setq yas-objc-method-names (make-vector 1023 0)
+ yas-objc-class-names (make-vector 1023 0)
+ yas-objc-languages (list)
+ yas-objc-defkinds (list))
(with-temp-buffer
(shell-command
"/Developer/usr/bin/docsetutil dump -skip-text /Developer/Documentation/DocSets/com.apple.adc.documentation.AppleSnowLeopard.CoreReference.docset/"
(current-buffer))
(goto-char (point-min))
(search-forward-regexp "API index contains .* tokens")
(while (search-forward-regexp "^\\([^/]*\\)/\\([^/]*\\)/\\([^/]*\\)/\\([^/]*\\)$" nil 'noerror)
- (intern (match-string 3) yas/objc-class-names)
- (intern (match-string 4) yas/objc-method-names)
- (add-to-list 'yas/objc-languages (match-string 1))
- (add-to-list 'yas/objc-defkinds (match-string 2)))))
+ (intern (match-string 3) yas-objc-class-names)
+ (intern (match-string 4) yas-objc-method-names)
+ (add-to-list 'yas-objc-languages (match-string 1))
+ (add-to-list 'yas-objc-defkinds (match-string 2)))))
-;; (put (intern-soft (setq chosen (completing-read "Method: " yas/objc-method-names)) yas/objc-method-names)
+;; (put (intern-soft (setq chosen (completing-read "Method: " yas-objc-method-names)) yas-objc-method-names)
;; 'someshit
;; 'someday)
-;; (completing-read "Class: " yas/objc-class-names)
+;; (completing-read "Class: " yas-objc-class-names)
-;; (get (intern-soft (setq chosen (completing-read "hey: " yas/objc-method-names)) yas/objc-method-names)
+;; (get (intern-soft (setq chosen (completing-read "hey: " yas-objc-method-names)) yas-objc-method-names)
;; 'someshit)
-(defun yas/objc-current-method-signature ()
+(defun yas-objc-current-method-signature ()
(let ((orig-point (point))
(start-point nil)
sig
@@ -58,7 +58,7 @@
(concat (or sig "") (match-string-no-properties 0)))))
sig))))
-(defun yas/objc-current-method-signature ()
+(defun yas-objc-current-method-signature ()
(let ((orig-point (point))
(start-point nil)
sig
Oops, something went wrong. Retry.

0 comments on commit 96638af

Please sign in to comment.