aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Eglen1998-04-18 16:38:50 +0000
committerStephen Eglen1998-04-18 16:38:50 +0000
commit3413eafadd407950d681403e118c127167e16f71 (patch)
tree52a9171861c3b34a696e97463fc637459b40ac25
parentd876a0a0c967cc0ba999f37c9ced2288fa96b55f (diff)
downloademacs-3413eafadd407950d681403e118c127167e16f71.tar.gz
emacs-3413eafadd407950d681403e118c127167e16f71.zip
Customize. Add `;;; Code' line.
ogonek-encoding-choices: new variable as helper for customizing.
-rw-r--r--lisp/international/ogonek.el43
1 files changed, 32 insertions, 11 deletions
diff --git a/lisp/international/ogonek.el b/lisp/international/ogonek.el
index 932dc44ecf5..1b0fc054265 100644
--- a/lisp/international/ogonek.el
+++ b/lisp/international/ogonek.el
@@ -31,6 +31,13 @@
31;; M-x ogonek-jak -- in Polish 31;; M-x ogonek-jak -- in Polish
32;; M-x ogonek-how -- in English " 32;; M-x ogonek-how -- in English "
33 33
34;;; Code:
35
36(defgroup ogonek nil
37 "Change the encoding of Polish diacritic characters."
38 :prefix "ogonek-"
39 :group 'i18n)
40
34(defconst ogonek-name-encoding-alist 41(defconst ogonek-name-encoding-alist
35 '(("ascii" . (?A ?C ?E ?L ?N ?O ?S ?Z ?Z 42 '(("ascii" . (?A ?C ?E ?L ?N ?O ?S ?Z ?Z
36 ?a ?c ?e ?l ?n ?o ?s ?z ?z)) 43 ?a ?c ?e ?l ?n ?o ?s ?z ?z))
@@ -260,17 +267,31 @@ The functions come in the following groups.
260 (beginning-of-buffer)) 267 (beginning-of-buffer))
261 268
262;; ---- Variables keeping the suggested answers to dialogue questions ----- 269;; ---- Variables keeping the suggested answers to dialogue questions -----
263 270(defvar ogonek-encoding-choices
264(defvar ogonek-from-encoding "iso8859-2" 271 (cons 'choice
265 "*Encoding in the source file of recoding.") 272 (mapcar (lambda (x) (list 'const (car x)))
266(defvar ogonek-to-encoding "ascii" 273 ogonek-name-encoding-alist))
267 "*Encoding in the target file of recoding.") 274 "List of ogonek encodings. Used only for customization.")
268(defvar ogonek-prefix-char ?/ 275(defcustom ogonek-from-encoding "iso8859-2"
269 "*Prefix character for prefix encodings.") 276 "*Encoding in the source file of recoding."
270(defvar ogonek-prefix-from-encoding "iso8859-2" 277 :type ogonek-encoding-choices
271 "*Encoding in the source file subject to prefixifation.") 278 :group 'ogonek)
272(defvar ogonek-prefix-to-encoding "iso8859-2" 279(defcustom ogonek-to-encoding "ascii"
273 "*Encoding in the target file subject to deprefixifation.") 280 "*Encoding in the target file of recoding."
281 :type ogonek-encoding-choices
282 :group 'ogonek)
283(defcustom ogonek-prefix-char ?/
284 "*Prefix character for prefix encodings."
285 :type 'character
286 :group 'ogonek)
287(defcustom ogonek-prefix-from-encoding "iso8859-2"
288 "*Encoding in the source file subject to prefixifation."
289 :type ogonek-encoding-choices
290 :group 'ogonek)
291(defcustom ogonek-prefix-to-encoding "iso8859-2"
292 "*Encoding in the target file subject to deprefixifation."
293 :type ogonek-encoding-choices
294 :group 'ogonek)
274 295
275;; ---- Auxiliary functions for reading parameters in interactive mode ---- 296;; ---- Auxiliary functions for reading parameters in interactive mode ----
276 297