changeset 7534:9b82dae27c01

(soundex-alist): Put variable before fn that uses it.
author Richard M. Stallman <rms@gnu.org>
date Tue, 17 May 1994 23:04:07 +0000
parents 62e3e25bc8f6
children b7c1ff4944c6
files lisp/soundex.el
diffstat 1 files changed, 8 insertions(+), 8 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/soundex.el	Tue May 17 22:58:29 1994 +0000
+++ b/lisp/soundex.el	Tue May 17 23:04:07 1994 +0000
@@ -30,6 +30,14 @@
 
 ;;; 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 @@
 	(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")