(soundex-alist): Put variable before fn that uses it.
authorRichard M. Stallman <rms@gnu.org>
Tue, 17 May 1994 23:04:07 +0000 (23:04 +0000)
committerRichard M. Stallman <rms@gnu.org>
Tue, 17 May 1994 23:04:07 +0000 (23:04 +0000)
lisp/soundex.el

index caa34fc..06d46bc 100644 (file)
 
 ;;; Code: 
 
+(defvar soundex-alist
+  '((?A . nil) (?E . nil) (?H . nil) (?I . nil) (?O . nil) (?U . nil)
+    (?W . nil) (?Y . nil) (?B . "1") (?F . "1") (?P . "1") (?V . "1")
+    (?C . "2") (?G . "2") (?J . "2") (?K . "2") (?Q . "2") (?S . "2")
+    (?X . "2") (?Z . "2") (?D . "3") (?T . "3") (?L . "4") (?M . "5")
+    (?N . "5") (?R . "6"))
+  "Alist of chars-to-key-code for building Soundex keys.")
+
 (defun soundex (word)
   "Return a Soundex key for WORD.
 Implemented as described in:
@@ -54,14 +62,6 @@ and Searching\", Addison-Wesley (1973), pp. 391-392."
        (substring (concat key "000") 0 4)
       key)))
 
-(defvar soundex-alist
-  '((?A . nil) (?E . nil) (?H . nil) (?I . nil) (?O . nil) (?U . nil)
-    (?W . nil) (?Y . nil) (?B . "1") (?F . "1") (?P . "1") (?V . "1")
-    (?C . "2") (?G . "2") (?J . "2") (?K . "2") (?Q . "2") (?S . "2")
-    (?X . "2") (?Z . "2") (?D . "3") (?T . "3") (?L . "4") (?M . "5")
-    (?N . "5") (?R . "6"))
-  "Alist of chars-to-key-code for building Soundex keys.")
-
 ;(defvar soundex-test
 ;  '("Euler" "Gauss" "Hilbert" "Knuth" "Lloyd" "Lukasiewicz"
 ;    "Ellery" "Ghosh" "Heilbronn" "Kant" "Ladd" "Lissajous")