-
Notifications
You must be signed in to change notification settings - Fork 3
/
gtags-aliases.el
168 lines (160 loc) · 5.11 KB
/
gtags-aliases.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
;;; Aliases for partially preserving backwards compatability.
;;;
;;; We load gtags.el and then add aliases for common variables and functions
(require 'cl)
;;;; Backwards-compatability for missing functions in older clients.
;; Route calls to define-obsolete-function-alias to defalias if the former
;; function doesn't exist.
(if (not (fboundp 'define-obsolete-function-alias))
(defalias 'define-obsolete-function-alias 'defalias))
;; Ignore calls to define-obsolete-variable-alias if the function doesn't exist
(if (not (fboundp 'define-obsolete-variable-alias))
(defalias 'define-obsolete-variable-alias 'ignore))
;;;; Define aliases for wiki-documented functions
(define-obsolete-function-alias
'google-feeling-lucky
'gtags-feeling-lucky)
(define-obsolete-function-alias
'google-find-tag
'gtags-find-tag)
(define-obsolete-function-alias
'google-first-tag
'gtags-first-tag)
(define-obsolete-function-alias
'google-next-tag
'gtags-next-tag)
(define-obsolete-function-alias
'google-show-tag-locations
'gtags-show-tag-locations)
(define-obsolete-function-alias
'google-show-tag-locations-regexp
'gtags-show-tag-locations-regexp)
(define-obsolete-function-alias
'google-tags-query-replace
'gtags-query-replace)
(define-obsolete-function-alias
'google-pop-tag
'gtags-pop-tag)
(define-obsolete-function-alias
'google-show-matching-tags
'gtags-show-matching-tags)
(define-obsolete-function-alias
'google-show-callers
'gtags-show-callers)
(define-obsolete-function-alias
'google-show-tag-locations-under-point
'gtags-show-tag-locations-under-point)
(define-obsolete-function-alias
'google-show-callers-under-point
'gtags-show-callers-under-point)
(define-obsolete-function-alias
'google-search-definition-snippets
'gtags-search-definition-snippets)
(define-obsolete-function-alias
'google-list-tags
'gtags-list-tags)
(define-obsolete-function-alias
'google-complete-tag
'gtags-complete-tag)
;;;; Define aliases for variables from gtags.el
(define-obsolete-variable-alias
'google-c-or-java-function-definition-regexp
'gtags-c-or-java-function-definition-regexp)
(define-obsolete-variable-alias
'google-c-or-java-function-regexp
'gtags-c-or-java-function-regexp)
(define-obsolete-variable-alias
'google-choose-server-and-get-tags-memoize-interval-seconds
'gtags-choose-server-and-get-tags-memoize-interval-seconds)
(define-obsolete-variable-alias
'google-choose-server-and-get-tags-memoize-result-count
'gtags-choose-server-and-get-tags-memoize-result-count)
(define-obsolete-variable-alias
'google-default-root
'gtags-default-root)
(define-obsolete-variable-alias
'google-filename-generators
'gtags-filename-generators)
(define-obsolete-variable-alias
'google-find-tag-history
'gtags-find-tag-history)
(define-obsolete-variable-alias
'google-gtags-call-graph-hosts
'gtags-call-graph-hosts)
(define-obsolete-variable-alias
'google-gtags-corpus
'gtags-corpus)
(define-obsolete-variable-alias
'google-gtags-extensions-to-languages
'gtags-extensions-to-languages)
(define-obsolete-variable-alias
'google-gtags-language-hosts
'gtags-language-hosts)
(define-obsolete-variable-alias
'google-gtags-ranking-methods
'gtags-ranking-methods)
(define-obsolete-variable-alias
'google-host-port-memoization-interval-seconds
'gtags-host-port-memoization-interval-seconds)
(define-obsolete-variable-alias
'google-host-port-memoization-result-count
'gtags-host-port-memoization-result-count)
(define-obsolete-variable-alias
'google-javadoc-url-template
'gtags-javadoc-url-template)
(define-obsolete-variable-alias
'google-multi-server-too-slow-threshold
'gtags-multi-server-too-slow-threshold)
(define-obsolete-variable-alias
'google-next-tags
'gtags-next-tags)
(define-obsolete-variable-alias
'google-previous-tags
'gtags-previous-tags)
(define-obsolete-variable-alias
'google-python-function-definition-regexp
'gtags-python-function-definition-regexp)
(define-obsolete-variable-alias
'google-source-root
'gtags-source-root)
(define-obsolete-variable-alias
'google-tags-default-mode
'gtags-default-mode)
(define-obsolete-variable-alias
'google-tags-history
'gtags-history)
(define-obsolete-variable-alias
'google-tags-language-options
'gtags-language-options)
(define-obsolete-variable-alias
'google-tags-modes-to-languages
'gtags-modes-to-languages)
(define-obsolete-variable-alias
'google-tags-multi-servers
'gtags-multi-servers)
(define-obsolete-variable-alias
'google-tags-output-mode
'gtags-output-mode)
(define-obsolete-variable-alias
'google-tags-output-options
'gtags-output-options)
(define-obsolete-variable-alias
'google-tags-print-trace
'gtags-print-trace)
(define-obsolete-variable-alias
'google-warning-multi-server-slow
'gtags-warning-multi-server-slow)
;;;; Define aliases for other commonly used variables
(define-obsolete-variable-alias
'google-default-root
'gtags-default-root)
(define-obsolete-variable-alias
'google-gtags-corpus
'gtags-corpus)
(define-obsolete-variable-alias
'google-tags-default-mode
'gtags-default-mode)
(define-obsolete-variable-alias
'google-tags-output-mode
'gtags-output-mode)
(provide 'gtags-aliases)