Skip to content

Commit 6daa722

Browse files
committed
Upgraded packages
1 parent 83f4ff2 commit 6daa722

File tree

1,297 files changed

+25694
-3077
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,297 files changed

+25694
-3077
lines changed

ac-comphist.dat

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
((("freenode-user" .
1+
((("require" .
2+
[0 0 0 1 0 0 0])
3+
("freenode-user" .
24
[0 0 0 0 0 0 0 0 0 1 0 0 0])
35
("rollover" .
46
[1 0 0 0 0 0 0 0])
@@ -139,4 +141,8 @@
139141
("including" .
140142
[1 0 0 0 0 0 0 0 0])
141143
("but" .
142-
[1 0 0])))
144+
[1 0 0])
145+
("stop" .
146+
[1 0 0 0])
147+
("in" .
148+
[1 0])))

elpa/ac-c-headers-readme.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
Require this script (and auto-complete) then add to ac-sources.
2+
3+
(add-hook 'c-mode-hook
4+
(lambda ()
5+
(add-to-list 'ac-sources 'ac-source-c-headers)
6+
(add-to-list 'ac-sources 'ac-source-c-header-symbols t)))
7+
8+
then header filenames and symbols in imported headers are completed.
9+
10+
#include <s[tdio.h>] <- ac-source-c-headers
11+
pr[intf] <- ac-source-c-header-symbols
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
;;; ac-js2-autoloads.el --- automatically extracted autoloads
2+
;;
3+
;;; Code:
4+
(add-to-list 'load-path (or (file-name-directory #$) (car load-path)))
5+
6+
;;;### (autoloads nil "ac-js2" "ac-js2.el" (21984 16645 0 0))
7+
;;; Generated autoloads from ac-js2.el
8+
9+
(autoload 'ac-js2-expand-function "ac-js2" "\
10+
Expand the function definition left of point.
11+
Expansion will only occur for candidates whose documentation
12+
string contain a function prototype.
13+
14+
\(fn)" t nil)
15+
16+
(autoload 'ac-js2-completion-function "ac-js2" "\
17+
Function for `completions-at-point'.
18+
19+
\(fn)" nil nil)
20+
21+
(autoload 'ac-js2-company "ac-js2" "\
22+
23+
24+
\(fn COMMAND &optional ARG &rest IGNORED)" t nil)
25+
26+
(autoload 'ac-js2-jump-to-definition "ac-js2" "\
27+
Jump to the definition of an object's property, variable or function.
28+
Navigation to a property definend in an Object literal isn't
29+
implemented.
30+
31+
\(fn)" t nil)
32+
33+
(autoload 'ac-js2-mode "ac-js2" "\
34+
A minor mode that provides auto-completion and navigation for Js2-mode.
35+
36+
\(fn &optional ARG)" t nil)
37+
38+
;;;***
39+
40+
;;;### (autoloads nil nil ("ac-js2-pkg.el" "ac-js2-tests.el") (21984
41+
;;;;;; 16645 0 0))
42+
43+
;;;***
44+
45+
;; Local Variables:
46+
;; version-control: never
47+
;; no-byte-compile: t
48+
;; no-update-autoloads: t
49+
;; End:
50+
;;; ac-js2-autoloads.el ends here
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
(define-package "ac-js2" "20140906.442" "Auto-complete source for Js2-mode, with navigation"
2+
'((js2-mode "20090723")
3+
(skewer-mode "1.4"))
4+
:url "https://github.com/ScottyB/ac-js2")
5+
;; Local Variables:
6+
;; no-byte-compile: t
7+
;; End:
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
;;; Tests for ac-js2
2+
3+
(require 'ert)
4+
(require 'skewer-mode)
5+
(require 'js2-mode)
6+
(require 'ac-js2)
7+
8+
;;; Must have a skewer client connected before running the tests
9+
;; Need to call httpd-stop from main Emacs if running tests in batch mode
10+
(unless skewer-clients
11+
(run-skewer))
12+
13+
(ert-deftest ac-js2-candidates-test ()
14+
"Test the major function that returns candidates for all frontends."
15+
(let (property
16+
property-dot
17+
func-call
18+
var)
19+
(with-temp-buffer
20+
(insert "
21+
var temp = function(param1, param2) {
22+
var localParam = 15;
23+
return param1 + param2;
24+
};
25+
26+
var look;
27+
28+
temp.aFun = function(lolParam) {};
29+
temp.anotherFunction = function() { return {about: 3};}")
30+
(setq ac-js2-evaluate-calls t)
31+
(setq ac-js2-external-libraries nil)
32+
33+
(js2-mode)
34+
(ac-js2-mode t)
35+
(js2-parse)
36+
37+
(insert "tem")
38+
(ac-js2-candidates)
39+
(setq var ac-js2-skewer-candidates)
40+
(delete-char -3)
41+
42+
(insert "temp.")
43+
(js2-parse)
44+
(ac-js2-candidates)
45+
(setq property-dot ac-js2-skewer-candidates)
46+
(delete-char -5)
47+
48+
(insert "temp.aF")
49+
(js2-parse)
50+
(ac-js2-candidates)
51+
(setq property ac-js2-skewer-candidates))
52+
53+
(should (assoc 'anotherFunction property-dot))
54+
(print property)
55+
(should (assoc 'aFun property))
56+
(should (assoc 'temp var))))
57+
58+
(defmacro completion-frontend-test (test-name completion-function)
59+
"Utility for testing completion front ends.
60+
TODO: cover more cases"
61+
`(ert-deftest ,test-name ()
62+
(let (var)
63+
(with-temp-buffer
64+
(insert "var testComplete = function(param1, param2) {};")
65+
66+
(js2-mode)
67+
(ac-js2-mode t)
68+
(js2-parse)
69+
70+
(insert "testComplet")
71+
(funcall ',completion-function)
72+
(setq var (thing-at-point 'word)))
73+
(should (string= var "testComplete")))))
74+
75+
(completion-frontend-test auto-complete-test auto-complete)
76+
(completion-frontend-test completion-at-point-test completion-at-point)

0 commit comments

Comments
 (0)