aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTorsten Hilbrich2020-10-08 19:30:12 +0200
committerTorsten Hilbrich2020-10-08 19:33:14 +0200
commit5dc17d73b071aefac3dcfed193a82601c94a98af (patch)
tree42631826be4cdbfb665af75be5fe141e08cd0491
parent723906c4443e4aa8636c0d5bec8645ae1e29f79a (diff)
downloademacs-5dc17d73b071aefac3dcfed193a82601c94a98af.tar.gz
emacs-5dc17d73b071aefac3dcfed193a82601c94a98af.zip
Add :version tag to defcustom statement
* lisp/net/dictionary.el: Add :version tag to all defcustom statements Suggested-By: Robert Pluim <rpluim@gmail.com>
-rw-r--r--lisp/net/dictionary.el60
1 files changed, 40 insertions, 20 deletions
diff --git a/lisp/net/dictionary.el b/lisp/net/dictionary.el
index ef667f1fe35..7f4bb2a8282 100644
--- a/lisp/net/dictionary.el
+++ b/lisp/net/dictionary.el
@@ -67,7 +67,8 @@
67 "This server is contacted for searching the dictionary" 67 "This server is contacted for searching the dictionary"
68 :group 'dictionary 68 :group 'dictionary
69 :set 'dictionary-set-server-var 69 :set 'dictionary-set-server-var
70 :type 'string) 70 :type 'string
71 :version "28.1")
71 72
72(defcustom dictionary-port 73(defcustom dictionary-port
73 2628 74 2628
@@ -75,13 +76,15 @@
75 This port is propably always 2628 so there should be no need to modify it." 76 This port is propably always 2628 so there should be no need to modify it."
76 :group 'dictionary 77 :group 'dictionary
77 :set 'dictionary-set-server-var 78 :set 'dictionary-set-server-var
78 :type 'number) 79 :type 'number
80 :version "28.1")
79 81
80(defcustom dictionary-identification 82(defcustom dictionary-identification
81 "dictionary.el emacs lisp dictionary client" 83 "dictionary.el emacs lisp dictionary client"
82 "This is the identification string that will be sent to the server." 84 "This is the identification string that will be sent to the server."
83 :group 'dictionary 85 :group 'dictionary
84 :type 'string) 86 :type 'string
87 :version "28.1")
85 88
86(defcustom dictionary-default-dictionary 89(defcustom dictionary-default-dictionary
87 "*" 90 "*"
@@ -89,13 +92,15 @@
89 * and ! have a special meaning, * search all dictionaries, ! search until 92 * and ! have a special meaning, * search all dictionaries, ! search until
90 one dictionary yields matches." 93 one dictionary yields matches."
91 :group 'dictionary 94 :group 'dictionary
92 :type 'string) 95 :type 'string
96 :version "28.1")
93 97
94(defcustom dictionary-default-strategy 98(defcustom dictionary-default-strategy
95 "." 99 "."
96 "The default strategy for listing matching words." 100 "The default strategy for listing matching words."
97 :group 'dictionary 101 :group 'dictionary
98 :type 'string) 102 :type 'string
103 :version "28.1")
99 104
100(defcustom dictionary-default-popup-strategy 105(defcustom dictionary-default-popup-strategy
101 "exact" 106 "exact"
@@ -132,58 +137,67 @@ by the choice value:
132 :type '(choice (const :tag "Exact match" "exact") 137 :type '(choice (const :tag "Exact match" "exact")
133 (const :tag "Similiar sounding" "soundex") 138 (const :tag "Similiar sounding" "soundex")
134 (const :tag "Levenshtein distance one" "lev") 139 (const :tag "Levenshtein distance one" "lev")
135 (string :tag "User choice"))) 140 (string :tag "User choice"))
141 :version "28.1")
136 142
137(defcustom dictionary-create-buttons 143(defcustom dictionary-create-buttons
138 t 144 t
139 "Create some clickable buttons on top of the window if non-nil." 145 "Create some clickable buttons on top of the window if non-nil."
140 :group 'dictionary 146 :group 'dictionary
141 :type 'boolean) 147 :type 'boolean
148 :version "28.1")
142 149
143(defcustom dictionary-mode-hook 150(defcustom dictionary-mode-hook
144 nil 151 nil
145 "Hook run in dictionary mode buffers." 152 "Hook run in dictionary mode buffers."
146 :group 'dictionary 153 :group 'dictionary
147 :type 'hook) 154 :type 'hook
155 :version "28.1")
148 156
149(defcustom dictionary-use-http-proxy 157(defcustom dictionary-use-http-proxy
150 nil 158 nil
151 "Connects via a HTTP proxy using the CONNECT command when not nil." 159 "Connects via a HTTP proxy using the CONNECT command when not nil."
152 :group 'dictionary-proxy 160 :group 'dictionary-proxy
153 :set 'dictionary-set-server-var 161 :set 'dictionary-set-server-var
154 :type 'boolean) 162 :type 'boolean
163 :version "28.1")
155 164
156(defcustom dictionary-proxy-server 165(defcustom dictionary-proxy-server
157 "proxy" 166 "proxy"
158 "The name of the HTTP proxy to use when dictionary-use-http-proxy is set." 167 "The name of the HTTP proxy to use when dictionary-use-http-proxy is set."
159 :group 'dictionary-proxy 168 :group 'dictionary-proxy
160 :set 'dictionary-set-server-var 169 :set 'dictionary-set-server-var
161 :type 'string) 170 :type 'string
171 :version "28.1")
162 172
163(defcustom dictionary-proxy-port 173(defcustom dictionary-proxy-port
164 3128 174 3128
165 "The port of the proxy server, used only when dictionary-use-http-proxy is set." 175 "The port of the proxy server, used only when dictionary-use-http-proxy is set."
166 :group 'dictionary-proxy 176 :group 'dictionary-proxy
167 :set 'dictionary-set-server-var 177 :set 'dictionary-set-server-var
168 :type 'number) 178 :type 'number
179 :version "28.1")
169 180
170(defcustom dictionary-use-single-buffer 181(defcustom dictionary-use-single-buffer
171 nil 182 nil
172 "Should the dictionary command reuse previous dictionary buffers?" 183 "Should the dictionary command reuse previous dictionary buffers?"
173 :group 'dictionary 184 :group 'dictionary
174 :type 'boolean) 185 :type 'boolean
186 :version "28.1")
175 187
176(defcustom dictionary-description-open-delimiter 188(defcustom dictionary-description-open-delimiter
177 "" 189 ""
178 "The delimiter to display in front of the dictionaries description" 190 "The delimiter to display in front of the dictionaries description"
179 :group 'dictionary 191 :group 'dictionary
180 :type 'string) 192 :type 'string
193 :version "28.1")
181 194
182(defcustom dictionary-description-close-delimiter 195(defcustom dictionary-description-close-delimiter
183 "" 196 ""
184 "The delimiter to display after of the dictionaries description" 197 "The delimiter to display after of the dictionaries description"
185 :group 'dictionary 198 :group 'dictionary
186 :type 'string) 199 :type 'string
200 :version "28.1")
187 201
188;; Define only when coding-system-list is available 202;; Define only when coding-system-list is available
189(when (fboundp 'coding-system-list) 203(when (fboundp 'coding-system-list)
@@ -200,7 +214,8 @@ by the choice value:
200 :value 'utf-8 214 :value 'utf-8
201 ,@(mapcar (lambda (x) (list 'const x)) 215 ,@(mapcar (lambda (x) (list 'const x))
202 (coding-system-list)) 216 (coding-system-list))
203 )))) 217 )))
218 :version "28.1")
204 219
205 ) 220 )
206 221
@@ -215,7 +230,8 @@ by the choice value:
215 (t 230 (t
216 (:font "default"))) 231 (:font "default")))
217 "The face that is used for displaying the definition of the word." 232 "The face that is used for displaying the definition of the word."
218 :group 'dictionary) 233 :group 'dictionary
234 :version "28.1")
219 235
220 (defface dictionary-word-entry-face 236 (defface dictionary-word-entry-face
221 '((((type x)) 237 '((((type x))
@@ -225,13 +241,15 @@ by the choice value:
225 (t 241 (t
226 (:inverse t))) 242 (:inverse t)))
227 "The face that is used for displaying the initial word entry line." 243 "The face that is used for displaying the initial word entry line."
228 :group 'dictionary) 244 :group 'dictionary
245 :version "28.1")
229 246
230 (defface dictionary-button-face 247 (defface dictionary-button-face
231 '((t 248 '((t
232 (:bold t))) 249 (:bold t)))
233 "The face that is used for displaying buttons." 250 "The face that is used for displaying buttons."
234 :group 'dictionary) 251 :group 'dictionary
252 :version "28.1")
235 253
236 (defface dictionary-reference-face 254 (defface dictionary-reference-face
237 '((((type x) 255 '((((type x)
@@ -249,7 +267,8 @@ by the choice value:
249 (:underline t))) 267 (:underline t)))
250 268
251 "The face that is used for displaying a reference word." 269 "The face that is used for displaying a reference word."
252 :group 'dictionary) 270 :group 'dictionary
271 :version "28.1")
253 272
254 ) 273 )
255 274
@@ -1206,7 +1225,8 @@ It presents the word at point as default input and allows editing it."
1206 nil 1225 nil
1207 "This dictionary to lookup words for tooltips" 1226 "This dictionary to lookup words for tooltips"
1208 :group 'dictionary 1227 :group 'dictionary
1209 :type '(choice (const :tag "None" nil) string)) 1228 :type '(choice (const :tag "None" nil) string)
1229 :version "28.1")
1210 1230
1211(defun dictionary-definition (word &optional dictionary) 1231(defun dictionary-definition (word &optional dictionary)
1212 (interactive) 1232 (interactive)